/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */
:root {
    --brand-primary: #f5f5f5;
    --brand-accent-light: #ffffff;
    --button-default: #8A8F98;
    --cta-background: #E5E5E6;
    --link-active: #ffffff;
    --surface-darkest: #08090A;
    --surface-dark: #0F1011;
    --surface-base: #141516;
    --surface-gray-mid: #23252A;
    --surface-gray: #383B3F;
    --surface-text-secondary: #62666D;
    --surface-text-tertiary: #8A8F98;
    --surface-border-light: #B4BCD0;
    --surface-light: #F7F8F8;
    --white: #ffff;
    --border-default: #D0D6E0;
    --border-subtle: #E2E4E7;
    --border-lighter: #E5E5E6;
}

/* Base */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--surface-dark);
    color: var(--surface-light);
    min-height: 100vh;
}

/* Forms (shared) */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 12px;
    font-weight: 590;
    line-height: 20px;
    color: var(--surface-text-tertiary);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

input, select {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--border-default);
    font-size: 13.3333px;
    font-weight: 400;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px 1px;
    min-height: 40px;
    transition: all 0.2s ease;
    font-family: inherit;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(94, 106, 210, 0.2), 0 0 0 1px var(--brand-primary);
    background-color: rgba(255, 255, 255, 0.04);
}

input::placeholder {
    color: var(--surface-text-secondary);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A8F98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

select option {
    background-color: var(--surface-dark);
    color: var(--white);
    padding: 10px;
}

/* Buttons (shared) */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent-light) 100%);
    color: #08090A;
    font-size: 14px;
    font-weight: 590;
    padding: 0 24px;
    height: 32px;
    border: none;
    border-radius: 12px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-ghost {
    background-color: transparent;
    color: var(--surface-text-tertiary);
    font-size: 13px;
    font-weight: 400;
    padding: 0 12px;
    height: 32px;
    border: 0;
    border-radius: 9999px;
    box-shadow: none;
    line-height: 19.5px;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-ghost:hover {
    color: var(--surface-border-light);
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--brand-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.user-icon:hover {
    background-color: var(--brand-accent-light);
}

.dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--surface-text-tertiary);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--surface-border-light);
}

.dropdown-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.05);
    margin: 4px 0;
}

/* Links (shared) */
.link {
    font-size: 13px;
    font-weight: 400;
    line-height: 19.5px;
    color: var(--surface-text-tertiary);
    text-decoration: none;
    padding: 0 12px;
    height: 32px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.link:hover {
    color: var(--surface-border-light);
}

/* Messages (shared) */
.message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    font-weight: 510;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

.message.success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

/* Auth Pages (login, signup, forgot password) */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--surface-darkest) 0%, var(--surface-dark) 50%, var(--surface-base) 100%);
}

.card {
    background-color: rgba(15, 16, 17, 0.9);
    padding: 0 12px 22px 12px;
    max-width: 380px;
    width: 100%;
    min-height: 480px;
    backdrop-filter: blur(10px);
    animation: slideUp 0.5s ease;
}

.card-header {
    padding: 36px 0 32px 0;
    text-align: center;
}

