/* =========================
   WALLET BUTTON VISIBILITY
   ========================= */

/* Hide both by default */
#connect-wallet,
#mobile-connect-wallet {
    display: none;
}

/* Desktop only */
@media (min-width: 1025px) {
    #connect-wallet {
        display: block;
    }
    
    #mobile-connect-wallet {
        display: none !important;  /* force hidden on desktop */
    }
}

/* Mobile & tablet only */
@media (max-width: 1024px) {
    #mobile-connect-wallet {
        display: block !important;  /* force visible on mobile/tablet */
    }

    #connect-wallet {
        display: none !important;   /* force hidden on mobile/tablet */
    }
}

/* Default: hide both buttons */
#connect-wallet,
#mobile-connect-wallet {
    display: none;
}

/* Desktop only */
@media (min-width: 1025px) {
    #connect-wallet {
        display: block;
    }

    #mobile-connect-wallet {
        display: none; /* explicitly hide mobile button on desktop */
    }
}

/* Mobile & tablet only */
@media (max-width: 1024px) {
    #mobile-connect-wallet {
        display: block;
    }

    #connect-wallet {
        display: none; /* explicitly hide desktop button on mobile/tablet */
    }
}

/* ============================================================
   RESET & GLOBAL STYLES
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

h1 {
    color: #2c3e50;
    font-size: 1.5rem;
    text-align: center;
    margin: 10px 0;
}

/* ============================================================
   WALLET BUTTONS (SINGLE SOURCE OF TRUTH)
   ============================================================ */
#wallet-connect {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px auto;
}

/* Common wallet button styles */
#wallet-connect button {
    width: 240px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#wallet-connect button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

#wallet-connect button:active {
    transform: translateY(1px);
}

 

/* Desktop only */
@media (min-width: 1025px) {
    #connect-wallet {
        display: block;
    }
}

/* Mobile & tablet only */
@media (max-width: 1024px) {
    #mobile-connect-wallet {
        display: block;
    }

    #wallet-connect {
        flex-direction: column;
        align-items: center;
        margin: 10px 0;
    }

    #wallet-connect button {
        width: 90%;
        max-width: 300px;
    }
}

/* ============================================================
   FORMS, INPUTS & SELECTS
   ============================================================ */
input,
select {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/*button click action */

.buy-button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;

    background-color: #2ecc71;
    color: #fff;
    border: none;
    border-radius: 6px;

    box-shadow: 0 6px 0 #27ae60;
    transition: 
        transform 0.1s ease,
        box-shadow 0.1s ease;
}

/* Hover (optional but nice) */
.buy-button:hover {
    background-color: #29b765;
}

/* Click / Active state */
.buy-button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #27ae60;
}

/* to feel extra snappy on touch devices */

.buy-button {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================================
   TOKEN, BALANCE & PURCHASE SECTIONS
   ============================================================ */
.token-info,
.balance-info,
.referral-section,
.purchase-form,
#purchase-history {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    text-align: center;
}

.token-info p,
.token-preview p {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}

.token-preview {
    background-color: #e8f4fc;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
}

/* Buy button */
.buy-button {
    width: 100%;
    padding: 15px;
    background-color: #27ae60;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.buy-button:hover {
    background-color: #219653;
}

/* ============================================================
   STATUS MESSAGES
   ============================================================ */
#transaction-status,
#status-message {
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
}

.success { background-color: #d4edda; color: #155724; }
.error   { background-color: #f8d7da; color: #721c24; }
.info    { background-color: #cce5ff; color: #004085; }

.notify1 { color: blue; font-size: 10px; }
.notify2 { color: red;  font-size: 10px; }

/* ============================================================
   REFERRAL SECTION
   ============================================================ */
.referral-code {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.referral-code span {
    flex: 1;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.referral-code button {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#copy-referral { background-color: #e9ecef; }
#generate-referral { background-color: #3498db; color: #fff; }

/* ============================================================
   TRANSACTION HISTORY
   ============================================================ */
.transaction-container {
    max-width: 95%;
    margin: 20px auto;
}

.search-bar {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
}

/* Scrollable table wrapper */
.horizontal-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.transaction-history {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fafafa;
    padding: 10px;
}

.transaction-history table {
    width: 100%;
    border-collapse: collapse;
}

.transaction-history th,
.transaction-history td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.transaction-history th {
    background-color: #f2f2f2;
}

/* ============================================================
   TRANSACTION HISTORY TITLE (RESPONSIVE + SCROLLABLE)
   ============================================================ */
#transaction-history-title {
    display: inline-block;
    white-space: nowrap;
    padding: 6px 10px;
    line-height: 1.3;
    font-size: 20px;
}

@media (max-width: 480px) {
    #transaction-history-title { font-size: 16px; }
}

@media (min-width: 481px) and (max-width: 1024px) {
    #transaction-history-title { font-size: 18px; }
}

@media (min-width: 1025px) {
    #transaction-history-title { font-size: 26px; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.hidden {
    display: none;
}

button.disabled-btn {
    background-color: #ccc;
    color: #666;
    border: 1px solid #999;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ============================================================
   DOWNLOAD BUTTON
   ============================================================ */
#downloadCSV {
    display: none;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.25s ease;
}

#downloadCSV:hover {
    transform: translateY(-2px);
}

/* ============================================================
   DOWNLOAD BUTTON
   ============================================================ */
/* Default: hide desktop wallet, show mobile wallet */
#connect-wallet {
    display: none;
}

#mobile-connect-wallet {
    display: inline-block;
}

/* On larger screens (laptop/desktop) */
@media (min-width: 1025px) {
    #connect-wallet {
        display: inline-block; /* show desktop wallet button */
    }

    #mobile-connect-wallet {
        display: none; /* hide mobile wallet button */
    }
}

/*=======================================================
UI updates
=========================================================*/
.hidden {
  display: none !important;
}




















