/* account-info.css - layout sidebar + content */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: #f4f7fb;
  color: #2b3440;
}

.dashboard-container {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg,#1f2a44 0%, #172033 100%);
  color: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.sidebar-header h2 {
  margin: 0 0 10px 0;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.menu {
  flex: 1;
  overflow-y: auto;
}

.menu ul { list-style: none; padding: 0; margin: 0; }

.menu-item {
  margin-bottom: 8px;
}

.menu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  color: #e6eef9;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.menu-toggle:hover {
  background: rgba(255,255,255,0.04);
}

.submenu {
  display: none;
  margin-top: 6px;
  padding-left: 8px;
}

.submenu li {
  margin-bottom: 6px;
}

.submenu li a {
  display: block;
  padding: 8px 10px;
  color: #cfdff6;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
}

.submenu li a:hover {
  background: rgba(255,255,255,0.03);
  color: #ffffff;
}

.menu-item.open > .menu-toggle {
  background: rgba(255,255,255,0.03);
}

/* active link */
.submenu li a.active {
  background: #2d4370;
  color: #fff;
}

/* logout */
.logout-section {
  margin-top: 18px;
  text-align: center;
}
#logoutBtn {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #e35b5b;
  color: #fff;
  cursor: pointer;
}
#logoutBtn:hover { opacity: 0.95; }

/* CONTENT */
.content {
  flex: 1;
  background: #fff;
  padding: 28px 36px;
  min-height: 100vh;
}

.content-header h1 {
  margin: 0 0 14px 0;
  font-size: 22px;
  color: #152033;
}

.page-content .muted {
  color: #6b7280;
}

/* info card */
.info-card {
  background: #f8fbff;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(20,35,60,0.04);
}

