
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        html {
            margin: 0;
            padding: 0;
        }
        
        body {
            background: linear-gradient(135deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%);
            color: #fff;
            font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
            min-height: 100vh;
            padding: 0;
            padding-bottom: 80px;
            margin: 0;
            overflow-x: hidden;
        }
        
        /* Animations */
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        
        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .pulse-dot {
            width: 6px;
            height: 6px;
            background: #4ade80;
            border-radius: 50%;
            animation: pulse 2s infinite;
            display: inline-block;
        }
        
        /* Mobile-First Header Styles */
        .header {
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(201, 149, 108, 0.2);
            position: sticky;
            top: 0;
            z-index: 100;
            min-height: 60px;
            width: 100%;
            padding: 0;
        }
        
        .header-inner {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 0;
            width: 100%;
        }
        
        .logo-section {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .shield-icon {
            width: 32px;
            height: 40px;
            background: linear-gradient(135deg, #A67744 0%, #D4A87C 100%);
            clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
        }
        
        .logo-text {
            font-size: 1.25rem;
            font-weight: 600;
        }
        
        .subtitle {
            font-size: 0.75rem;
            color: #4ade80;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .status-badges {
            display: flex;
            gap: 0.5rem;
            align-items: center;
            flex-wrap: wrap;
        }
        
        .badge {
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            white-space: nowrap;
        }
        
        .badge-secure {
            background: rgba(74, 222, 128, 0.2);
            color: #4ade80;
            border: 1px solid rgba(74, 222, 128, 0.3);
        }
        
        .badge-pqc {
            background: rgba(201, 149, 108, 0.2);
            color: #C9956C;
            border: 1px solid rgba(201, 149, 108, 0.3);
        }
        
        .badge-granular {
            background: rgba(251, 146, 60, 0.2);
            color: #fb923c;
            border: 1px solid rgba(251, 146, 60, 0.3);
        }
        
        .menu-btn {
            background: transparent;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
            transition: transform 0.2s;
        }
        
        .menu-btn:hover {
            transform: scale(1.1);
        }
        
        /* Mobile-First Main Content Container */
        .container {
            max-width: 100%;
            margin: 0 auto;
            padding: 1rem;
            animation: fadeIn 0.5s ease;
        }
        
        /* View Containers */
        .view {
            display: none;
            animation: slideIn 0.3s ease;
        }
        
        .view.active {
            display: block;
        }
        
        /* Page Headers */
        .page-title {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            font-weight: 300;
        }
        
        .page-subtitle {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.6);
            margin-bottom: 1.5rem;
        }
        
        /* Card Styles */
        .card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 1rem;
            transition: all 0.3s;
            cursor: pointer;
        }
        
        .card:hover {
            background: rgba(255, 255, 255, 0.08);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(201, 149, 108, 0.2);
        }
        
        /* Security Card */
        .security-card {
            background: linear-gradient(135deg, rgba(201, 149, 108, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
            border: 1px solid rgba(201, 149, 108, 0.2);
            border-radius: 16px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }
        
        /* Feature Grid */
        .feature-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        
        .feature-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 1rem;
            transition: all 0.3s;
            cursor: pointer;
        }
        
        .feature-card:hover {
            background: rgba(255, 255, 255, 0.08);
            transform: translateY(-2px);
        }
        
        /* Search Bar */
        .search-bar {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .search-input {
            background: transparent;
            border: none;
            color: white;
            flex: 1;
            outline: none;
            font-size: 0.875rem;
        }
        
        .search-input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }
        
        /* Document Actions */
        .doc-actions {
            display: flex;
            gap: 0.75rem;
            margin-bottom: 1.5rem;
        }
        
        .doc-action-btn {
            background: rgba(201, 149, 108, 0.1);
            border: 1px solid rgba(201, 149, 108, 0.3);
            color: #C9956C;
            padding: 0.75rem 1.25rem;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 0.875rem;
            flex: 1;
            justify-content: center;
        }
        
        .doc-action-btn:hover {
            background: rgba(201, 149, 108, 0.2);
            transform: translateY(-2px);
        }
        
        /* Tabs */
        .tabs {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            overflow-x: auto;
            padding-bottom: 0.5rem;
        }
        
        .tab {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            white-space: nowrap;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 0.875rem;
        }
        
        .tab.active {
            background: rgba(201, 149, 108, 0.2);
            border-color: rgba(201, 149, 108, 0.3);
            color: #C9956C;
        }
        
        .tab:hover {
            background: rgba(255, 255, 255, 0.08);
        }
        
        /* Document Cards */
        .doc-card {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 1rem;
        }
        
        .doc-header {
            display: flex;
            align-items: start;
            justify-content: space-between;
            margin-bottom: 1rem;
        }
        
        .doc-info {
            flex: 1;
        }
        
        .doc-title {
            font-weight: 500;
            margin-bottom: 0.25rem;
        }
        
        .doc-meta {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.6);
        }
        
        .doc-classification {
            display: inline-block;
            padding: 0.25rem 0.5rem;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 600;
            margin-top: 0.5rem;
        }
        
        .classification-confidential {
            background: rgba(59, 130, 246, 0.2);
            color: #3b82f6;
        }
        
        .classification-sensitive {
            background: rgba(251, 146, 60, 0.2);
            color: #fb923c;
        }
        
        .classification-topsecret {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }
        
        /* Smart Field Controls */
        .field-controls {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .field-controls-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }
        
        .field-controls-title {
            font-size: 0.875rem;
            font-weight: 500;
        }
        
        .ai-badge {
            background: linear-gradient(135deg, #3b82f6 0%, #C9956C 100%);
            padding: 0.25rem 0.5rem;
            border-radius: 6px;
            font-size: 0.75rem;
        }
        
        .field-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }
        
        .field-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .field-name {
            font-size: 0.875rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .field-status {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.6);
        }
        
        .toggle-switch {
            width: 36px;
            height: 20px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            position: relative;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .toggle-switch.active {
            background: #4ade80;
        }
        
        .toggle-switch.private {
            background: #ef4444;
        }
        
        .toggle-knob {
            width: 16px;
            height: 16px;
            background: white;
            border-radius: 50%;
            position: absolute;
            top: 2px;
            left: 2px;
            transition: transform 0.3s;
        }
        
        .toggle-switch.active .toggle-knob,
        .toggle-switch.private .toggle-knob {
            transform: translateX(16px);
        }
        
        /* AI Document Insights */
        .ai-insights {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(201, 149, 108, 0.1) 100%);
            border: 1px solid rgba(201, 149, 108, 0.2);
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 1.5rem;
        }
        
        .ai-insights-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
            font-weight: 500;
        }
        
        .insight-item {
            display: flex;
            justify-content: space-between;
            padding: 0.5rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        .insight-item:last-child {
            border-bottom: none;
        }
        
        .insight-label {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.7);
        }
        
        .insight-value {
            font-weight: 500;
        }
        
        /* Quick Actions Grid */
        .quick-actions {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            margin-top: 1.5rem;
        }
        
        .quick-action {
            background: linear-gradient(135deg, rgba(201, 149, 108, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
            border: 1px solid rgba(201, 149, 108, 0.2);
            border-radius: 12px;
            padding: 1.25rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .quick-action:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(201, 149, 108, 0.3);
        }
        
        .quick-action-icon {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }
        
        .quick-action-title {
            font-weight: 500;
            margin-bottom: 0.25rem;
        }
        
        .quick-action-desc {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.6);
        }
        
        /* Estates View */
        .estate-warning {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.3);
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .estate-warning-text {
            flex: 1;
        }
        
        .estate-warning-title {
            font-weight: 500;
            margin-bottom: 0.25rem;
        }
        
        .estate-warning-desc {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.7);
        }
        
        .validate-btn {
            background: #3b82f6;
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .validate-btn:hover {
            background: #2563eb;
            transform: translateY(-2px);
        }
        
        .beneficiary-card {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 1rem;
        }
        
        .beneficiary-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 0.75rem;
        }
        
        .beneficiary-avatar {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, #4ade80 0%, #3b82f6 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 1.25rem;
        }
        
        .beneficiary-info {
            flex: 1;
        }
        
        .beneficiary-name {
            font-weight: 500;
            margin-bottom: 0.25rem;
        }
        
        .beneficiary-role {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.6);
        }
        
        .beneficiary-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            padding-top: 0.75rem;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        .stat-item {
            text-align: center;
        }
        
        .stat-label {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.6);
        }
        
        .stat-value {
            font-weight: 600;
            margin-top: 0.25rem;
        }
        
        /* Wallet View */
        .wallet-balance {
            background: linear-gradient(135deg, #A67744 0%, #D4A87C 100%);
            border-radius: 16px;
            padding: 2rem;
            margin-bottom: 1.5rem;
            text-align: center;
        }
        
        .balance-label {
            font-size: 0.875rem;
            opacity: 0.8;
            margin-bottom: 0.5rem;
        }
        
        .balance-amount {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        
        .balance-usd {
            font-size: 1.25rem;
            opacity: 0.9;
        }
        
        /* Bottom Navigation - Mobile First */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(20px);
            border-top: 1px solid rgba(201, 149, 108, 0.2);
            padding: 0.5rem 0;
            padding-bottom: env(safe-area-inset-bottom, 0.5rem);
            display: flex;
            justify-content: space-around;
            align-items: center;
            z-index: 100;
            height: auto;
            min-height: 60px;
        }
        
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.125rem;
            color: rgba(255, 255, 255, 0.5);
            text-decoration: none;
            padding: 0.5rem;
            flex: 1;
            max-width: 80px;
            transition: all 0.2s;
            cursor: pointer;
            position: relative;
            background: none;
            border: none;
            min-height: 48px;
            touch-action: manipulation;
        }
        
        .nav-item:active {
            transform: scale(0.95);
            opacity: 0.8;
        }
        
        .nav-item.active {
            color: #C9956C;
        }
        
        .nav-icon {
            font-size: 1.25rem;
            line-height: 1;
        }
        
        .nav-label {
            font-size: 0.625rem;
            font-weight: 500;
            margin-top: 0.125rem;
        }
        
        .nav-badge {
            position: absolute;
            top: 0;
            right: 8px;
            width: 8px;
            height: 8px;
            background: #ef4444;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }
        
        /* Settings Menu */
        .settings-menu {
            position: fixed;
            top: 0;
            right: 0;
            width: min(280px, 80vw);
            height: 100vh;
            background: rgba(20, 10, 40, 0.98);
            backdrop-filter: blur(20px);
            padding: 0;
            transition: transform 0.3s ease;
            z-index: 200;
            overflow-y: auto;
            box-shadow: -5px 0 25px rgba(0, 0, 0, 0.7);
            border-left: 1px solid rgba(201, 149, 108, 0.3);
            transform: translateX(100%);
        }
        
        .settings-menu.open {
            transform: translateX(0);
        }
        
        .menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            padding: 1.5rem;
        }
        
        .menu-title {
            font-size: 1.5rem;
            font-weight: 300;
        }
        
        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        .menu-item {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 1.25rem;
            margin: 0 1rem 1rem 1rem;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .menu-item:hover {
            background: rgba(255, 255, 255, 0.08);
            transform: translateX(4px);
        }
        
        .menu-icon {
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            font-size: 1.5rem;
        }
        
        .menu-content {
            flex: 1;
        }
        
        .menu-item-title {
            font-weight: 500;
            margin-bottom: 0.25rem;
        }
        
        .menu-item-desc {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.6);
        }
        
        .menu-arrow {
            color: rgba(255, 255, 255, 0.5);
            font-size: 1.25rem;
        }
        
        /* Modal Styles */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 500;
            padding: 1rem;
        }
        
        .modal.open {
            display: flex;
        }
        
        .modal-content {
            background: linear-gradient(135deg, #0a0a0a 0%, #111111 100%);
            border-radius: 16px;
            max-width: 900px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            border: 1px solid rgba(201, 149, 108, 0.3);
        }
        
        .modal-header {
            padding: 1.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .modal-title {
            font-size: 1.5rem;
            font-weight: 300;
        }
        
        .modal-close {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
        }
        
        .modal-body {
            padding: 1.5rem;
        }
        
        .ingestion-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .ingestion-option {
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(201, 149, 108, 0.3);
            border-radius: 12px;
            padding: 2rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .ingestion-option:hover {
            background: rgba(201, 149, 108, 0.1);
            transform: translateY(-2px);
            border-color: rgba(201, 149, 108, 0.5);
        }
        
        .ingestion-option.selected {
            background: rgba(201, 149, 108, 0.2);
            border-color: #C9956C;
        }
        
        .ingestion-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: #C9956C;
        }
        
        .ingestion-title {
            font-size: 1.25rem;
            font-weight: 500;
            margin-bottom: 0.5rem;
        }
        
        .ingestion-desc {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.6);
            margin-bottom: 1rem;
        }
        
        .ingestion-badge {
            display: inline-block;
            background: rgba(74, 222, 128, 0.2);
            color: #4ade80;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
        }
        
        .camera-interface {
            background: #000;
            border-radius: 12px;
            padding: 2rem;
            text-align: center;
            margin-bottom: 2rem;
        }
        
        .camera-button {
            background: linear-gradient(135deg, #A67744 0%, #D4A87C 100%);
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .camera-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(201, 149, 108, 0.4);
        }
        
        .security-guarantees {
            background: rgba(74, 222, 128, 0.1);
            border: 1px solid rgba(74, 222, 128, 0.3);
            border-radius: 12px;
            padding: 1.5rem;
        }
        
        .security-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
            font-weight: 500;
            color: #4ade80;
        }
        
        .security-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }
        
        .security-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.875rem;
        }
        
        .security-check {
            color: #4ade80;
        }
        
        /* Smart Collections */
        .collections-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .collection-card {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 1.25rem;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .collection-card:hover {
            background: rgba(255, 255, 255, 0.08);
            transform: translateY(-2px);
        }
        
        .collection-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }
        
        .collection-icon {
            font-size: 1.25rem;
        }
        
        .collection-title {
            font-weight: 500;
        }
        
        .collection-count {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.6);
        }
        
        /* Category Pills */
        .category-pills {
            display: flex;
            gap: 0.75rem;
            margin-bottom: 2rem;
            overflow-x: auto;
            padding-bottom: 0.5rem;
        }
        
        .category-pill {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 0.75rem 1.25rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            transition: all 0.3s;
            white-space: nowrap;
        }
        
        .category-pill:hover {
            background: rgba(255, 255, 255, 0.08);
        }
        
        .category-pill.active {
            background: rgba(201, 149, 108, 0.2);
            border-color: rgba(201, 149, 108, 0.3);
            color: #C9956C;
        }
        
        .add-button {
            position: fixed;
            bottom: 100px;
            right: 20px;
            background: linear-gradient(135deg, #A67744 0%, #D4A87C 100%);
            color: white;
            border: none;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(201, 149, 108, 0.4);
            transition: all 0.3s;
            z-index: 90;
        }
        
        .add-button:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 16px rgba(201, 149, 108, 0.6);
        }
        
        /* Document Selection Styles */
        .document-selector {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }
        
        .document-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .document-item:hover {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(201, 149, 108, 0.3);
        }
        
        .document-item.selected {
            background: rgba(201, 149, 108, 0.1);
            border-color: rgba(201, 149, 108, 0.5);
        }
        
        .document-checkbox {
            width: 24px;
            height: 24px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }
        
        .document-item.selected .document-checkbox {
            background: #C9956C;
            border-color: #C9956C;
        }
        
        .document-item.selected .checkmark {
            display: block !important;
            color: white;
            font-weight: bold;
        }
        
        .recipient-tag {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(201, 149, 108, 0.2);
            color: #C9956C;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            margin: 0.25rem;
            font-size: 0.875rem;
        }
        
        .recipient-tag .remove-recipient {
            cursor: pointer;
            font-weight: bold;
            margin-left: 0.5rem;
        }
        
        .recipient-tag .remove-recipient:hover {
            color: #ef4444;
        }
        
        /* Send Dropdown Styles */
        .send-button-group {
            display: inline-flex;
        }
        
        .send-option:hover {
            background: rgba(201, 149, 108, 0.1);
        }
        
        .send-dropdown-btn.active span {
            transform: rotate(270deg);
        }
        
        /* Spotify-like Contact Selector */
        .contact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        
        .contact-card {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .contact-card:hover {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(201, 149, 108, 0.3);
            transform: translateY(-1px);
        }
        
        .contact-card.selected {
            background: rgba(201, 149, 108, 0.1);
            border-color: rgba(201, 149, 108, 0.5);
        }
        
        .contact-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            font-weight: 600;
            color: white;
            flex-shrink: 0;
        }
        
        .contact-info {
            flex: 1;
            min-width: 0;
        }
        
        .contact-name {
            font-weight: 600;
            margin-bottom: 0.25rem;
        }
        
        .contact-details {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.6);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .contact-checkbox {
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }
        
        .contact-card.selected .contact-checkbox {
            background: #C9956C;
            border-color: #C9956C;
        }
        
        .contact-card.selected .contact-checkbox::after {
            content: '✓';
            color: white;
            font-weight: bold;
            font-size: 0.75rem;
        }
        
        /* Toggle Switch Styles */
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 48px;
            height: 24px;
        }
        
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ef4444;
            transition: .4s;
            border-radius: 24px;
        }
        
        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        
        input:checked + .toggle-slider {
            background-color: #4ade80;
        }
        
        input:checked + .toggle-slider:before {
            transform: translateX(24px);
        }
        
        /* Back Button */
        .back-button {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            cursor: pointer;
            margin-bottom: 1rem;
            transition: all 0.3s ease;
        }
        
        .back-button:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        
        .detail-header {
            margin-bottom: 1.5rem;
        }
        
        
        .menu-header {
            padding: 1.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .menu-title {
            font-size: 1.25rem;
            font-weight: 600;
        }
        
        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
        }
        
        .menu-item {
            padding: 1rem 1.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            cursor: pointer;
            transition: background 0.2s ease;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        .menu-item:hover {
            background: rgba(201, 149, 108, 0.1);
        }
        
        .menu-icon {
            font-size: 1.25rem;
        }
        
        /* Beneficiary Actions */
        .beneficiary-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1rem;
        }
        
        .beneficiary-actions {
            display: flex;
            gap: 0.5rem;
        }
        
        /* Mobile-First Responsive Design */
        
        /* Enhanced Mobile Touch Interactions */
        button, .card, .menu-item, .nav-item, .doc-card, .collection-card {
            min-height: 44px; /* iOS touch target minimum */
            touch-action: manipulation; /* Disable double-tap zoom */
        }
        
        /* Mobile-optimized text sizes */
        .page-title {
            font-size: 1.75rem;
            line-height: 1.2;
        }
        
        .page-subtitle {
            font-size: 0.9rem;
            line-height: 1.4;
        }
        
        /* Mobile-optimized spacing */
        .card {
            padding: 1.25rem;
            margin-bottom: 1.25rem;
        }
        
        /* Mobile-optimized grids */
        .feature-grid,
        .field-grid,
        .quick-actions,
        .ingestion-grid,
        .collections-grid,
        .security-grid,
        .category-pills {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
        }
        
        /* Mobile-optimized action buttons */
        .doc-action-btn {
            padding: 1rem 1.5rem;
            font-size: 1rem;
            min-height: 48px;
        }
        
        /* Mobile-optimized search */
        .search-input {
            font-size: 16px; /* Prevents zoom on iOS */
            padding: 1rem;
        }
        
        /* Mobile-optimized modals */
        .modal-content {
            width: 95vw;
            max-height: 90vh;
            margin: 5vh auto;
            padding: 1.5rem;
        }
        
        /* Mobile-optimized recipient dropdowns */
        .recipient-dropdown {
            width: 95vw !important;
            right: auto !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
            max-height: 70vh !important;
        }
        
        
        /* Documents view mobile optimizations */
        .doc-card {
            padding: 1.25rem;
            margin-bottom: 1.25rem;
        }
        
        .doc-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;
        }
        
        /* Small mobile screens */
        @media (max-width: 640px) {
            .status-badges {
                display: none;
            }
            
            .subtitle {
                display: none;
            }
            
            .header {
                padding: 0 1.25rem;
            }
            
            .header-inner {
                padding: 0.75rem 1rem;
            }
            
            .container {
                padding: 1rem;
            }
            
            .logo-text {
                font-size: 1rem;
            }
            
            /* Single column layout for all grids */
            .feature-grid,
            .field-grid,
            .quick-actions,
            .ingestion-grid,
            .collections-grid,
            .security-grid {
                grid-template-columns: 1fr;
            }
            
            /* Stack document action buttons vertically on small screens */
            .document-actions {
                flex-direction: column !important;
                gap: 0.5rem !important;
            }
            
            .doc-action-btn {
                width: 100% !important;
                flex: none !important;
                margin-bottom: 0;
            }
        }
        
        /* Tablet and larger screens */
        @media (min-width: 768px) {
            .container {
                max-width: 600px;
                padding: 1.5rem;
            }
            
            .subtitle {
                display: flex;
            }
            
            .feature-grid,
            .security-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .quick-actions {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .collections-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .recipient-dropdown {
                width: 320px !important;
                left: auto !important;
                right: 0 !important;
                transform: none !important;
            }
            
            .doc-header {
                flex-direction: row;
                align-items: center;
            }
        }
        
        /* Large screens */
        @media (min-width: 1024px) {
            .container {
                max-width: 800px;
            }
            
            .feature-grid,
            .security-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .quick-actions {
                grid-template-columns: repeat(4, 1fr);
            }
            
            .collections-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        
        /* Improved scroll behavior for mobile */
        body {
            -webkit-overflow-scrolling: touch;
            scroll-behavior: smooth;
        }
        
        /* Safe area adjustments for modern mobile devices */
        @supports(padding: max(0px)) {
            .container {
                padding-left: max(1rem, env(safe-area-inset-left));
                padding-right: max(1rem, env(safe-area-inset-right));
            }
            
            .bottom-nav {
                padding-bottom: max(1rem, env(safe-area-inset-bottom));
            }
        }

        /* H33 Wallet Specific Styles */
        .mining-card {
            background: linear-gradient(to right, rgba(201, 149, 108, 0.3), rgba(219, 39, 119, 0.3));
            border: 1px solid rgba(201, 149, 108, 0.2);
        }
        
        .balance-card {
            background: linear-gradient(to right, rgba(201, 149, 108, 0.3), rgba(59, 130, 246, 0.3));
            border: 1px solid rgba(201, 149, 108, 0.2);
        }
        
        .portfolio-card {
            background: linear-gradient(to right, rgba(31, 41, 55, 0.4), rgba(55, 65, 81, 0.4));
            border: 1px solid rgba(107, 114, 128, 0.2);
        }

        .defi-exchange-card {
            background: linear-gradient(to right, rgba(120, 119, 198, 0.3), rgba(74, 222, 128, 0.2));
            border: 1px solid rgba(120, 119, 198, 0.3);
            position: relative;
            overflow: hidden;
        }

        .defi-exchange-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            animation: shimmer 3s infinite;
        }

        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }

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

        .exchange-label {
            font-size: 1.1rem;
            font-weight: 600;
            color: #7dd3fc;
        }

        .exchange-badge {
            background: linear-gradient(45deg, #4ade80, #22c55e);
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 1rem;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .ai-stats-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .ai-stat {
            text-align: center;
            background: rgba(0, 0, 0, 0.3);
            padding: 0.75rem;
            border-radius: 0.5rem;
            border: 1px solid rgba(120, 119, 198, 0.2);
        }

        .exchange-interface {
            position: relative;
            z-index: 1;
        }

        .exchange-row {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 1rem;
            align-items: end;
            margin-bottom: 1rem;
        }

        .exchange-field {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .field-label {
            font-size: 0.875rem;
            color: #9ca3af;
            font-weight: 500;
        }

        .currency-selector {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .currency-select {
            background: rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(120, 119, 198, 0.3);
            border-radius: 0.5rem;
            color: white;
            padding: 0.75rem;
            font-size: 0.875rem;
        }

        .amount-input {
            background: rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(120, 119, 198, 0.3);
            border-radius: 0.5rem;
            color: white;
            padding: 0.75rem;
            font-size: 1rem;
            font-weight: 600;
        }

        .amount-input::placeholder {
            color: #6b7280;
        }

        .exchange-arrow {
            font-size: 1.5rem;
            color: #7dd3fc;
            text-align: center;
            align-self: center;
        }

        .estimated-output {
            font-size: 0.875rem;
            color: #4ade80;
            font-weight: 600;
            padding: 0.5rem;
            background: rgba(74, 222, 128, 0.1);
            border-radius: 0.25rem;
            text-align: center;
        }

        .ai-optimization {
            background: rgba(74, 222, 128, 0.1);
            border: 1px solid rgba(74, 222, 128, 0.2);
            border-radius: 0.75rem;
            padding: 1rem;
            margin: 1rem 0;
        }

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

        .ai-badge {
            background: linear-gradient(45deg, #A67744, #D4A87C);
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 1rem;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .improvement-badge {
            background: linear-gradient(45deg, #4ade80, #22c55e);
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 1rem;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .optimization-details {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .detail-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.875rem;
        }

        .detail-row span:first-child {
            color: #9ca3af;
        }

        .detail-row span:last-child {
            font-weight: 600;
        }

        .exchange-actions {
            display: flex;
            gap: 0.75rem;
            margin-top: 1rem;
        }

        .exchange-btn {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.875rem;
            border-radius: 0.75rem;
            font-weight: 600;
            font-size: 0.875rem;
            transition: all 0.2s;
        }

        .exchange-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(120, 119, 198, 0.4);
        }

        .send-card {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(107, 114, 128, 0.2);
        }
        
        .staking-card {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(107, 114, 128, 0.2);
        }
        
        .agents-card {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(107, 114, 128, 0.2);
        }
        
        .mining-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }
        
        .mining-status {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .pulse-dot {
            width: 12px;
            height: 12px;
            background: #06b6d4;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }
        
        .mining-badge {
            font-size: 0.75rem;
            background: rgba(6, 182, 212, 0.2);
            color: #06b6d4;
            padding: 0.25rem 0.5rem;
            border-radius: 9999px;
        }
        
        .mining-stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            margin-bottom: 1rem;
        }
        
        .stat-value {
            font-size: 1.25rem;
            font-weight: bold;
            color: #c4b5fd;
        }
        
        .stat-label {
            font-size: 0.875rem;
            color: #D4A87C;
        }
        
        .invite-box {
            background: rgba(201, 149, 108, 0.1);
            border-radius: 0.75rem;
            padding: 1rem;
            border: 1px solid rgba(201, 149, 108, 0.2);
        }
        
        .invite-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
        }
        
        .invite-title {
            font-weight: 600;
            color: #c4b5fd;
        }
        
        .invite-badge {
            font-size: 0.75rem;
            color: #06b6d4;
        }
        
        .invite-desc {
            font-size: 0.875rem;
            color: #D4A87C;
            margin-bottom: 0.75rem;
        }
        
        .invite-buttons {
            display: flex;
            gap: 0.5rem;
        }
        
        .btn-primary {
            flex: 1;
            background: linear-gradient(to right, #06b6d4, #C9956C);
            color: white;
            font-weight: 600;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            border: none;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .btn-primary:hover {
            background: linear-gradient(to right, #0891b2, #9333ea);
        }
        
        .btn-secondary {
            padding: 0.5rem 1rem;
            border: 1px solid rgba(6, 182, 212, 0.5);
            color: #06b6d4;
            background: transparent;
            border-radius: 0.5rem;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .btn-secondary:hover {
            background: rgba(6, 182, 212, 0.1);
        }
        
        .invite-stats {
            margin-top: 0.75rem;
            font-size: 0.75rem;
            color: #D4A87C;
        }
        
        .balance-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
        }
        
        .balance-label {
            color: #D4A87C;
        }
        
        .balance-badge {
            font-size: 0.75rem;
            background: rgba(201, 149, 108, 0.2);
            color: #C9956C;
            padding: 0.25rem 0.5rem;
            border-radius: 9999px;
        }
        
        .balance-amount {
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 0.75rem;
        }
        
        .balance-usd {
            font-size: 0.875rem;
            color: #D4A87C;
        }
        
        .portfolio-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }
        
        .portfolio-label {
            color: #d1d5db;
        }
        
        .portfolio-badge {
            font-size: 0.75rem;
            background: rgba(6, 182, 212, 0.2);
            color: #06b6d4;
            padding: 0.25rem 0.5rem;
            border-radius: 9999px;
        }
        
        .portfolio-total {
            font-size: 1.25rem;
            font-weight: bold;
            margin-bottom: 0.75rem;
        }
        
        .token-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            font-size: 0.875rem;
        }
        
        .token-symbol {
            color: #9ca3af;
        }
        
        .token-amount {
            font-weight: 600;
        }
        
        .send-header {
            font-size: 1.125rem;
            font-weight: bold;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .send-icon {
            color: #06b6d4;
        }
        
        .input-group {
            margin-bottom: 1rem;
        }
        
        .input-label {
            display: block;
            font-size: 0.875rem;
            color: #9ca3af;
            margin-bottom: 0.5rem;
        }
        
        .input-wrapper {
            position: relative;
        }
        
        .input-field {
            width: 100%;
            background: rgba(31, 41, 55, 0.5);
            border: 1px solid #4b5563;
            border-radius: 0.75rem;
            padding: 0.625rem 0.75rem 0.625rem 2.5rem;
            color: white;
            font-size: 0.875rem;
            transition: all 0.3s;
        }
        
        .input-field:focus {
            outline: none;
            border-color: #06b6d4;
        }
        
        .input-field::placeholder {
            color: #6b7280;
        }
        
        .input-icon {
            position: absolute;
            left: 0.625rem;
            top: 0.625rem;
            color: #6b7280;
            font-size: 0.875rem;
        }
        
        .ai-indicator {
            position: absolute;
            right: 0.625rem;
            top: 0.625rem;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            color: #06b6d4;
            font-size: 0.625rem;
        }
        
        .input-hint {
            font-size: 0.75rem;
            color: #9ca3af;
            margin-top: 0.25rem;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .contact-suggestions {
            margin-top: 0.75rem;
            background: rgba(31, 41, 55, 0.9);
            backdrop-filter: blur(10px);
            border-radius: 0.75rem;
            border: 1px solid rgba(75, 85, 99, 0.5);
            overflow: hidden;
        }
        
        .suggestions-header {
            padding: 0.75rem;
            font-size: 0.875rem;
            color: #06b6d4;
            border-bottom: 1px solid rgba(75, 85, 99, 0.5);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .add-contact {
            padding: 0.75rem;
            border-top: 1px solid rgba(75, 85, 99, 0.5);
        }
        
        .add-contact-btn {
            width: 100%;
            text-align: left;
            font-size: 0.875rem;
            color: #06b6d4;
            background: transparent;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s;
        }
        
        .add-contact-btn:hover {
            color: #67e8f9;
        }
        
        .amount-currency-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
            margin-bottom: 1rem;
        }
        
        .select-wrapper {
            position: relative;
        }
        
        .select-field {
            width: 100%;
            background: rgba(31, 41, 55, 0.5);
            border: 1px solid #4b5563;
            border-radius: 0.75rem;
            padding: 0.625rem 2rem 0.625rem 0.75rem;
            color: white;
            font-size: 0.875rem;
            appearance: none;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .select-field:focus {
            outline: none;
            border-color: #06b6d4;
        }
        
        .select-icon {
            position: absolute;
            right: 0.625rem;
            top: 0.625rem;
            color: #6b7280;
            pointer-events: none;
            font-size: 0.875rem;
        }
        
        .select-hint {
            font-size: 0.75rem;
            color: #9ca3af;
            margin-top: 0.25rem;
        }
        
        .smart-banner {
            margin-bottom: 1rem;
            padding: 0.75rem;
            background: linear-gradient(to right, rgba(6, 182, 212, 0.1), rgba(201, 149, 108, 0.1));
            border-radius: 0.75rem;
            border: 1px solid rgba(201, 149, 108, 0.2);
        }
        
        .smart-banner-header {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.5rem;
        }
        
        .smart-banner-title {
            font-weight: 600;
            color: #C9956C;
        }
        
        .smart-features {
            font-size: 0.875rem;
            color: #e5e7eb;
            line-height: 1.5;
        }
        
        .smart-features > div {
            margin-bottom: 0.25rem;
        }
        
        .send-button {
            width: 100%;
            background: linear-gradient(to right, #06b6d4, #C9956C);
            color: white;
            font-weight: 600;
            padding: 1rem;
            border-radius: 0.75rem;
            border: none;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }
        
        .send-button:hover:not(:disabled) {
            background: linear-gradient(to right, #0891b2, #9333ea);
        }
        
        .send-button:disabled {
            background: linear-gradient(to right, #4b5563, #374151);
            cursor: not-allowed;
        }
        
        .staking-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .staking-title {
            font-size: 1.125rem;
            font-weight: bold;
        }
        
        .staking-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.75rem;
            margin-bottom: 1rem;
            text-align: center;
        }
        
        .staking-stat-label {
            color: #9ca3af;
            font-size: 0.75rem;
            margin-bottom: 0.25rem;
        }
        
        .staking-stat-value {
            font-size: 1rem;
            font-weight: bold;
        }
        
        .staking-stat-value.apy {
            color: #06b6d4;
        }
        
        .staking-stat-value.rewards {
            color: #C9956C;
        }
        
        .enhanced-staking {
            background: rgba(201, 149, 108, 0.1);
            border-radius: 0.75rem;
            padding: 1rem;
            border: 1px solid rgba(201, 149, 108, 0.2);
        }
        
        .enhanced-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
        }
        
        .enhanced-title {
            font-weight: 600;
            color: #c4b5fd;
        }
        
        .enhanced-badge {
            font-size: 0.75rem;
            color: #06b6d4;
        }
        
        .enhanced-desc {
            font-size: 0.875rem;
            color: #D4A87C;
            margin-bottom: 0.75rem;
        }
        
        .multiplier-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
            font-size: 0.75rem;
        }
        
        .multiplier-label {
            color: #9ca3af;
        }
        
        .multiplier-value {
            font-weight: 600;
            color: #06b6d4;
        }
        
        .multiplier-value.next {
            color: #C9956C;
        }
        
        .agents-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .agents-title {
            font-size: 1.125rem;
            font-weight: bold;
        }
        
        .agents-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .agent-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem;
            background: linear-gradient(to right, rgba(201, 149, 108, 0.1), rgba(59, 130, 246, 0.1));
            border-radius: 0.75rem;
            border: 1px solid rgba(201, 149, 108, 0.2);
        }
        
        .agent-left {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .agent-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(to right, #3b82f6, #C9956C);
            border-radius: 0.75rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
        }
        
        .agent-info {
            display: flex;
            flex-direction: column;
        }
        
        .agent-name {
            font-weight: 600;
        }
        
        .agent-type {
            font-size: 0.875rem;
            color: #9ca3af;
        }
        
        .agent-right {
            text-align: right;
        }
        
        .agent-value {
            font-weight: 600;
            color: #06b6d4;
        }
        
        .agent-earning {
            font-size: 0.75rem;
            color: #9ca3af;
        }
        
        .agent-creation {
            margin-top: 1rem;
            padding: 0.75rem;
            background: linear-gradient(to right, rgba(6, 182, 212, 0.1), rgba(201, 149, 108, 0.1));
            border-radius: 0.75rem;
            border: 1px solid rgba(6, 182, 212, 0.2);
        }
        
        .creation-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.75rem;
        }
        
        .creation-title {
            font-weight: 600;
            color: #06b6d4;
        }
        
        .creation-badge {
            font-size: 0.75rem;
            background: rgba(201, 149, 108, 0.2);
            color: #C9956C;
            padding: 0.125rem 0.5rem;
            border-radius: 9999px;
        }
        
        .creation-desc {
            font-size: 0.875rem;
            color: #e5e7eb;
            margin-bottom: 0.75rem;
        }
        
        .creation-button {
            width: 100%;
            background: linear-gradient(to right, #06b6d4, #C9956C);
            color: white;
            font-weight: 600;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            border: none;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .creation-button:hover {
            background: linear-gradient(to right, #0891b2, #9333ea);
        }
        
        .activity-section {
            padding: 0.75rem 1rem;
        }
        
        .activity-header {
            font-size: 1.125rem;
            font-weight: bold;
            margin-bottom: 1rem;
        }
        
        .activity-list {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }
        
        .activity-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem;
            background: rgba(31, 41, 55, 0.3);
            border-radius: 0.75rem;
        }
        
        .activity-left {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .activity-icon {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .activity-icon.mine {
            background: linear-gradient(to right, rgba(201, 149, 108, 0.4), rgba(74, 222, 128, 0.4));
        }
        
        .activity-icon.referral {
            background: linear-gradient(to right, rgba(6, 182, 212, 0.4), rgba(201, 149, 108, 0.4));
        }
        
        .activity-icon.agent {
            background: linear-gradient(to right, rgba(59, 130, 246, 0.4), rgba(6, 182, 212, 0.4));
        }
        
        .activity-icon.send {
            background: linear-gradient(to right, rgba(6, 182, 212, 0.4), rgba(201, 149, 108, 0.4));
        }
        
        .activity-info {
            display: flex;
            flex-direction: column;
        }
        
        .activity-title {
            font-weight: 500;
        }
        
        .activity-time {
            font-size: 0.75rem;
            color: #9ca3af;
        }
        
        .activity-right {
            text-align: right;
        }
        
        .activity-amount {
            font-weight: 600;
        }
        
        .activity-amount.positive {
            color: #06b6d4;
        }
        
        .activity-amount.negative {
            color: white;
        }
        
        .activity-status {
            font-size: 0.75rem;
        }
        
        .activity-status.mine {
            color: #C9956C;
        }
        
        .activity-status.referral {
            color: #06b6d4;
        }
        
        .activity-status.agent {
            color: #3b82f6;
        }
        
        .activity-status.send {
            color: #06b6d4;
        }
        
        .estate-tab-content {
            display: block;
        }
        
        .estate-tab-content[style*="display: none"] {
            display: none !important;
        }

        /* ============================================
           PHASE 1: TOAST NOTIFICATIONS
           ============================================ */

        /* Toast Container */
        .toast-container {
            position: fixed;
            top: 80px;
            right: 20px;
            z-index: 10000;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            pointer-events: none;
        }

        /* Toast Base */
        .toast {
            background: rgba(0, 0, 0, 0.95);
            border-left: 4px solid;
            border-radius: 12px;
            padding: 1rem;
            min-width: 300px;
            max-width: 400px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            pointer-events: auto;
            animation: toastSlideIn 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        @keyframes toastSlideIn {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .toast.removing {
            animation: toastSlideOut 0.3s ease forwards;
        }

        @keyframes toastSlideOut {
            to {
                transform: translateX(400px);
                opacity: 0;
            }
        }

        /* Toast Types */
        .toast.success {
            border-left-color: #4ade80;
            background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, rgba(0, 0, 0, 0.95) 100%);
        }

        .toast.error {
            border-left-color: #ef4444;
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(0, 0, 0, 0.95) 100%);
        }

        .toast.warning {
            border-left-color: #f59e0b;
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(0, 0, 0, 0.95) 100%);
        }

        .toast.info {
            border-left-color: #3b82f6;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(0, 0, 0, 0.95) 100%);
        }

        /* Toast Icon */
        .toast-icon {
            flex-shrink: 0;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: bold;
        }

        .toast.success .toast-icon {
            background: rgba(74, 222, 128, 0.2);
            color: #4ade80;
        }

        .toast.error .toast-icon {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }

        .toast.warning .toast-icon {
            background: rgba(245, 158, 11, 0.2);
            color: #f59e0b;
        }

        .toast.info .toast-icon {
            background: rgba(59, 130, 246, 0.2);
            color: #3b82f6;
        }

        /* Toast Content */
        .toast-content {
            flex: 1;
            min-width: 0;
        }

        .toast-title {
            font-weight: 600;
            font-size: 0.9375rem;
            margin-bottom: 0.25rem;
            color: white;
        }

        .toast-message {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.4;
        }

        /* Toast Close Button */
        .toast-close {
            flex-shrink: 0;
            background: transparent;
            border: none;
            color: rgba(255, 255, 255, 0.5);
            font-size: 20px;
            cursor: pointer;
            padding: 0;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.2s;
            line-height: 1;
        }

        .toast-close:hover {
            color: rgba(255, 255, 255, 0.9);
        }

        /* Toast Progress Bar */
        .toast-progress {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: rgba(255, 255, 255, 0.1);
            overflow: hidden;
        }

        .toast-progress-bar {
            height: 100%;
            background: currentColor;
            animation: toastProgress linear;
            transform-origin: left;
        }

        .toast.success .toast-progress-bar {
            background: #4ade80;
        }

        .toast.error .toast-progress-bar {
            background: #ef4444;
        }

        .toast.warning .toast-progress-bar {
            background: #f59e0b;
        }

        .toast.info .toast-progress-bar {
            background: #3b82f6;
        }

        @keyframes toastProgress {
            from { width: 100%; }
            to { width: 0%; }
        }

        /* Mobile Responsive */
        @media (max-width: 640px) {
            .toast-container {
                top: 70px;
                right: 10px;
                left: 10px;
            }

            .toast {
                min-width: unset;
                max-width: unset;
            }
        }

        /* ============================================
           PHASE 2: CONFIRMATION MODALS
           ============================================ */

        /* Modal Overlay */
        .confirmation-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(4px);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            animation: fadeIn 0.3s ease;
        }

        /* Confirmation Modal */
        .confirmation-modal {
            background: linear-gradient(135deg, rgba(26, 0, 51, 0.98) 0%, rgba(45, 27, 105, 0.98) 100%);
            border: 1px solid rgba(201, 149, 108, 0.3);
            border-radius: 20px;
            max-width: 480px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            animation: modalSlideUp 0.3s ease;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        }

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

        /* Modal Header */
        .confirmation-header {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            padding: 1.5rem;
            border-bottom: 1px solid rgba(201, 149, 108, 0.2);
        }

        .confirmation-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            flex-shrink: 0;
        }

        .confirmation-icon.send {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(201, 149, 108, 0.2) 100%);
        }

        .confirmation-icon.exchange {
            background: linear-gradient(135deg, rgba(74, 222, 128, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
        }

        .confirmation-icon.claim {
            background: linear-gradient(135deg, rgba(251, 146, 60, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
        }

        .confirmation-title-section {
            flex: 1;
        }

        .confirmation-title {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 0.25rem;
            color: white;
        }

        .confirmation-subtitle {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.6);
        }

        .confirmation-close {
            background: transparent;
            border: none;
            color: rgba(255, 255, 255, 0.5);
            font-size: 24px;
            cursor: pointer;
            padding: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.2s;
        }

        .confirmation-close:hover {
            color: rgba(255, 255, 255, 0.9);
        }

        /* Modal Body */
        .confirmation-body {
            padding: 1.5rem;
        }

        /* Transaction Summary */
        .transaction-summary {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .summary-row:last-child {
            border-bottom: none;
        }

        .summary-label {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.7);
        }

        .summary-value {
            font-size: 0.9375rem;
            font-weight: 600;
            color: white;
            text-align: right;
        }

        .summary-value.large {
            font-size: 1.25rem;
            background: linear-gradient(135deg, #C9956C 0%, #3b82f6 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .summary-value.success {
            color: #4ade80;
        }

        .summary-value.warning {
            color: #f59e0b;
        }

        /* Fee Breakdown */
        .fee-breakdown {
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 1rem;
        }

        .fee-breakdown-title {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: rgba(255, 255, 255, 0.5);
            margin-bottom: 0.75rem;
        }

        .fee-item {
            display: flex;
            justify-content: space-between;
            font-size: 0.875rem;
            margin-bottom: 0.5rem;
            color: rgba(255, 255, 255, 0.9);
        }

        .fee-item:last-child {
            margin-bottom: 0;
        }

        /* Security Notice */
        .security-notice {
            background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
            border: 1px solid rgba(74, 222, 128, 0.3);
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 1.5rem;
            display: flex;
            gap: 0.75rem;
        }

        .security-notice.warning {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 146, 60, 0.1) 100%);
            border-color: rgba(245, 158, 11, 0.3);
        }

        .security-icon {
            font-size: 20px;
            flex-shrink: 0;
        }

        .security-content {
            flex: 1;
        }

        .security-title {
            font-weight: 600;
            font-size: 0.875rem;
            margin-bottom: 0.25rem;
        }

        .security-message {
            font-size: 0.8125rem;
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.5;
        }

        /* Modal Footer */
        .confirmation-footer {
            display: flex;
            gap: 0.75rem;
            padding: 1.5rem;
            border-top: 1px solid rgba(201, 149, 108, 0.2);
        }

        .modal-btn {
            flex: 1;
            padding: 0.875rem 1.5rem;
            border-radius: 12px;
            font-size: 0.9375rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .modal-btn-cancel {
            background: rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .modal-btn-cancel:hover {
            background: rgba(255, 255, 255, 0.08);
            color: rgba(255, 255, 255, 1);
        }

        .modal-btn-confirm {
            background: linear-gradient(135deg, #C9956C 0%, #A67744 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(201, 149, 108, 0.3);
        }

        .modal-btn-confirm:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(201, 149, 108, 0.4);
        }

        .modal-btn-confirm:active {
            transform: translateY(0);
        }

        .modal-btn-confirm.success {
            background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
            box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
        }

        .modal-btn-confirm.success:hover {
            box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
        }

        @media (max-width: 640px) {
            .confirmation-modal {
                margin: 1rem;
                max-width: calc(100% - 2rem);
            }

            .confirmation-footer {
                flex-direction: column;
            }

            .modal-btn {
                width: 100%;
            }
        }

        /* ============================================
           PHASE 3: LOADING & SKELETON STATES
           ============================================ */

        /* Loading Overlay */
        .loading-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(4px);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 100;
            border-radius: inherit;
        }

        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid rgba(201, 149, 108, 0.2);
            border-top-color: #C9956C;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

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

        .loading-text {
            margin-top: 1rem;
            font-size: 0.9375rem;
            font-weight: 600;
            color: white;
        }

        .loading-subtext {
            margin-top: 0.25rem;
            font-size: 0.8125rem;
            color: rgba(255, 255, 255, 0.6);
        }

        /* Skeleton Loading */
        .skeleton {
            background: linear-gradient(
                90deg,
                rgba(255, 255, 255, 0.03) 0%,
                rgba(255, 255, 255, 0.08) 50%,
                rgba(255, 255, 255, 0.03) 100%
            );
            background-size: 200% 100%;
            animation: skeletonShimmer 1.5s ease-in-out infinite;
            border-radius: 8px;
        }

        @keyframes skeletonShimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        .skeleton-card {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 16px;
            padding: 1.5rem;
            margin-bottom: 1rem;
        }

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

        .skeleton-title {
            height: 20px;
            width: 40%;
            background: linear-gradient(
                90deg,
                rgba(255, 255, 255, 0.05) 0%,
                rgba(255, 255, 255, 0.1) 50%,
                rgba(255, 255, 255, 0.05) 100%
            );
            background-size: 200% 100%;
            animation: skeletonShimmer 1.5s ease-in-out infinite;
            border-radius: 4px;
        }

        .skeleton-badge {
            height: 24px;
            width: 60px;
            background: linear-gradient(
                90deg,
                rgba(201, 149, 108, 0.1) 0%,
                rgba(201, 149, 108, 0.2) 50%,
                rgba(201, 149, 108, 0.1) 100%
            );
            background-size: 200% 100%;
            animation: skeletonShimmer 1.5s ease-in-out infinite;
            border-radius: 12px;
        }

        .skeleton-text {
            height: 14px;
            width: 60%;
            background: linear-gradient(
                90deg,
                rgba(255, 255, 255, 0.03) 0%,
                rgba(255, 255, 255, 0.06) 50%,
                rgba(255, 255, 255, 0.03) 100%
            );
            background-size: 200% 100%;
            animation: skeletonShimmer 1.5s ease-in-out infinite;
            border-radius: 4px;
            margin-bottom: 0.5rem;
        }

        .skeleton-text.long {
            width: 90%;
        }

        .skeleton-text.medium {
            width: 70%;
        }

        .skeleton-text.short {
            width: 50%;
        }

        .skeleton-value {
            height: 24px;
            width: 100px;
            background: linear-gradient(
                90deg,
                rgba(255, 255, 255, 0.05) 0%,
                rgba(255, 255, 255, 0.1) 50%,
                rgba(255, 255, 255, 0.05) 100%
            );
            background-size: 200% 100%;
            animation: skeletonShimmer 1.5s ease-in-out infinite;
            border-radius: 4px;
        }

        /* Progress Bar */
        .progress-bar {
            width: 100%;
            height: 4px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 2px;
            overflow: hidden;
            position: relative;
        }

        .progress-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, #C9956C 0%, #3b82f6 100%);
            border-radius: 2px;
            transition: width 0.3s ease;
        }

        .progress-bar-indeterminate {
            position: absolute;
            height: 100%;
            width: 30%;
            background: linear-gradient(90deg, transparent 0%, #C9956C 50%, transparent 100%);
            animation: progressIndeterminate 1.5s ease-in-out infinite;
        }

        @keyframes progressIndeterminate {
            0% { left: -30%; }
            100% { left: 100%; }
        }

        /* Empty State */
        .empty-state {
            padding: 3rem 1.5rem;
            text-align: center;
            color: rgba(255, 255, 255, 0.6);
        }

        .empty-state-icon {
            font-size: 48px;
            margin-bottom: 1rem;
            opacity: 0.5;
        }

        .empty-state-title {
            font-size: 1.125rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: rgba(255, 255, 255, 0.8);
        }

        .empty-state-message {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.6);
            line-height: 1.6;
        }

        /* Pulse Loader */
        .pulse-loader {
            display: flex;
            gap: 0.5rem;
            align-items: center;
            justify-content: center;
        }

        .pulse-dot {
            width: 8px;
            height: 8px;
            background: #C9956C;
            border-radius: 50%;
            animation: pulseScale 1.4s ease-in-out infinite;
        }

        .pulse-dot:nth-child(2) {
            animation-delay: 0.2s;
        }

        .pulse-dot:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes pulseScale {
            0%, 80%, 100% {
                transform: scale(0);
                opacity: 0.5;
            }
            40% {
                transform: scale(1);
                opacity: 1;
            }
        }

        /* Shimmer Effect */
        .shimmer {
            position: relative;
            overflow: hidden;
        }

        .shimmer::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                transparent 0%,
                rgba(255, 255, 255, 0.1) 50%,
                transparent 100%
            );
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            100% {
                left: 100%;
            }
        }

        /* ============================================
           PHASE 4: ONBOARDING TUTORIAL
           ============================================ */

        /* Welcome Screen */
        .welcome-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(10px);
            z-index: 10001;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
            animation: fadeIn 0.5s ease;
        }

        .welcome-modal {
            background: linear-gradient(135deg, rgba(26, 0, 51, 0.98) 0%, rgba(45, 27, 105, 0.98) 100%);
            border: 1px solid rgba(201, 149, 108, 0.3);
            border-radius: 24px;
            max-width: 600px;
            width: 100%;
            padding: 3rem;
            text-align: center;
            animation: modalSlideUp 0.5s ease;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        }

        .welcome-logo {
            font-size: 4rem;
            margin-bottom: 1.5rem;
            animation: pulse 2s ease-in-out infinite;
        }

        .welcome-title {
            font-size: 2rem;
            font-weight: 700;
            background: linear-gradient(135deg, #C9956C 0%, #4ade80 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 1rem;
        }

        .welcome-subtitle {
            font-size: 1.1rem;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 2rem;
            line-height: 1.6;
        }

        .welcome-features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2.5rem;
            text-align: left;
        }

        .welcome-feature {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
        }

        .welcome-feature-icon {
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .welcome-feature-text {
            flex: 1;
        }

        .welcome-feature-title {
            font-weight: 600;
            color: white;
            margin-bottom: 0.25rem;
        }

        .welcome-feature-desc {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.6);
            line-height: 1.4;
        }

        .welcome-actions {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .welcome-btn {
            padding: 1rem 2rem;
            border-radius: 12px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s;
            border: none;
            min-width: 150px;
        }

        .welcome-btn-primary {
            background: linear-gradient(135deg, #C9956C 0%, #A67744 100%);
            color: white;
        }

        .welcome-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(201, 149, 108, 0.4);
        }

        .welcome-btn-secondary {
            background: rgba(255, 255, 255, 0.05);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

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

        /* Tutorial Overlay */
        .tutorial-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            z-index: 9998;
            pointer-events: none;
        }

        .tutorial-spotlight {
            position: absolute;
            border: 3px solid #C9956C;
            border-radius: 12px;
            box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.85),
                        0 0 40px rgba(201, 149, 108, 0.6),
                        inset 0 0 40px rgba(201, 149, 108, 0.2);
            transition: all 0.5s ease;
            pointer-events: none;
            z-index: 9999;
        }

        .tutorial-tooltip {
            position: absolute;
            background: linear-gradient(135deg, rgba(26, 0, 51, 0.98) 0%, rgba(45, 27, 105, 0.98) 100%);
            border: 1px solid rgba(201, 149, 108, 0.4);
            border-radius: 16px;
            padding: 1.5rem;
            max-width: 380px;
            z-index: 10000;
            pointer-events: auto;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            animation: tooltipSlideIn 0.4s ease;
        }

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

        .tutorial-step-badge {
            display: inline-block;
            background: rgba(201, 149, 108, 0.2);
            color: #C9956C;
            padding: 0.25rem 0.75rem;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
        }

        .tutorial-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: white;
            margin-bottom: 0.75rem;
        }

        .tutorial-description {
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.6;
            margin-bottom: 1.5rem;
        }

        .tutorial-actions {
            display: flex;
            gap: 0.75rem;
            justify-content: space-between;
            align-items: center;
        }

        .tutorial-btn {
            padding: 0.75rem 1.5rem;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            border: none;
            font-size: 0.95rem;
        }

        .tutorial-btn-primary {
            background: linear-gradient(135deg, #C9956C 0%, #A67744 100%);
            color: white;
            flex: 1;
        }

        .tutorial-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(201, 149, 108, 0.4);
        }

        .tutorial-btn-secondary {
            background: transparent;
            color: rgba(255, 255, 255, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .tutorial-btn-secondary:hover {
            color: white;
            border-color: rgba(255, 255, 255, 0.4);
        }

        .tutorial-progress {
            display: flex;
            gap: 0.5rem;
            align-items: center;
        }

        .tutorial-progress-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            transition: all 0.3s;
        }

        .tutorial-progress-dot.active {
            background: #C9956C;
            width: 24px;
            border-radius: 4px;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .welcome-modal {
                padding: 2rem;
            }

            .welcome-logo {
                font-size: 3rem;
            }

            .welcome-title {
                font-size: 1.5rem;
            }

            .welcome-features {
                grid-template-columns: 1fr;
            }

            .welcome-actions {
                flex-direction: column;
            }

            .welcome-btn {
                width: 100%;
            }

            .tutorial-tooltip {
                max-width: calc(100vw - 2rem);
                left: 1rem !important;
                right: 1rem !important;
            }
        }

        /* ============================================
           PHASE 5: WALLET ENHANCEMENTS
           ============================================ */

        /* Amount Shortcuts */
        .amount-shortcuts {
            display: flex;
            gap: 0.5rem;
            margin-top: 0.5rem;
            flex-wrap: wrap;
        }

        .shortcut-btn {
            padding: 0.5rem 1rem;
            background: rgba(201, 149, 108, 0.1);
            border: 1px solid rgba(201, 149, 108, 0.3);
            border-radius: 8px;
            color: #C9956C;
            font-weight: 600;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.3s;
            flex: 1;
            min-width: 60px;
        }

        .shortcut-btn:hover {
            background: rgba(201, 149, 108, 0.2);
            border-color: rgba(201, 149, 108, 0.5);
            transform: translateY(-2px);
        }

        .shortcut-btn:active {
            transform: translateY(0);
        }

        /* Input Validation States */
        .input-with-validation {
            position: relative;
        }

        .validation-icon {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.25rem;
            pointer-events: none;
        }

        .validation-icon.valid {
            color: #4ade80;
        }

        .validation-icon.invalid {
            color: #ef4444;
        }

        .validation-message {
            font-size: 0.875rem;
            margin-top: 0.5rem;
            padding: 0.5rem;
            border-radius: 6px;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .validation-message.success {
            background: rgba(74, 222, 128, 0.1);
            border: 1px solid rgba(74, 222, 128, 0.3);
            color: #4ade80;
        }

        .validation-message.error {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.3);
            color: #ef4444;
        }

        .validation-message.warning {
            background: rgba(251, 146, 60, 0.1);
            border: 1px solid rgba(251, 146, 60, 0.3);
            color: #fb923c;
        }

        /* Recent Addresses Dropdown */
        .recent-addresses-section {
            margin-top: 0.5rem;
        }

        .recent-addresses-toggle {
            background: transparent;
            border: none;
            color: #C9956C;
            font-size: 0.875rem;
            font-weight: 600;
            cursor: pointer;
            padding: 0.5rem 0;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s;
        }

        .recent-addresses-toggle:hover {
            color: #A67744;
        }

        .recent-addresses-list {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 0.5rem;
            margin-top: 0.5rem;
            max-height: 200px;
            overflow-y: auto;
            display: none;
        }

        .recent-addresses-list.show {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        .recent-address-item {
            padding: 0.75rem;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            margin-bottom: 0.5rem;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .recent-address-item:last-child {
            margin-bottom: 0;
        }

        .recent-address-item:hover {
            background: rgba(201, 149, 108, 0.1);
            border-color: rgba(201, 149, 108, 0.3);
            transform: translateX(5px);
        }

        .recent-address-label {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 0.25rem;
        }

        .recent-address-value {
            font-size: 0.8rem;
            font-family: 'Courier New', monospace;
            color: rgba(255, 255, 255, 0.9);
        }

        .recent-address-date {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.5);
        }

        /* Balance Badge */
        .balance-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background: rgba(201, 149, 108, 0.1);
            border: 1px solid rgba(201, 149, 108, 0.3);
            border-radius: 8px;
            font-size: 0.875rem;
            color: #C9956C;
            margin-top: 0.5rem;
        }

        .balance-badge.sufficient {
            background: rgba(74, 222, 128, 0.1);
            border-color: rgba(74, 222, 128, 0.3);
            color: #4ade80;
        }

        .balance-badge.insufficient {
            background: rgba(239, 68, 68, 0.1);
            border-color: rgba(239, 68, 68, 0.3);
            color: #ef4444;
        }

        /* Empty State for Recent Addresses */
        .recent-addresses-empty {
            text-align: center;
            padding: 2rem 1rem;
            color: rgba(255, 255, 255, 0.5);
        }

        .recent-addresses-empty-icon {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }

        .recent-addresses-empty-text {
            font-size: 0.875rem;
        }

        /* ============================================
           PHASE 6: EXCHANGE IMPROVEMENTS
           ============================================ */

        /* Slippage Settings Panel */
        .slippage-section {
            margin-top: 1rem;
            padding: 1rem;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
        }

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

        .slippage-label {
            font-size: 0.875rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9);
        }

        .slippage-value {
            font-size: 0.875rem;
            color: #C9956C;
            font-weight: 700;
        }

        .slippage-presets {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
        }

        .slippage-preset-btn {
            flex: 1;
            padding: 0.5rem;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.875rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .slippage-preset-btn:hover {
            background: rgba(201, 149, 108, 0.1);
            border-color: rgba(201, 149, 108, 0.3);
            color: white;
        }

        .slippage-preset-btn.active {
            background: rgba(201, 149, 108, 0.2);
            border-color: rgba(201, 149, 108, 0.5);
            color: #C9956C;
        }

        .slippage-custom {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .slippage-custom-input {
            flex: 1;
            padding: 0.5rem;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: white;
            font-size: 0.875rem;
        }

        .slippage-custom-input:focus {
            outline: none;
            border-color: rgba(201, 149, 108, 0.5);
        }

        .slippage-warning {
            margin-top: 0.5rem;
            padding: 0.5rem;
            background: rgba(251, 146, 60, 0.1);
            border: 1px solid rgba(251, 146, 60, 0.3);
            border-radius: 6px;
            font-size: 0.75rem;
            color: #fb923c;
            display: none;
        }

        .slippage-warning.show {
            display: block;
        }

        /* Swap Direction Toggle */
        .swap-toggle-btn {
            background: rgba(201, 149, 108, 0.2);
            border: 1px solid rgba(201, 149, 108, 0.3);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            margin: -0.5rem auto;
            position: relative;
            z-index: 10;
        }

        .swap-toggle-btn:hover {
            background: rgba(201, 149, 108, 0.3);
            transform: rotate(180deg) scale(1.1);
        }

        .swap-toggle-btn:active {
            transform: rotate(180deg) scale(0.95);
        }

        /* Price Alerts */
        .price-alerts-section {
            margin-top: 1rem;
        }

        .price-alerts-toggle {
            background: transparent;
            border: none;
            color: #C9956C;
            font-size: 0.875rem;
            font-weight: 600;
            cursor: pointer;
            padding: 0.5rem 0;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s;
        }

        .price-alerts-toggle:hover {
            color: #A67744;
        }

        .price-alerts-panel {
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 1rem;
            margin-top: 0.5rem;
            display: none;
        }

        .price-alerts-panel.show {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        .price-alert-input-group {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
        }

        .price-alert-input {
            flex: 1;
            padding: 0.5rem;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: white;
            font-size: 0.875rem;
        }

        .price-alert-input:focus {
            outline: none;
            border-color: rgba(201, 149, 108, 0.5);
        }

        .add-alert-btn {
            padding: 0.5rem 1rem;
            background: linear-gradient(135deg, #C9956C 0%, #A67744 100%);
            border: none;
            border-radius: 8px;
            color: white;
            font-weight: 600;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.3s;
        }

        .add-alert-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(201, 149, 108, 0.4);
        }

        .price-alerts-list {
            max-height: 200px;
            overflow-y: auto;
        }

        .price-alert-item {
            padding: 0.75rem;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            margin-bottom: 0.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .price-alert-item:last-child {
            margin-bottom: 0;
        }

        .price-alert-info {
            flex: 1;
        }

        .price-alert-pair {
            font-size: 0.875rem;
            font-weight: 600;
            color: white;
            margin-bottom: 0.25rem;
        }

        .price-alert-condition {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.6);
        }

        .delete-alert-btn {
            padding: 0.25rem 0.5rem;
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.3);
            border-radius: 6px;
            color: #ef4444;
            font-size: 0.75rem;
            cursor: pointer;
            transition: all 0.3s;
        }

        .delete-alert-btn:hover {
            background: rgba(239, 68, 68, 0.2);
        }

        .price-alerts-empty {
            text-align: center;
            padding: 1.5rem;
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.875rem;
        }

        /* Recent Trading Pairs */
        .recent-pairs-section {
            margin-top: 1rem;
        }

        .recent-pairs-label {
            font-size: 0.875rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 0.5rem;
        }

        .recent-pairs-list {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .recent-pair-btn {
            padding: 0.5rem 1rem;
            background: rgba(201, 149, 108, 0.1);
            border: 1px solid rgba(201, 149, 108, 0.2);
            border-radius: 8px;
            color: #C9956C;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .recent-pair-btn:hover {
            background: rgba(201, 149, 108, 0.2);
            border-color: rgba(201, 149, 108, 0.4);
            transform: translateY(-2px);
        }

        /* Advanced Settings Toggle */
        .advanced-settings-section {
            margin-top: 1rem;
        }

        .advanced-toggle-btn {
            background: transparent;
            border: none;
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.875rem;
            font-weight: 600;
            cursor: pointer;
            padding: 0.5rem 0;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s;
        }

        .advanced-toggle-btn:hover {
            color: white;
        }

        .advanced-panel {
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 1rem;
            margin-top: 0.5rem;
            display: none;
        }

        .advanced-panel.show {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        .advanced-setting {
            margin-bottom: 1rem;
        }

        .advanced-setting:last-child {
            margin-bottom: 0;
        }

        .advanced-setting-label {
            font-size: 0.875rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 0.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .advanced-setting-input {
            width: 100%;
            padding: 0.5rem;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: white;
            font-size: 0.875rem;
        }

        .advanced-setting-input:focus {
            outline: none;
            border-color: rgba(201, 149, 108, 0.5);
        }

        .info-tooltip {
            display: inline-block;
            width: 16px;
            height: 16px;
            background: rgba(201, 149, 108, 0.3);
            border-radius: 50%;
            text-align: center;
            line-height: 16px;
            font-size: 0.7rem;
            color: #C9956C;
            cursor: help;
        }

        /* ========================================
           RevMine Hybrid Wallet Components
           ======================================== */

        /* Token Chips Row */
        .token-row {
            display: flex;
            gap: 0.5rem;
            overflow-x: auto;
            padding-bottom: 0.25rem;
            scrollbar-width: none;
        }
        .token-row::-webkit-scrollbar { display: none; }

        .token-chip {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 6px;
            padding: 0.375rem 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.375rem;
            white-space: nowrap;
            font-size: 0.75rem;
        }

        .token-chip .token-symbol {
            color: #C9956C;
            font-weight: 600;
        }

        .token-chip .token-amount {
            color: rgba(255, 255, 255, 0.8);
        }

        /* Balance Card Enhanced */
        .balance-card-enhanced {
            background: linear-gradient(135deg, rgba(201, 149, 108, 0.2), rgba(6, 182, 212, 0.2));
            border: 1px solid rgba(201, 149, 108, 0.2);
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 0.75rem;
        }

        .balance-row {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: 0.75rem;
        }

        .balance-amount-large {
            font-size: 1.75rem;
            font-weight: 800;
            background: linear-gradient(135deg, #06b6d4, #C9956C);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .balance-change {
            font-size: 0.75rem;
            color: #4ade80;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        /* Portfolio Breakdown */
        .portfolio-breakdown {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            margin-bottom: 0.75rem;
            overflow: hidden;
        }

        .portfolio-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            cursor: pointer;
        }

        .portfolio-header span {
            font-size: 0.75rem;
            font-weight: 600;
        }

        .portfolio-toggle {
            width: 20px;
            height: 20px;
            transition: transform 0.2s;
        }

        .portfolio-toggle.open {
            transform: rotate(180deg);
        }

        .portfolio-list {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .portfolio-list.open {
            max-height: 400px;
        }

        .portfolio-row {
            display: flex;
            align-items: center;
            padding: 0.625rem 0.75rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .portfolio-row:last-child {
            border-bottom: none;
        }

        .portfolio-token {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex: 1;
        }

        .portfolio-token-icon {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.625rem;
            font-weight: 700;
        }

        .portfolio-token-name {
            font-size: 0.75rem;
            font-weight: 600;
        }

        .portfolio-token-balance {
            font-size: 0.625rem;
            color: rgba(255, 255, 255, 0.5);
        }

        .portfolio-value {
            text-align: right;
        }

        .portfolio-usd {
            font-size: 0.75rem;
            font-weight: 600;
        }

        .portfolio-change {
            font-size: 0.625rem;
        }

        .portfolio-change.up { color: #4ade80; }
        .portfolio-change.down { color: #ef4444; }

        /* Quick Actions Grid */
        .quick-actions-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0.5rem;
            margin-bottom: 0.75rem;
        }

        .quick-action-btn {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 0.75rem 0.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.375rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .quick-action-btn:hover {
            background: rgba(201, 149, 108, 0.15);
            border-color: #C9956C;
        }

        .quick-action-btn svg {
            width: 20px;
            height: 20px;
            fill: none;
            stroke: #C9956C;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .quick-action-btn span {
            font-size: 0.625rem;
            color: rgba(255, 255, 255, 0.7);
        }

        /* Pending Rewards Banner */
        .pending-rewards {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.75rem;
            background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
            border: 1px solid rgba(251, 191, 36, 0.3);
            border-radius: 10px;
            margin-bottom: 0.75rem;
            cursor: pointer;
        }

        .pending-rewards:hover {
            border-color: #fbbf24;
        }

        .pending-left {
            display: flex;
            align-items: center;
            gap: 0.625rem;
        }

        .pending-icon {
            width: 32px;
            height: 32px;
            background: rgba(251, 191, 36, 0.2);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .pending-icon svg {
            width: 18px;
            height: 18px;
            stroke: #fbbf24;
        }

        .pending-label {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.6);
        }

        .pending-amount {
            font-size: 1rem;
            font-weight: 700;
            color: #fbbf24;
        }

        .claim-all-btn {
            padding: 0.5rem 1rem;
            background: #fbbf24;
            border: none;
            border-radius: 6px;
            color: black;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .claim-all-btn:hover {
            background: #f59e0b;
            transform: scale(1.02);
        }

        /* Transaction Section with Filters */
        .tx-section {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            margin-bottom: 0.75rem;
            overflow: hidden;
        }

        .tx-section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 1rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .tx-section-title {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 600;
            font-size: 0.875rem;
        }

        .tx-section-title svg {
            width: 16px;
            height: 16px;
            fill: none;
            stroke: #C9956C;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .tx-filters {
            display: flex;
            gap: 0.25rem;
        }

        .tx-filter {
            width: 28px;
            height: 28px;
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(255, 255, 255, 0.5);
        }

        .tx-filter.active {
            background: rgba(201, 149, 108, 0.3);
            border-color: #C9956C;
            color: white;
        }

        .tx-filter svg {
            width: 14px;
            height: 14px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .tx-list {
            max-height: 280px;
            overflow-y: auto;
        }

        .tx-row {
            display: grid;
            grid-template-columns: 24px 1fr auto auto;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            align-items: center;
            font-size: 0.75rem;
        }

        .tx-row:last-child {
            border-bottom: none;
        }

        .tx-icon {
            width: 24px;
            height: 24px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .tx-icon svg {
            width: 12px;
            height: 12px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .tx-icon.send { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
        .tx-icon.receive { background: rgba(74, 222, 128, 0.2); color: #4ade80; }
        .tx-icon.mine { background: rgba(201, 149, 108, 0.2); color: #C9956C; }
        .tx-icon.bonus { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

        .tx-amount.positive { color: #4ade80; font-weight: 600; }
        .tx-amount.negative { color: #ef4444; font-weight: 600; }
        .tx-time { color: rgba(255, 255, 255, 0.4); font-size: 0.625rem; }

        /* Metrics Scroll */
        .metrics-scroll {
            display: flex;
            gap: 0.5rem;
            overflow-x: auto;
            padding: 0.5rem 0;
            margin-bottom: 0.75rem;
            scrollbar-width: none;
        }
        .metrics-scroll::-webkit-scrollbar { display: none; }

        .metric-card-mini {
            min-width: 110px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            padding: 0.75rem;
            flex-shrink: 0;
        }

        .metric-label-mini {
            font-size: 0.625rem;
            color: rgba(255, 255, 255, 0.5);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 0.25rem;
        }

        .metric-value-mini {
            font-size: 1rem;
            font-weight: 700;
        }

        .metric-sub {
            font-size: 0.625rem;
            color: rgba(255, 255, 255, 0.4);
            margin-top: 0.125rem;
        }

    