/* Mobile UI Wrapper for Receiver Portal - Exact Clone */
body {
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
}
.mobile-wrapper {
    width: 100%;
    max-width: 375px; /* Standard mobile size */
    min-height: 100vh;
    background-color: #0B0E11;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 70px;
}
/* Top Nav */
.mobile-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}
.brand-area {
    display: flex;
    align-items: center;
    gap: 6px;
}
.binance-logo-svg {
    width: 24px;
    height: 24px;
    color: #F0B90B;
}
.top-icons {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #848E9C; /* slightly muted compared to brand */
}
.top-icons svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.notification-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.notification-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #F0B90B;
    color: #0B0E11;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Balance Section */
.balance-section {
    padding: 0 16px 16px 16px;
    position: relative;
}
.balance-header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #848E9C;
    font-size: 0.85rem;
    margin-bottom: 6px;
}
.balance-header svg {
    width: 16px;
    height: 16px;
    fill: #848E9C;
}
.large-balance {
    font-size: 2rem;
    font-weight: 700;
    color: #EAECEF;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.btc-equiv {
    color: #848E9C;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}
.pnl-row {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #848E9C;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pnl-value {
    color: #0ECB81;
}

.deposit-btn-row {
    position: absolute;
    right: 16px;
    top: 24px;
}
.btn-deposit-yellow {
    background-color: #F0B90B;
    color: #0B0E11;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px 20px 16px;
}
.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #EAECEF;
    font-size: 0.75rem;
    text-decoration: none;
    width: 20%;
    font-weight: 500;
}
.action-icon {
    width: 36px;
    height: 36px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
.action-icon svg { 
    width: 28px; 
    height: 28px; 
}

/* Announcement Marquee */
.announcement-bar {
    margin: 0 16px;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #848E9C;
    font-size: 0.8rem;
}
.announcement-bar svg {
    fill: #848E9C;
}
.announcement-bar .speaker-icon {
    width: 16px;
    height: 16px;
    fill: #848E9C;
    flex-shrink: 0;
}
.announcement-bar .arrow-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
.announcement-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

/* Market Overview */
.market-overview {
    padding: 16px;
}
.market-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}
.m-tab {
    color: #848E9C;
    font-size: 0.85rem;
    padding-bottom: 8px;
    cursor: pointer;
    font-weight: 500;
}
.m-tab.active {
    color: #EAECEF;
    border-bottom: 2px solid #F0B90B;
}
.coin-list-header {
    display: flex;
    justify-content: space-between;
    color: #848E9C;
    font-size: 0.7rem;
    margin-bottom: 12px;
}
.coin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.coin-info {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 35%;
}
.coin-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2B3139;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: bold;
}
.coin-btc { color: #F7931A; }
.coin-eth { color: #627EEA; }
.coin-bnb { color: #F0B90B; }
.coin-sol { color: #14F195; }
.coin-xrp { color: #EAECEF; }
.coin-name-block {
    display: flex;
    flex-direction: column;
}
.c-ticker {
    font-size: 0.9rem;
    font-weight: 600;
    color: #EAECEF;
}
.c-pair {
    font-size: 0.7rem;
    color: #848E9C;
}
.coin-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 25%;
}
.c-price-val {
    font-size: 0.9rem;
    font-weight: 600;
    color: #EAECEF;
}
.c-price-fiat {
    font-size: 0.7rem;
    color: #848E9C;
}
.coin-chart {
    width: 15%;
    height: 20px;
    opacity: 0.8;
}
.coin-change {
    width: 25%;
    display: flex;
    justify-content: flex-end;
}
.change-btn {
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    min-width: 65px;
    text-align: center;
}
.c-up { background-color: #0ECB81; }
.c-down { background-color: #F6465D; }

/* Bottom Nav (Binance Clone) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 375px;
    background-color: #181A20;
    border-top: 1px solid #1f2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem max(env(safe-area-inset-bottom), 2rem) 1.5rem;
    z-index: 50;
    left: 50%;
    transform: translateX(-50%);
}
.b-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: #848E9C;
    transition: color 0.2s;
    text-decoration: none;
}
.b-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}
.b-nav-item span {
    font-size: 10px;
    font-weight: 500;
}
.b-nav-item:hover {
    color: #fff;
}
.b-nav-item.active {
    color: #FCD535;
}
.mobile-wrapper * {
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===================================================
   GENERIC BUTTON COMPONENT OVERHAUL
   =================================================== */
.btn-primary, .btn-secondary, .btn-danger, .btn-outline, .action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px; /* Minimum touch target */
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    line-height: 1;
    width: 100%;
}

.btn-primary:active, .btn-secondary:active, .btn-danger:active, .btn-outline:active, .action-button:active, .b-nav-item:active {
    transform: scale(0.97);
}

.btn-primary { background: var(--accent, #F0B90B); color: #000; }
.btn-primary:hover { background: #CF9C09; }

.btn-secondary { background: var(--bg-input, #2B3139); color: var(--text-primary, #F5F5F5); }
.btn-secondary:hover { background: #3c444f; }

.btn-danger { background: var(--error, #F6465D); color: #fff; }
.btn-danger:hover { opacity: 0.9; }

.btn-outline { background: transparent; border: 1px solid var(--border, #2B3139); color: var(--text-primary, #EAECEF); }
.btn-outline:hover { border-color: var(--accent, #F0B90B); color: var(--accent, #F0B90B); }

.btn-primary.loading, .btn-secondary.loading { opacity: 0.7; pointer-events: none; }

/* ===================================================
   MODAL UI OVERHAUL
   =================================================== */
.mobile-modal-overlay {
    position: fixed; top: 0; bottom: 0;
    left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 375px;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(2px);
}
.mobile-modal-overlay.active { opacity: 1; pointer-events: auto; }

.mobile-modal {
    width: 100%; max-width: 375px;
    background: var(--bg-card, #1E2329);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 24px 20px;
    transform: translateY(100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary, #F5F5F5);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}
.mobile-modal-overlay.active .mobile-modal { transform: translateY(0); }

.m-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.m-modal-title { font-size: 1.1rem; font-weight: 700; }
.m-modal-close { background: none; border: none; color: var(--text-secondary, #848E9C); font-size: 1.5rem; cursor: pointer; }

.m-form-group { margin-bottom: 16px; }
.m-form-label { display: block; font-size: 0.8rem; color: var(--text-secondary, #848E9C); margin-bottom: 8px; }
.m-form-input { 
    width: 100%; height: 44px; padding: 0 12px;
    background: var(--bg-input, #2B3139); border: 1px solid var(--border, #2B3139);
    border-radius: 8px; color: var(--text-primary, #EAECEF); font-size: 1rem; outline: none; transition: border 0.15s;
}
.m-form-input:focus { border-color: var(--accent, #F0B90B); }

/* ===================================================
   ADMIN-SENDER PANEL MOBILE OVERRIDES
   =================================================== */

/* Layout & Wrapper overrides */
.mobile-wrapper .page-content {
    padding: 12px 12px 80px 12px !important;
}

.mobile-wrapper .card {
    margin-bottom: 16px !important;
    border-radius: 12px !important;
    background: #181A20 !important;
    border: 1px solid #2B3139 !important;
}

/* Page Header & Buttons */
.mobile-wrapper .page-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    padding: 0 4px !important;
}

.mobile-wrapper .page-header .d-flex,
.mobile-wrapper .page-header .gap-12 {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.mobile-wrapper .page-header .btn {
    flex: 1 1 auto !important;
    font-size: 0.8rem !important;
    height: 38px !important;
    padding: 0 12px !important;
    border-radius: 6px !important;
}

/* Stats Cards */
.mobile-wrapper .stats-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
}

.mobile-wrapper .stat-card {
    padding: 12px !important;
    border-radius: 10px !important;
    background: #1E2329 !important;
    border: 1px solid #2B3139 !important;
}

.mobile-wrapper .stat-value {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

.mobile-wrapper .stat-label {
    font-size: 0.7rem !important;
    margin-top: 4px !important;
}

.mobile-wrapper .stat-icon {
    font-size: 1.25rem !important;
    margin-bottom: 6px !important;
}

/* Forms */
.mobile-wrapper .form-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
}

.mobile-wrapper .form-group {
    margin-bottom: 14px !important;
}

.mobile-wrapper .form-control {
    height: 42px !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
    background: #2B3139 !important;
    border-color: #2B3139 !important;
    color: #EAECEF !important;
}

.mobile-wrapper .form-control:focus {
    border-color: #F0B90B !important;
}

/* Tables */
.mobile-wrapper .table-wrapper {
    margin: 0 -12px !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-color: #2B3139 !important;
}

.mobile-wrapper table th,
.mobile-wrapper table td {
    padding: 10px 8px !important;
    font-size: 0.75rem !important;
}

/* Login Page native mobile feel */
.mobile-wrapper .login-page {
    padding: 16px !important;
    background: #0B0E11 !important;
    min-height: 100vh !important;
}

.mobile-wrapper .login-card {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

/* Custom Title & typography scale */
.mobile-wrapper .page-title {
    font-size: 1.35rem !important;
}
.mobile-wrapper .page-subtitle {
    font-size: 0.75rem !important;
}

/* Balance Display */
.mobile-wrapper .balance-display {
    max-width: 100% !important;
    border-radius: 12px !important;
    padding: 16px !important;
    background: #1E2329 !important;
    border: 1px solid #2B3139 !important;
}

.mobile-wrapper .balance-amount {
    font-size: 1.8rem !important;
}