.logo {
    font-size: 28px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--white) 0%, var(--brand-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.subtitle {
    font-size: 13px;
    font-weight: 400;
    line-height: 24px;
    color: var(--surface-text-secondary);
}

.form-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.secondary-link-container {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.secondary-link-container span {
    color: var(--surface-text-secondary);
    font-size: 14px;
    margin-right: 6px;
}

.secondary-link-container .btn-ghost {
    color: var(--brand-primary);
    font-weight: 590;
    font-size: 14px;
    transition: all 0.2s ease;
}

.secondary-link-container .btn-ghost:hover {
    color: var(--brand-accent-light);
    transform: translateX(2px);
}

/* Dashboard */
.header {
    background-color: transparent;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 0px 0px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.header .logo {
    font-size: 20px;
    margin-bottom: 0;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-link {
    background-color: transparent;
    color: var(--surface-light);
    font-size: 14px;
    font-weight: 400;
    padding: 0 8px;
    border-radius: 6px;
    height: 32px;
    line-height: 24px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--surface-border-light);
}

.main-container {
    display: flex;
    min-height: calc(100vh - 72px);
    position: relative;
}

.sidebar {
    width: 240px;
    background-color: transparent;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
    transition: transform 0.3s ease;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-section {
    margin-bottom: 24px;
    padding: 0 16px;
}

.sidebar-title {
    font-size: 12px;
    font-weight: 590;
    color: var(--surface-text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--surface-text-tertiary);
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--surface-border-light);
}

.sidebar-item.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.content {
    flex: 1;
    padding: 32px 48px;
}

.page-header {
    margin-bottom: 32px;
}

.page-header .page-title {
    font-size: 38px;
    font-weight: 510;
    line-height: 48px;
    color: var(--white);
    margin-bottom: 8px;
}

.page-header .page-subtitle {
    font-size: 12px;
    font-weight: 400;
    line-height: 24px;
    color: var(--surface-text-secondary);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard-card {
    background-color: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 24px;
}

.dashboard-card .card-title {
    font-size: 20px;
    font-weight: 590;
    line-height: 26.6px;
    color: var(--white);
    margin-bottom: 16px;
}

.dashboard-card .card-content {
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
    color: var(--surface-text-secondary);
}

.stat-value {
    font-size: 32px;
    font-weight: 590;
    line-height: 40px;
    color: var(--white);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    color: var(--surface-text-secondary);
}

.stat-value.positive {
    color: #86efac;
}

.stat-value.negative {
    color: #fca5a5;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activity-type {
    font-size: 14px;
    font-weight: 510;
    color: var(--white);
}

.activity-date {
    font-size: 13px;
    color: var(--surface-text-tertiary);
}

.activity-amount {
    font-size: 14px;
    font-weight: 510;
}

.activity-amount.positive {
    color: #86efac;
}

.activity-amount.negative {
    color: #fca5a5;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.plan-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plan-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

.plan-name {
    font-size: 24px;
    font-weight: 590;
    color: var(--white);
    margin-bottom: 8px;
}

.plan-description {
    font-size: 14px;
    color: var(--surface-text-secondary);
}

.plan-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-size: 12px;
    color: var(--surface-text-secondary);
}

.detail-value {
    font-size: 14px;
    font-weight: 510;
    color: var(--white);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.plan-detail-card,
.invest-form-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.back-btn {
    margin-bottom: 16px;
}

.profit-preview {
    background-color: rgba(94, 106, 210, 0.1);
    border: 1px solid rgba(94, 106, 210, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.profit-title {
    font-size: 18px;
    font-weight: 590;
    color: var(--white);
    margin-bottom: 12px;
}

.profit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.profit-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profit-label {
    font-size: 12px;
    color: var(--surface-text-secondary);
}

.profit-value {
    font-size: 16px;
    font-weight: 510;
    color: var(--white);
}

.profit-value.positive {
    color: #86efac;
}

.loading-skeleton {
    background: linear-gradient(
        90deg,
        var(--surface-gray-mid) 25%,
        var(--surface-gray) 50%,
        var(--surface-gray-mid) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 24px 32px;
    }

    .page-header .page-title {
        font-size: 36px;
        line-height: 40px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 16px;
    }

    .hamburger-btn {
        display: block;
    }

    .header-actions .nav-link {
        display: none;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        background-color: var(--surface-darkest);
        transform: translateX(-100%);
        z-index: 1000;
        overflow-y: auto;
        padding-top: 80px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .content {
        padding: 20px 16px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .page-header .page-title {
        font-size: 28px;
        line-height: 36px;
    }
}

.plan-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.plan-buttons .btn-primary {
    width: 100%;
}

.optional {
    color: var(--surface-text-tertiary);
    font-weight: 400;
}

textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--border-default);
    font-size: 13.3333px;
    font-weight: 400;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px 1px;
    min-height: 80px;
    resize: vertical;
    transition: all 0.2s;
    font-family: inherit;
}

textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 1px var(--brand-primary), rgba(0, 0, 0, 0.2) 0px 0px 0px 1px;
}

.request-card {
    margin-bottom: 24px;
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.request-title {
    font-size: 20px;
    font-weight: 590;
    color: var(--white);
    margin-bottom: 4px;
}

.request-subtitle {
    font-size: 14px;
    color: var(--surface-text-secondary);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 510;
}

.status-pending {
    background-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-accepted {
    background-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-rejected {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.request-details {
    margin-bottom: 16px;
}

.message-row {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 6px;
}

.request-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accept-form {
    margin-bottom: 0;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.action-buttons .btn-primary {
    flex: 1;
}

.accept-btn {
    background-color: rgba(34, 197, 94);
    height: 32px;
}

.reject-btn {
    background-color: rgba(239, 68, 68);
    height: 32px;
}

.joint-investment-card {
    margin-bottom: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.joint-investment-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(94, 106, 210, 0.5);
}

.joint-investment-card:hover .joint-card-arrow {
    transform: translateX(4px);
    color: #a5b4fc;
    background: rgba(94, 106, 210, 0.25);
    border-color: rgba(94, 106, 210, 0.4);
}

.joint-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.joint-card-header .plan-name {
    margin-bottom: 4px;
}

.joint-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .joint-details-grid {
        grid-template-columns: 1fr;
    }
}

.detail-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-group .detail-label {
    font-size: 12px;
    color: var(--surface-text-secondary);
}

.detail-group .detail-value {
    font-size: 16px;
    font-weight: 590;
    color: var(--white);
}

.detail-group .detail-value.positive {
    color: #86efac;
}

.detail-group .detail-value.negative {
    color: #fca5a5;
}

.joint-partner-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: 16px;
}

.partner-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--brand-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 590;
}

.partner-name {
    font-size: 16px;
    font-weight: 590;
    color: var(--white);
    margin-bottom: 2px;
}

.partner-email {
    font-size: 13px;
    color: var(--surface-text-secondary);
}

.joint-message {
    padding: 16px;
    background-color: rgba(94, 106, 210, 0.1);
    border: 1px solid rgba(94, 106, 210, 0.3);
    border-radius: 8px;
}

.joint-message p {
    margin-top: 8px;
    font-size: 14px;
    color: var(--surface-text-tertiary);
    line-height: 1.5;
}

/* Deposit Page Styles */
.header-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.deposit-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--surface-text-secondary);
    font-weight: 590;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent-light) 100%);
    border-color: var(--brand-primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(94, 106, 210, 0.3);
}

.tab-icon {
    font-size: 20px;
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-subtitle {
    font-size: 14px;
    color: var(--surface-text-secondary);
    margin: 0;
}

/* Wallet Cards */
.wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.wallet-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.wallet-card:hover {
    background: linear-gradient(135deg, rgba(94, 106, 210, 0.12) 0%, rgba(94, 106, 210, 0.05) 100%);
    border-color: rgba(94, 106, 210, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.wallet-card.selected {
    background: linear-gradient(135deg, rgba(94, 106, 210, 0.2) 0%, rgba(94, 106, 210, 0.1) 100%);
    border-color: var(--brand-primary);
    box-shadow: 0 8px 30px rgba(94, 106, 210, 0.3);
}

.wallet-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.wallet-icon {
    font-size: 28px;
    font-weight: 600;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wallet-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wallet-name {
    font-weight: 600;
    font-size: 17px;
    color: var(--white);
    letter-spacing: -0.2px;
}

.wallet-currency {
    font-size: 12px;
    color: var(--surface-text-secondary);
    font-weight: 510;
    letter-spacing: 0.5px;
}

.wallet-arrow {
    color: var(--surface-text-secondary);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.wallet-card:hover .wallet-arrow {
    transform: translateX(6px);
    color: var(--brand-primary);
    opacity: 1;
}

.wallet-card.selected .wallet-arrow {
    transform: translateX(6px);
    color: var(--brand-primary);
    opacity: 1;
}

/* Selected Currency Badge */
.selected-currency-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(94, 106, 210, 0.2) 0%, rgba(94, 106, 210, 0.1) 100%);
    border: 2px solid rgba(94, 106, 210, 0.4);
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(94, 106, 210, 0.15);
}

.badge-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.badge-icon {
    font-size: 24px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.selected-currency-badge span:last-child {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.5px;
}

/* Wallet Address */
.deposit-info {
    margin-bottom: 32px;
}

.wallet-address-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.address-display {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.address-display span {
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--white);
    flex: 1;
    min-width: 200px;
    background: rgba(0, 0, 0, 0.3);
    padding: 14px 18px;
    border-radius: 12px;
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent-light) 100%);
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-weight: 590;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(94, 106, 210, 0.3);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(94, 106, 210, 0.4);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.copy-icon {
    font-size: 18px;
    line-height: 1;
}

.copy-text {
    line-height: 1;
}

/* Warning Box */
.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
    border: 2px solid rgba(245, 158, 11, 0.35);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
}

.warning-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.detail-note {
    margin: 0;
    font-size: 15px;
    color: var(--surface-text-secondary);
    line-height: 1.6;
}

.detail-label {
    font-weight: 590;
    font-size: 12px;
    color: var(--surface-text-tertiary);
    letter-spacing: 0.5px;
}

.detail-note span {
    color: #f59e0b;
    font-weight: 510;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* File Upload */
.file-upload {
    width: 100%;
}

.file-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
    background: linear-gradient(135deg, rgba(94, 106, 210, 0.12) 0%, rgba(94, 106, 210, 0.05) 100%);
    border-color: var(--brand-primary);
    border-style: solid;
}

.file-icon {
    font-size: 42px;
}

.file-text {
    font-size: 16px;
    font-weight: 590;
    color: var(--white);
    margin: 0;
}

.file-hint {
    font-size: 14px;
    color: var(--surface-text-secondary);
    margin: 0;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.file-preview img {
    width: 96px;
    height: 96px;
    object-cover: cover;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.remove-file {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid rgba(239, 68, 68, 0.35);
    border-radius: 12px;
    color: #ef4444;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: auto;
}

.remove-file:hover {
    background: rgba(239, 68, 68, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
    transform: scale(1.05);
}

/* Button with loading state */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Loading Skeleton */
.loading-skeleton {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton-wallet {
    height: 96px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 75%
    );
    background-size: 200% 100%;
    border-radius: 16px;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 24px;
    text-align: center;
}

.error-icon {
    font-size: 48px;
}

.error-text {
    font-size: 15px;
    color: var(--surface-text-secondary);
    margin: 0;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    background: rgba(34, 197, 94, 0.95);
    color: white;
    font-weight: 510;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    z-index: 1000;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Bank Account Cards */
.bank-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.bank-account-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.bank-account-card:hover {
    background: linear-gradient(135deg, rgba(94, 106, 210, 0.12) 0%, rgba(94, 106, 210, 0.05) 100%);
    border-color: rgba(94, 106, 210, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.bank-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.1);
}

.bank-icon {
    font-size: 32px;
}

.bank-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bank-name {
    font-weight: 600;
    font-size: 17px;
    color: var(--white);
    letter-spacing: -0.2px;
}

.bank-detail {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.bank-detail .detail-label {
    color: var(--surface-text-secondary);
    font-weight: 510;
}

.bank-detail .detail-value {
    color: var(--white);
    font-family: 'Courier New', monospace;
}

.copy-btn-small {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(94, 106, 210, 0.1);
    border: 2px solid rgba(94, 106, 210, 0.2);
}

.copy-btn-small:hover {
    background: rgba(94, 106, 210, 0.2);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(94, 106, 210, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .deposit-tabs {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .wallet-grid,
    .bank-accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .address-display {
        flex-direction: column;
        align-items: stretch;
    }
    
    .address-display span {
        min-width: 100%;
    }
    
    .copy-btn {
        width: 100%;
        justify-content: center;
    }
    
    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}

/* Deposit and Withdraw Styles */
.deposit-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: var(--surface-text-secondary);
    font-weight: 510;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: var(--brand-primary);
    color: var(--white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.wallet-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.wallet-card:hover, .wallet-card.selected {
    border-color: var(--brand-primary);
    background: rgba(94, 106, 210, 0.1);
}

.wallet-icon {
    width: 48px;
    height: 48px;
    background: var(--brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 590;
    font-size: 20px;
}

.wallet-name {
    font-weight: 590;
    font-size: 16px;
}

.wallet-currency {
    font-size: 14px;
    color: var(--surface-text-secondary);
}

.deposit-info {
    margin-bottom: 24px;
}

.wallet-address-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
}

.address-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.address-display span {
    word-break: break-all;
    font-family: monospace;
    font-size: 14px;
}

.detail-note {
    color: var(--surface-text-secondary);
    font-size: 13px;
}

.bank-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.bank-account-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.bank-icon {
    width: 48px;
    height: 48px;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.bank-info {
    flex: 1;
}

.bank-name {
    font-weight: 590;
    font-size: 16px;
    margin-bottom: 4px;
}

.bank-detail {
    font-size: 13px;
    color: var(--surface-text-secondary);
    margin-top: 2px;
}

/* Balance Display */
.balance-display {
    text-align: center;
    padding: 32px;
}

.balance-label {
    font-size: 14px;
    color: var(--surface-text-secondary);
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 48px;
    font-weight: 590;
}

/* Quick Amounts */
.quick-amounts {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.quick-amount-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.quick-amount-btn:hover {
    background: rgba(94, 106, 210, 0.2);
    border-color: var(--brand-primary);
}

/* Withdrawal Summary */
.withdrawal-summary {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row.total {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    margin-top: 12px;
    font-weight: 590;
    font-size: 16px;
}

.summary-label {
    color: var(--surface-text-secondary);
}

/* Transaction List */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 590;
    font-size: 18px;
}

.transaction-icon.deposit {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.transaction-icon.withdrawal {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.transaction-details {
    flex: 1;
}

.transaction-type {
    font-weight: 510;
    font-size: 14px;
}

.transaction-date {
    font-size: 13px;
    color: var(--surface-text-secondary);
    margin-top: 2px;
}

.transaction-amount {
    font-weight: 590;
    font-size: 16px;
}

@media (max-width: 640px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .page-header .page-title {
        font-size: 24px;
        line-height: 30px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}
