/* Dashboard Styles */

/* Dashboard Navigation */
.dashboard-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.dashboard-nav .logo-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.notification-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.notification-btn:hover {
    background: var(--bg-light);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--bg-light);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info strong {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.user-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.logout-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    color: var(--text-light);
}

.logout-btn:hover {
    color: var(--text-dark);
}

/* Dashboard Section */
.dashboard-section {
    padding: 3rem 0;
    background: var(--bg-light);
    min-height: calc(100vh - 80px);
}

.welcome-header {
    margin-bottom: 2rem;
}

.welcome-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.welcome-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

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

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.stat-icon {
    font-size: 1.5rem;
    padding: 0.5rem;
    background: #e8f0ff;
    border-radius: 8px;
}

.trust-icon {
    background: #f3e8ff;
}

.beneficiary-icon {
    background: #e8fff0;
}

.update-icon {
    background: #fff8e8;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stat-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-icon {
    font-size: 0.9rem;
}

.live-indicator {
    font-size: 0.7rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Action Cards */
.action-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.action-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.action-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.action-content p {
    opacity: 0.9;
    margin: 0;
}

.btn-light {
    background: var(--white);
    color: #667eea;
    font-weight: 600;
}

.btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Tabs Navigation */
.tabs-navigation {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(201, 169, 97, 0.05);
}

.tab-icon {
    font-size: 1.2rem;
}

/* Trust Card Main */
.trust-details-section {
    margin-top: 2rem;
}

.trust-card-main {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.trust-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.trust-info h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.trust-meta {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.trust-id {
    font-size: 0.85rem;
    color: var(--text-light);
    font-family: monospace;
}

.trust-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-irrevocable {
    background: #fff3cd;
    color: #856404;
}

.badge-active {
    background: #d4edda;
    color: #155724;
}

/* Trust Stats Row */
.trust-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.trust-stat {
    display: flex;
    flex-direction: column;
}

.trust-stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.trust-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Trust Actions */
.trust-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Crypto Portfolio */
.crypto-portfolio {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--bg-light);
}

.portfolio-header {
    margin-bottom: 1.5rem;
}

.portfolio-header h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
}

.crypto-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.crypto-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.crypto-item:hover {
    transform: translateX(5px);
    background: #f0f0f0;
}

.crypto-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.crypto-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--white);
    font-size: 1.2rem;
}

.avax-icon {
    background: #e84142;
}

.bnb-icon {
    background: #f3ba2f;
}

.crypto-info strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.crypto-amount {
    font-size: 0.85rem;
    color: var(--text-light);
}

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

.value-usd {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.value-rate {
    font-size: 0.85rem;
    color: var(--text-light);
}

.view-all-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    color: var(--primary-color);
    background: transparent;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

/* Manage Trust Styles */
.manage-trust-section {
    padding: 3rem 0;
    background: var(--bg-light);
    min-height: calc(100vh - 80px);
}

.manage-header {
    margin-bottom: 2rem;
}

.manage-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.trust-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Overview Cards */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.overview-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    align-items: center;
    box-shadow: var(--shadow);
}

.overview-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.wallet-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.people-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.overview-info {
    display: flex;
    flex-direction: column;
}

.overview-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.overview-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.overview-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Manage Content Grid */
.manage-content-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
}