.info-card .row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.04);
}
.info-card .row:last-child { border-bottom: none; }
.info-card .label { color: #4b5563; font-weight: 600; }
.info-card .value { color: #111827; }


.avatar-box {
  text-align: center;
  margin-bottom: 15px;
}

.avatar-box .avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
  box-shadow: 0 0 4px rgba(0,0,0,0.15);
}


/* tx table */
.tx-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.tx-table th, .tx-table td {
  padding: 10px;
  border-bottom: 1px solid #e6eef7;
  text-align: left;
}
.tx-table th { background: #fbfdff; font-weight: 700; color: #334155; }

/* Responsive */
@media (max-width: 900px) {
  .sidebar { width: 200px; }
  .content { padding: 20px; }
}
@media (max-width: 600px) {
  .dashboard-container { flex-direction: column; }
  .sidebar { width: 100%; display: block; }
}

/* =====================================================
   🎨 PLM FOOTER DESIGN
===================================================== */
.plm-footer {
    background: #ffffff; /* Hoặc dùng gradient: linear-gradient(to right, #ffffff, #f8fafc) */
    padding: 30px 0;
    border-top: 1px solid #edf2f7;
    margin-top: 50px;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-text {
    margin: 0;
    color: #718096; /* Màu xám hiện đại */
    font-size: 0.9rem;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.footer-text strong {
    color: #2d3748; /* Màu chữ nhấn mạnh đậm hơn */
    font-weight: 600;
}

/* Hiệu ứng khi di chuột qua footer */
.plm-footer:hover .footer-text {
    color: #4a5568;
    transition: color 0.3s ease;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .footer-text {
        font-size: 0.8rem;
    }
}

/* cửa hàng số 4 */
/* ========================= */
/*  STORE 4 UNIQUE STYLES    */
/*  Prefix: .store4-         */
/* ========================= */

.store4-container {
    padding: 20px;
    animation: fadeInStore4 0.25s ease;
}

@keyframes fadeInStore4 {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card */
.store4-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border: 1px solid #ececec;
}

/* Title */
.store4-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #4b3aff;
}

.store4-subtitle {
    font-size: 14px;
    margin-bottom: 16px;
    color: #666;
}

/* Table Wrapper */
.store4-table-wrapper {
    overflow-x: auto;
    margin-top: 10px;
}

/* Table */
.store4-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
    background: #fff;
}

.store4-table th {
    background: #4b3aff;
    color: #fff;
    padding: 10px;
    text-align: left;
    font-weight: 600;
}

.store4-table td {
    padding: 10px;
    border-bottom: 1px solid #efefef;
}

.store4-table tr:hover {
    background: #f7f7ff;
    transition: 0.15s ease;
}

/* Center text */
.store4-center {
    text-align: center;
}

/* Status badges */
.store4-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.store4-badge.pending { background: #ff9f1c; }
.store4-badge.success { background: #2ecc71; }
.store4-badge.canceled { background: #e74c3c; }

.store4-badge {
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 600;
        display: inline-block;
        color: #fff;
    }

    /* Waiting */
    .store4-badge.waiting-for-confirmation {
        background-color: #f1c40f; /* vàng */
        color: #000;
    }

    /* Processing */
    .store4-badge.processing-service {
        background-color: #3498db; /* xanh dương */
    }

    /* Complete */
    .store4-badge.complete-service {
        background-color: #2ecc71; /* xanh lá */
    }

    /* Cancelled */
    .store4-badge.service-unavailable-or-cancelled {
        background-color: #e74c3c; /* đỏ */
    }

    /* Nếu không khớp status */
    .store4-badge.unknown {
        background-color: #7f8c8d; /* xám */
    }

    /* cửa hàng store số 4 cày thuê */


    /* Unique CSS for Farming History to avoid conflicts */
.farming-history-container { padding: 10px; }
.farming-history-card { background: #1c1c21; border-radius: 12px; border: 1px solid #333; overflow: hidden; }
.farming-history-info { padding: 20px; border-bottom: 1px solid #333; }
.farming-history-title { color: #ff4757; margin: 0; font-size: 1.2rem; text-transform: uppercase; }
.farming-history-subtitle { color: #888; font-size: 14px; margin-top: 5px; }

.farming-table-wrapper { overflow-x: auto; }
.farming-history-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.farming-history-table th { background: #25252b; color: #aaa; text-align: left; padding: 15px; font-size: 13px; text-transform: uppercase; }
.farming-history-table td { padding: 15px; border-bottom: 1px solid #2a2a32; color: #fff; font-size: 14px; }
.farming-history-table tr:hover { background: #25252b; }

.farming-history-center { text-align: center; padding: 40px !important; color: #666; }
.farming-id { color: #ff4757; font-weight: bold; }
.farming-service-name { color: #fff; font-weight: 500; }
.farming-user-info { color: #bbb; font-style: italic; }
.farming-price-text { color: #2ecc71; }
.farming-date-text { color: #666; font-size: 12px; }

/* Status Badges */
.farming-status-badge { padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: bold; display: inline-block; }
.farming-badge-success { background: rgba(46, 204, 113, 0.15); color: #2ecc71; border: 1px solid #2ecc71; }
.farming-badge-info { background: rgba(52, 152, 219, 0.15); color: #3498db; border: 1px solid #3498db; }
.farming-badge-warning { background: rgba(241, 194, 27, 0.15); color: #f1c40f; border: 1px solid #f1c40f; }
.farming-badge-danger { background: rgba(231, 76, 60, 0.15); color: #e74c3c; border: 1px solid #e74c3c; }





/* xác minh 2 bước 2fa */
.security-section .btn {
  background: #007bff;
  color: #fff;
  transition: background 0.2s;
}
.security-section .btn:hover {
  background: #0056b3;
}
.security-section .status-box {
  font-weight: 500;
  margin-bottom: 10px;
}

/* wallet css */

/* wallet-css.css - support both .wallet-* and .amag-* selectors */

/* variables */
:root{
  --primary:#4f46e5;
  --primary-600:#4338ca;
  --success:#16a34a;
  --warning:#f59e0b;
  --danger:#ef4444;
  --bg:#f8fafc;
  --card-bg:#ffffff;
  --text:#0f172a;
  --sub:#64748b;
  --border:#e6edf3;
  --radius:12px;
}

/* generic card */
.wallet-card, .amag-card.amag-wallet-card {
  text-align: center;
  padding: 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(2,6,23,0.06);
  border: 1px solid var(--border);
}

/* header */
.wallet-header, .amag-wallet-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wallet-icon, .amag-wallet-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(79,70,229,0.08), rgba(99,102,241,0.04));
  display:flex; align-items:center; justify-content:center;
}
.wallet-icon img, .amag-wallet-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* balance */
.wallet-balance, .amag-balance-number {
  margin-top: 15px;
  font-size: 20px;
  font-weight: bold;
  color: var(--success);
}
.wallet-note, .amag-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--sub);
}

/* action */
.wallet-action, .amag-form-row .amag-help {
  margin-top: 15px;
  font-size: 15px;
}
.wallet-action a.topup-link {
  color: #007bff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.wallet-action a.topup-link:hover { color: #0056b3; text-decoration: underline; }

/* buttons */
.amag-btn, .wallet-action .topup-btn {
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:10px; border:none; cursor:pointer;
  font-weight:700; background:linear-gradient(135deg,var(--primary),var(--primary-600)); color:#fff;
}
.amag-btn-ghost, .wallet-action .topup-btn.secondary {
  background:transparent; border:1px solid var(--border); color:var(--text);
}

/* form */
.amag-form, .wallet-form {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 14px;
  border:1px solid var(--border);
}
.amag-form-row { margin-bottom: 12px; }
.amag-form-label { display:block; font-size:0.9rem; color:var(--sub); margin-bottom:6px; }
.amag-input, .amag-select {
  width:100%; padding:10px 12px; border-radius:8px; border:1px solid var(--border); font-size:0.95rem;
}

/* vietqr */
.vietqr, .amag-vietqr {
  margin-top:12px; padding:12px; border-radius:10px; background:#fbfdff; text-align:center; border:1px dashed #e6eefb;
}
.vietqr img, .amag-vietqr img { max-width:260px; border-radius:8px; display:block; margin:6px auto; }
.vietqr code, .amag-vietqr code { background:#eef2ff; padding:6px 8px; border-radius:6px; color:var(--primary-600); font-weight:700; }

/* result */
.amag-result { text-align:center; padding:18px; border-radius:14px; background:linear-gradient(180deg,#fff,#f8fbff); border:1px solid var(--border); box-shadow:0 10px 30px rgba(2,6,23,0.06); }
.amag-result-strong { font-weight:800; color:var(--primary); }

/* small responsive tweaks */
@media (max-width:480px) {
  .wallet-header, .amag-wallet-header { flex-direction: column; }
  .wallet-balance, .amag-balance-number { font-size:18px; }
}





/* settings tài khoản css */
.settings-section {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}
.setting-group {
  margin-bottom: 15px;
}
.setting-group label {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}
.setting-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 5px;
}
.setting-group .btn {
  background: #4CAF50;
  color: #fff;
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.setting-group .btn:hover {
  background: #43a047;
}
.avatar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}
.suggested-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  object-fit: cover;
  transition: transform 0.2s, box-shadow 0.2s;
}
.suggested-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}


/* 🎨 Tùy chỉnh nút SweetAlert2 cho custom avatar */
.swal2-confirm-btn {
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: #fff !important;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  transition: all 0.2s ease-in-out;
}
.swal2-confirm-btn:hover {
  background: linear-gradient(135deg, #00cec9, #00b894);
  transform: scale(1.05);
}

.swal2-cancel-btn {
  background: linear-gradient(135deg, #d63031, #ff7675);
  color: #fff !important;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  transition: all 0.2s ease-in-out;
}
.swal2-cancel-btn:hover {
  background: linear-gradient(135deg, #ff7675, #d63031);
  transform: scale(1.05);
}


.setting-group input[type="password"] {
  display: block;
  margin-bottom: 5px;
}
.btn-danger {
  background: #e74c3c;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}
.btn-danger:hover {
  background: #c0392b;
}

/* coins history css */
/* Container & Card */
.coin-history-container { padding: 10px; }
.coin-history-card { 
    background: #fff; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    overflow: hidden;
}
.coin-history-header { padding: 20px; border-bottom: 1px solid #eee; }
.coin-history-title { color: #333; margin: 0; font-size: 1.2rem; }
.coin-history-subtitle { color: #888; font-size: 0.85rem; margin-top: 5px; }

/* Table Styling */
.coin-history-table-wrapper { overflow-x: auto; }
.coin-history-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.coin-history-table th { background: #f8f9fa; color: #555; padding: 12px; text-align: left; font-size: 0.9rem; }
.coin-history-table td { padding: 12px; border-bottom: 1px solid #f0f0f0; font-size: 0.9rem; vertical-align: middle; }

/* Status Labels */
.coin-status { 
    padding: 5px 12px; 
    border-radius: 20px; 
    font-size: 0.75rem; 
    font-weight: bold; 
    display: inline-block;
}
.status-success { background: #e6fcf5; color: #0ca678; border: 1px solid #c3fae8; } /* hoantat */
.status-pending { background: #fff9db; color: #f08c00; border: 1px solid #fff3bf; } /* xuly */
.status-error   { background: #fff5f5; color: #f03e3e; border: 1px solid #ffe3e3; } /* theloi */

.coin-code { font-family: monospace; color: #666; background: #f1f3f5; padding: 2px 5px; border-radius: 4px; }
.coin-received { color: #2f9e44; font-weight: bold; }
.coin-history-center { text-align: center; padding: 30px !important; color: #999; }

/* rút kim cương */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

.farming-history-container {
    font-family: 'Montserrat', sans-serif;
    color: #f8fafc;
    -webkit-font-smoothing: antialiased; /* Làm nét phông chữ */
}

/* Card & Header */
.farming-history-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.farming-history-info {
    padding: 20px 25px;
    background: #24344d;
    border-bottom: 1px solid #334155;
}

.farming-history-title {
    color: #f1c40f;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin: 0;
}

/* Balance Box */
.balance-display-box {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.1) 0%, transparent 100%);
    border: 1px dashed #f1c40f;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 25px;
}

.balance-display-box h2 {
    color: #f1c40f;
    font-size: 2.2rem;
    font-weight: 900;
    margin: 5px 0 0 0;
}

/* Form & Input */
.withdraw-form-wrapper { padding: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; color: #94a3b8; }

.shop-input {
    width: 100%;
    padding: 12px 16px;
    background: #0f172a !important;
    border: 2px solid #334155 !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
    transition: 0.3s;
}

.shop-input:focus { border-color: #f1c40f !important; outline: none; box-shadow: 0 0 10px rgba(241, 196, 15, 0.2); }

.shop-btn-primary {
    background: linear-gradient(135deg, #f1c40f 0%, #d4af37 100%);
    color: #1a1c20;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 0 #b5950a;
    transition: 0.2s;
}

.shop-btn-primary:active { transform: translateY(2px); box-shadow: none; }

/* Table & Badges */
.farming-history-table { width: 100%; border-collapse: collapse; }
.farming-history-table th { background: #0f172a; padding: 15px; text-align: left; font-size: 0.7rem; color: #94a3b8; text-transform: uppercase; }
.farming-history-table td { padding: 15px; border-top: 1px solid #334155; font-size: 0.85rem; }

.text-gold { color: #f1c40f; font-weight: 700; }
.shop-badge { padding: 5px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.badge-success { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.badge-pending { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; }

/* Pagination */
.pagination-container { display: flex; justify-content: center; align-items: center; padding: 20px; gap: 15px; border-top: 1px solid #334155; }
.pag-btn { background: #334155; color: #fff; border: 1px solid #475569; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 0.8rem; }
.pag-btn:hover:not(:disabled) { background: #f1c40f; color: #1a1c20; }
.pag-btn:disabled { opacity: 0.3; }

/* chat support */
#chat-container { position: fixed; bottom: 20px; right: 20px; z-index: 99999; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
    
    #chat-button { 
        background: #007bff; color: white; border: none; padding: 12px 22px; 
        border-radius: 50px; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        display: flex; align-items: center; gap: 8px; transition: 0.3s;
    }

    #chat-box { 
        position: absolute; bottom: 70px; right: 0; width: 320px; 
        background: white; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.2);
        display: flex; flex-direction: column; overflow: hidden; transition: 0.3s;
    }

    .chat-hidden { opacity: 0; visibility: hidden; transform: translateY(20px); }

    .chat-header { 
        background: #007bff; color: white; padding: 15px; 
        display: flex; justify-content: space-between; align-items: center; 
    }

    .status-dot { width: 8px; height: 8px; background: #28a745; border-radius: 50%; margin-right: 8px; border: 1px solid white; }

    .chat-body { height: 350px; padding: 15px; overflow-y: auto; background: #f9f9f9; display: flex; flex-direction: column; }

    .chat-footer { padding: 10px; display: flex; gap: 5px; border-top: 1px solid #eee; background: white; }

    #chat-input { flex: 1; border: 1px solid #ddd; border-radius: 20px; padding: 8px 15px; outline: none; font-size: 14px; }

    #send-btn { background: none; border: none; font-size: 18px; cursor: pointer; transition: 0.2s; }
    #send-btn:hover { transform: scale(1.2); }

    .close-chat { cursor: pointer; font-size: 20px; opacity: 0.8; }
    .close-chat:hover { opacity: 1; }



