/* deposit-modal.css - Liquid Glass Design */

/* Modal Base - Bright Liquid Glass */
.modern-modal {
    background: rgba(30, 32, 36, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4),
                0 4px 16px rgba(0, 0, 0, 0.25);
    position: relative;
}

/* Glass border effect */
.modern-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 30%,
        rgba(255, 255, 255, 0.05) 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.modern-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex: 1;
}

.header-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.withdraw-icon,
.deposit-icon {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Convex effect */
.withdraw-icon::before,
.deposit-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
    pointer-events: none;
}

.withdraw-icon svg,
.deposit-icon svg {
    color: #00a8ff;
}

.header-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
}

.header-subtitle {
    font-size: 0.8125rem;
    color: #8b9bb4;
    margin: 0;
    font-weight: 500;
}

.modern-close {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #8b9bb4;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.15s ease;
    flex-shrink: 0;
    position: relative;
}

.modern-close::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
    pointer-events: none;
}

.modern-close:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.modern-body {
    padding: 1.5rem;
}

.balance-display {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.balance-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #8b9bb4;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.balance-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
}

.modern-form .form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #8b9bb4;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.modern-form .form-label svg {
    color: #5a6478;
}

.modern-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.15s ease;
    font-family: 'Inter', sans-serif;
}

.modern-input:focus {
    outline: none;
    border-color: #00a8ff;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.15);
}

.modern-input::placeholder {
    color: #3d4452;
    font-weight: 400;
}

.modern-amount {
    position: relative;
}

.modern-amount .amount-input {
    padding-right: 130px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
}

.currency-badge {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #8b9bb4;
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 8px;
    pointer-events: none;
}

/* MAX Button - Polished Glass */
.modern-max {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: #00a8ff;
    color: white;
    border: 1px solid rgba(0, 168, 255, 0.4);
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.modern-max::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.modern-max:hover {
    background: #33bbff;
    transform: translateY(-50%) translateY(-1px);
    box-shadow: 0 0 30px rgba(0, 168, 255, 0.4);
}

/* Submit Button - Polished Glass */
.modern-submit {
    width: 100%;
    background: #00a8ff;
    color: white;
    border: 1px solid rgba(0, 168, 255, 0.4);
    padding: 1rem;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    transition: all 0.15s ease;
    margin-top: 1.25rem;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.modern-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.modern-submit:hover {
    background: #33bbff;
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(0, 168, 255, 0.4);
}

.modern-submit svg {
    width: 18px;
    height: 18px;
}

.modern-warning {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
}

.modern-warning svg {
    color: #fbbf24;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.modern-warning span {
    font-size: 0.8125rem;
    color: #8b9bb4;
    line-height: 1.5;
    font-weight: 500;
}

/* Deposit Modal Specific Styles */
.modern-address {
    margin-bottom: 1.5rem;
}

.address-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #8b9bb4;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.address-section-label svg {
    color: #5a6478;
}

.address-display-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    transition: all 0.15s ease;
}

.address-display-box:hover {
    border-color: rgba(0, 168, 255, 0.4);
}

.address-text {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    word-break: break-all;
}

/* Copy Button - Polished */
.modern-copy {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #8b9bb4;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.15s ease;
    flex-shrink: 0;
    position: relative;
}

.modern-copy::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
    pointer-events: none;
}

.modern-copy:hover {
    background: #00a8ff;
    color: white;
    border-color: rgba(0, 168, 255, 0.4);
}

.modern-copy svg {
    width: 14px;
    height: 14px;
}

.modern-info {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1rem;
}

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

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-row:first-child {
    padding-top: 0;
}

.info-row svg {
    color: #5a6478;
    flex-shrink: 0;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #8b9bb4;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    min-width: 70px;
}

.info-value {
    font-size: 0.875rem;
    color: #ffffff;
    font-weight: 600;
    flex: 1;
}

.contract-addr {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #00a8ff;
}