/* Sidebar */
.manage-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section,
.quick-actions-section,
.danger-zone {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.sidebar-section h3,
.quick-actions-section h3,
.danger-zone h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.setting-item:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

.setting-icon {
    font-size: 1.3rem;
}

.status-icon {
    font-size: 1rem;
}

.blockchain-icon {
    font-size: 1.3rem;
}

.setting-info {
    flex: 1;
}

.setting-info strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.setting-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

.arrow {
    font-size: 1.5rem;
    color: var(--text-light);
}

/* Quick Actions */
.action-btn {
    width: 100%;
    padding: 0.875rem;
    margin-bottom: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #b89850;
    transform: translateY(-2px);
}

.action-icon {
    font-size: 1.1rem;
}

/* Danger Zone */
.danger-zone {
    border: 2px solid #dc3545;
}

.danger-zone h3 {
    color: #dc3545;
}

.danger-warning {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.btn-danger-outline,
.btn-danger {
    width: 100%;
    padding: 0.875rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-danger-outline {
    background: transparent;
    border: 2px solid #ffc107;
    color: #856404;
}

.btn-danger-outline:hover {
    background: #ffc107;
    color: var(--white);
}

.btn-danger {
    background: #dc3545;
    color: var(--white);
    border: none;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Main Content */
.manage-main-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header-row h2 {
    font-size: 1.5rem;
    margin: 0;
}

/* Beneficiary Card */
.beneficiary-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.beneficiary-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.beneficiary-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.beneficiary-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.beneficiary-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 0.85rem;
    color: var(--text-light);
}

.beneficiary-allocation {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.allocation-value {
    font-size: 2rem;
    font-weight: 700;
    color: #764ba2;
}

.allocation-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.beneficiary-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.edit-btn {
    background: #667eea;
    color: var(--white);
}

.edit-btn:hover {
    background: #5568d3;
}

.delete-btn {
    background: #dc3545;
    color: var(--white);
}

.delete-btn:hover {
    background: #c82333;
}

/* Allocation Summary */
.allocation-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #e8f5e9;
    border-radius: 12px;
}

.allocation-info {
    display: flex;
    flex-direction: column;
}

.allocation-title {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.allocation-status {
    font-size: 0.85rem;
    color: #2e7d32;
}

.allocation-total {
    font-size: 2rem;
    font-weight: 700;
    color: #2e7d32;
}

/* Responsive Design */
@media (max-width: 968px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .manage-content-grid {
        grid-template-columns: 1fr;
    }

    .trust-header {
        flex-direction: column;
        gap: 1rem;
    }

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

    .trust-actions button {
        width: 100%;
    }

    .beneficiary-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .beneficiary-allocation {
        align-items: flex-start;
        width: 100%;
    }

    .notification-text {
        display: none;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .action-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .tabs-navigation {
        overflow-x: auto;
    }

    .user-info {
        display: none;
    }
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Trust Details Page Styles */
.trust-details-page {
    padding: 3rem 0;
    background: var(--bg-light);
    min-height: calc(100vh - 80px);
}

.trust-header-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.trust-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.trust-icon-large {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-shrink: 0;
}

.trust-header-info {
    flex: 1;
}

.trust-header-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.trust-id-large {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    font-family: monospace;
}

.trust-badges-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.trust-badges-row .badge {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-role {
    background: rgba(255, 255, 255, 0.15) !important;
}

.trust-total-value {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.value-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.value-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.value-date {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Quick Stats Grid */
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quick-stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.stacks-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.people-icon.stat-icon-wrapper {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.blockchain-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.clock-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.stat-details h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.stat-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
}

/* Details Content Grid */
.details-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.details-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.details-section .section-header {
    margin-bottom: 1.5rem;
}

.details-section h2 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 0;
}

/* Beneficiaries List */
.beneficiaries-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.beneficiary-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.beneficiary-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.beneficiary-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}

.beneficiary-info-detailed {
    flex: 1;
}

.beneficiary-info-detailed h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.beneficiary-role,
.beneficiary-email {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.beneficiary-allocation-display {
    text-align: right;
}

.allocation-percentage {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #764ba2;
    margin-bottom: 0.25rem;
}

.allocation-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Crypto Portfolio List */
.crypto-portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.crypto-portfolio-list::-webkit-scrollbar {
    width: 6px;
}

.crypto-portfolio-list::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.crypto-portfolio-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.crypto-portfolio-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.crypto-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.crypto-row:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

.crypto-token-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.token-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.cardano-icon {
    background: linear-gradient(135deg, #0033ad 0%, #0d47a1 100%);
}

.solana-icon {
    background: linear-gradient(135deg, #14f195 0%, #9945ff 100%);
}

.uniswap-icon {
    background: linear-gradient(135deg, #ff007a 0%, #ff4ea9 100%);
}

.chainlink-icon {
    background: linear-gradient(135deg, #2a5ada 0%, #1a3e8f 100%);
}

.token-details h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.token-amount {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.crypto-value-info {
    text-align: right;
}

.crypto-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.crypto-rate {
    font-size: 0.8rem;
    color: var(--text-light);
}

.crypto-scroll-indicator {
    text-align: center;
    padding: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.scroll-arrow {
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Activity Section */
.activity-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.activity-timeline {
    margin-top: 1.5rem;
}

.activity-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.activity-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.activity-indicator.success {
    background: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.activity-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.activity-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Responsive Design for Trust Details */
@media (max-width: 968px) {
    .trust-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .trust-total-value {
        align-items: flex-start;
    }
    
    .details-content-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .trust-header-card {
        padding: 1.5rem;
    }
    
    .trust-header-info h1 {
        font-size: 1.5rem;
    }
    
    .value-amount {
        font-size: 2rem;
    }
    
    .quick-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .beneficiary-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .beneficiary-allocation-display {
        text-align: left;
    }
}

/* Link Wallet Page Styles */
.link-wallet-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 80px);
}

.link-wallet-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Header */
.link-wallet-header {
    text-align: center;
    margin-bottom: 2rem;
}

.wallet-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.link-wallet-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.link-wallet-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Connection Progress */
.connection-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Wallet Selection Card */
.wallet-selection-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.wallet-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.wallet-card-icon {
    font-size: 2rem;
}

.wallet-card-header h2 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--text-dark);
}

.wallet-card-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Wallet Options */
.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.wallet-option:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.metamask-icon {
    background: linear-gradient(135deg, #f6851b 0%, #e2761b 100%);
}

.trust-icon {
    background: linear-gradient(135deg, #3375bb 0%, #2e5f9e 100%);
}

.coinbase-icon {
    background: linear-gradient(135deg, #0052ff 0%, #0041cc 100%);
}

.wc-icon {
    background: linear-gradient(135deg, #3b99fc 0%, #2b7fd6 100%);
}

.blocto-icon {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.more-icon {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.wallet-option-name {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.wallet-option-arrow {
    font-size: 1.5rem;
    color: var(--text-light);
}

/* QR Section */
.qr-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.qr-code-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.qr-placeholder {
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: 8px;
    border: 2px dashed var(--border-color);
}

.qr-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.qr-placeholder p {
    color: var(--text-light);
    margin: 0;
}

.qr-instruction {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Security Notice */
.security-notice {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid #28a745;
}

.notice-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.notice-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #155724;
}

.notice-content p {
    font-size: 0.95rem;
    color: #155724;
    margin: 0;
}

/* Wallet Info Cards */
.wallet-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
}

.info-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Help Section */
.help-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.help-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.help-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.help-link {
    display: block;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.help-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Connection Modal */
.connection-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--bg-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.modal-content p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Responsive for Link Wallet */
@media (max-width: 768px) {
    .link-wallet-header h1 {
        font-size: 2rem;
    }
    
    .wallet-selection-card {
        padding: 1.5rem;
    }
    
    .wallet-info-cards {
        grid-template-columns: 1fr;
    }
    
    .help-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .wallet-icon-large {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .link-wallet-header h1 {
        font-size: 1.8rem;
    }
    
    .security-notice {
        flex-direction: column;
        text-align: center;
    }
}

/* Create Trust Wizard Styles */
.wizard-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.close-wizard {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.close-wizard:hover {
    color: var(--text-dark);
}

.wizard-section {
    padding: 3rem 0;
    background: var(--bg-light);
    min-height: calc(100vh - 80px);
}

/* Progress Steps */
.wizard-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 150px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--white);
}

.progress-step.completed .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: #f59e0b;
    font-weight: 600;
}

/* Wizard Form Container */
.wizard-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    position: relative;
}

/* Wizard Steps */
.wizard-step {
    display: none;
    animation: slideIn 0.5s ease;
}

.wizard-step.active {
    display: block;
}

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

.step-content h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Trust Type Cards */
.trust-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.trust-type-card {
    position: relative;
}

.trust-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.trust-type-card label {
    display: block;
    padding: 2rem;
    background: var(--bg-light);
    border: 3px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.trust-type-card input[type="radio"]:checked + label {
    border-color: #f59e0b;
    background: #fffbeb;
}

.trust-type-card label:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.trust-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.revocable-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.irrevocable-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.trust-type-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.trust-type-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.trust-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #d4edda;
    color: #155724;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Help Note */
.help-note {
    padding: 1.5rem;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 8px;
    display: flex;
    align-items: start;
    gap: 1rem;
}

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

/* Wizard Form */
.wizard-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.wizard-form .form-group {
    margin-bottom: 1.5rem;
}

.wizard-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.wizard-form input,
.wizard-form select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.wizard-form input:focus,
.wizard-form select:focus {
    outline: none;
    border-color: #f59e0b;
}

.wizard-form small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Add Self Option */
.add-self-option {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    cursor: pointer;
}

.add-self-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.add-self-option label span {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: normal;
}

/* Beneficiary Cards */
.beneficiary-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.beneficiary-card.self-beneficiary {
    background: #e8f5e9;
    border-color: #4caf50;
}

.beneficiary-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.beneficiary-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.beneficiary-card h3 {
    flex: 1;
    font-size: 1.2rem;
    margin: 0;
}

.beneficiary-badge {
    padding: 0.5rem 1rem;
    background: #667eea;
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.self-badge {
    background: #4caf50;
}

/* Add Beneficiary Button */
.btn-add-beneficiary {
    width: 100%;
    padding: 1.25rem;
    background: transparent;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    color: #667eea;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-beneficiary:hover {
    background: #f8f9fa;
    border-color: #667eea;
}

/* Allocation Warning */
.allocation-warning {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    display: flex;
    align-items: start;
    gap: 1rem;
}

.allocation-warning.success {
    background: #d4edda;
    border-color: #28a745;
}

.warning-icon {
    font-size: 1.5rem;
}

/* Review Section */
.review-section {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.review-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.review-section p {
    margin: 0.5rem 0;
    color: var(--text-light);
}

/* Terms Checkbox */
.terms-checkbox {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.terms-checkbox input {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
}

.terms-checkbox label {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.terms-checkbox a {
    color: #667eea;
    text-decoration: underline;
}

/* Wizard Navigation */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.wizard-navigation .btn {
    min-width: 120px;
}

/* Responsive */
@media (max-width: 768px) {
    .trust-type-options {
        grid-template-columns: 1fr;
    }
    
    .wizard-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .wizard-form-container {
        padding: 2rem 1.5rem;
    }
    
    .wizard-progress {
        overflow-x: auto;
    }
}

@media (max-width: 640px) {
    .step-content h1 {
        font-size: 1.5rem;
    }
    
    .wizard-form-container {
        padding: 1.5rem;
    }
}
