/* ============================================
   CRYPTOCURRENCY WALLET & TRADING STYLES
   ============================================ */

/* Profile Page Styles */
.profile-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.profile-header {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.profile-header h1 {
    margin: 0.5rem 0;
    font-size: 2rem;
}

.profile-username {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.profile-badges {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.badge-active {
    background: rgba(76, 175, 80, 0.2);
    color: #fff;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.badge-inactive {
    background: rgba(255, 152, 0, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 152, 0, 0.4);
}

.badge-admin {
    background: rgba(255, 193, 7, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.profile-stat {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.profile-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.profile-stat .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.profile-stat .stat-details {
    flex: 1;
}

.profile-stat .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
}

.profile-stat .stat-label {
    font-size: 0.875rem;
    color: #7f8c8d;
}

.profile-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-desc {
    color: #7f8c8d;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control:disabled {
    background: #f5f8fa;
    color: #95a5a6;
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.danger-zone {
    background: #fff5f5;
    border: 2px solid #fee;
    padding: 1.5rem;
    border-radius: 15px;
}

.danger-zone h3 {
    color: #e74c3c;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.info-grid {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #fee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #2c3e50;
}

.info-value {
    color: #7f8c8d;
    font-family: 'Courier New', monospace;
}

/* Deposit Page Styles */
.deposit-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.deposit-header {
    text-align: center;
    margin-bottom: 3rem;
}

.deposit-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.deposit-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.coin-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.coin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.coin-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.usd-card .coin-icon {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.digi-card .coin-icon {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.coin-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.coin-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.coin-balance {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.coin-balance span {
    font-weight: 700;
    color: #2c3e50;
}

.deposit-info-card,
.deposit-history-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.deposit-info-card h3,
.deposit-history-card h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deposit-steps {
    padding-left: 1.5rem;
    line-height: 2;
    color: #34495e;
}

.deposit-steps li {
    margin-bottom: 0.5rem;
}

.deposits-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.deposit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.deposit-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.deposit-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.deposit-details {
    flex: 1;
}

.deposit-coin {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.deposit-time,
.deposit-txn {
    font-size: 0.875rem;
    color: #7f8c8d;
}

.deposit-amount-status {
    text-align: right;
}

.deposit-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e1e8ed;
}

.modal-header h2 {
    margin: 0;
    color: #2c3e50;
}

.modal-close {
    width: 35px;
    height: 35px;
    border: none;
    background: #e9ecef;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #dee2e6;
    transform: rotate(90deg);
}

.deposit-form {
    padding: 2rem;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #7f8c8d;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Trading Page Styles */
.trading-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.trading-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.trading-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.market-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #d4edda;
    border-radius: 20px;
    color: #155724;
    font-weight: 600;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #28a745;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.trading-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    flex: 1;
    padding: 1rem 2rem;
    border: 2px solid #e1e8ed;
    background: white;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.trading-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-bottom: 2rem;
}

.trading-main {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.coin-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.coin-name {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.coin-name i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.coin-name h2 {
    margin: 0;
    color: #2c3e50;
}

.coin-symbol {
    padding: 0.25rem 0.75rem;
    background: #e9ecef;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
}

.coin-price-info {
    text-align: right;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.price-change {
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: flex-end;
}

.price-change.positive {
    color: #27ae60;
}

.price-change.negative {
    color: #e74c3c;
}

.chart-container {
    margin-bottom: 2rem;
}

.chart-controls {
    margin-bottom: 1rem;
}

.timeframe-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.timeframe-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e1e8ed;
    background: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeframe-btn:hover {
    background: #f8f9fa;
}

.timeframe-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

#tradingChart {
    height: 400px;
    width: 100%;
}

.market-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.market-stat {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.market-stat .stat-label {
    font-size: 0.75rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

.market-stat .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
}

.trading-panel {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.trade-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.trade-tab-btn {
    padding: 0.875rem;
    border: 2px solid #e1e8ed;
    background: white;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.trade-tab-btn.active:first-child {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.trade-tab-btn.active:last-child {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.wallet-balance {
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: white;
}

.balance-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.balance-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.input-with-icon {
    position: relative;
}

.input-with-icon .input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    font-weight: 600;
    pointer-events: none;
}

.total-display {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
}

.btn-trade {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-buy {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(39, 174, 96, 0.4);
}

.btn-sell {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn-sell:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.quick-btn {
    padding: 0.75rem;
    border: 1px solid #e1e8ed;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.recent-trades-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.recent-trades-card h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trades-table {
    overflow-x: auto;
}

.trades-table table {
    width: 100%;
    border-collapse: collapse;
}

.trades-table thead {
    background: #f8f9fa;
}

.trades-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.trades-table td {
    padding: 1rem;
    border-bottom: 1px solid #e1e8ed;
    color: #34495e;
}

.trade-type {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.trade-buy {
    background: #d4edda;
    color: #155724;
}

.trade-sell {
    background: #f8d7da;
    color: #721c24;
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .trading-grid {
        grid-template-columns: 1fr;
    }

    .trading-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    .profile-header h1 {
        font-size: 1.5rem;
    }

    .deposit-header h1 {
        font-size: 1.75rem;
        flex-direction: column;
    }

    .trading-header h1 {
        font-size: 1.5rem;
    }

    .coin-info-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .coin-price-info {
        text-align: left;
    }

    #tradingChart {
        height: 300px;
    }

    .trades-table {
        font-size: 0.875rem;
    }

    .trades-table th,
    .trades-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline-secondary {
    background: transparent;
    color: #6c757d;
    border: 2px solid #6c757d;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}