/* =========================================================
   Marketplace Listings — Frontend CSS
   ========================================================= */

/* Shop layout */
.ml-shop-wrap {
    display: flex;
    gap: 28px;
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 20px;
    align-items: flex-start;
}
.ml-sidebar { width: 210px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 80px; }
.ml-main { flex: 1; min-width: 0; }

/* Filter cards */
.ml-filter-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; overflow: hidden; }
.ml-filter-head { padding: 10px 14px; font-size: 12px; font-weight: 600; color: #1a1a1a; border-bottom: 1px solid #f0f0f0; background: #fafafa; }
.ml-filter-body { padding: 10px 14px; display: flex; flex-direction: column; gap: 3px; }
.ml-cat-list { gap: 2px; }
.ml-cat-item { display: flex; justify-content: space-between; font-size: 13px; color: #555; padding: 5px 6px; border-radius: 6px; text-decoration: none; }
.ml-cat-item:hover { background: #f5f7ff; color: #333; }
.ml-cat-item.active { background: #eef2ff; color: #3b5bdb; font-weight: 500; }
.ml-cat-count { color: #aaa; font-size: 12px; }
.ml-cat-item.active .ml-cat-count { color: #6c7fc9; }
.ml-check-label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #555; cursor: pointer; padding: 2px 0; }
.ml-check-label input { width: 14px; height: 14px; flex-shrink: 0; }
.ml-price-row { display: flex; align-items: center; gap: 6px; }
.ml-price-input { width: 70px !important; }
.ml-price-sep { color: #bbb; font-size: 13px; }
.ml-text-input { width: 100%; padding: 6px 9px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; box-sizing: border-box; }
.ml-text-input:focus { outline: none; border-color: #3b5bdb; }
.ml-apply-btn { width: 100%; padding: 8px; background: #3b5bdb; color: #fff; border: none; border-radius: 7px; font-size: 13px; cursor: pointer; margin-top: 4px; }
.ml-apply-btn:hover { background: #3451c4; }
.ml-clear-btn { display: block; text-align: center; font-size: 12px; color: #888; text-decoration: none; margin-top: 6px; }
.ml-clear-btn:hover { color: #333; }

/* Loop header */
.ml-loop-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.ml-loop-count { font-size: 13px; color: #666; }
.ml-sort-wrap { display: flex; align-items: center; gap: 8px; }
.ml-sort-label { font-size: 12px; color: #999; }
.ml-sort-select { font-size: 13px; padding: 5px 8px; border: 1px solid #ddd; border-radius: 6px; }

/* Product card grid */
.ml-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ml-product-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; display: block; transition: border-color .15s; }
.ml-product-card:hover { border-color: #bbb; }
.ml-card-img { height: 130px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ml-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ml-card-img-placeholder { width: 60px; height: 60px; background: #e8e8e8; border-radius: 8px; }
.ml-card-body { padding: 12px 14px; }
.ml-card-cat { font-size: 11px; color: #999; margin-bottom: 3px; }
.ml-card-title { font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-card-footer { display: flex; align-items: baseline; justify-content: space-between; }
.ml-card-price { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.ml-from { font-size: 11px; color: #999; font-weight: 400; }
.ml-card-count { font-size: 11px; color: #888; }

/* Pagination */
.ml-pagination { margin-top: 24px; display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.ml-pagination .page-numbers { padding: 6px 12px; border-radius: 6px; font-size: 13px; color: #555; text-decoration: none; border: 1px solid #e8e8e8; }
.ml-pagination .page-numbers.current { background: #3b5bdb; color: #fff; border-color: #3b5bdb; }
.ml-pagination .page-numbers:hover:not(.current) { background: #f5f7ff; }
.ml-no-results { padding: 40px 0; text-align: center; color: #666; }

/* =========================================================
   Single product page
   ========================================================= */
.ml-product-wrap { max-width: 1000px; margin: 32px auto; padding: 0 20px; }
.ml-product-hero { display: flex; gap: 24px; align-items: flex-start; background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 24px; margin-bottom: 24px; }
.ml-product-hero-img { width: 110px; flex-shrink: 0; }
.ml-product-hero-img img { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; }
.ml-hero-img-placeholder { width: 110px; height: 110px; background: #f0f0f0; border-radius: 8px; }
.ml-product-hero-info { flex: 1; }
.ml-product-cat { font-size: 11px; color: #999; margin-bottom: 4px; }
.ml-product-title { font-size: 22px; font-weight: 700; color: #1a1a1a; margin: 0 0 10px; }
.ml-product-desc { font-size: 13px; color: #666; line-height: 1.6; }
.ml-product-hero-aside { text-align: right; flex-shrink: 0; }
.ml-hero-from { font-size: 11px; color: #999; }
.ml-hero-price { font-size: 24px; font-weight: 700; color: #1a1a1a; }
.ml-hero-count { font-size: 12px; color: #999; margin-top: 2px; }

/* Listings section */
.ml-listings-section { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; overflow: hidden; }
.ml-listings-filters { padding: 14px 20px; border-bottom: 1px solid #f0f0f0; background: #fafafa; }
.ml-filter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.ml-filter-group { display: flex; flex-direction: column; gap: 4px; }
.ml-filter-label { font-size: 11px; color: #999; }
.ml-filter-select { font-size: 12px; padding: 6px 8px; border: 1px solid #ddd; border-radius: 6px; }
.ml-filter-text { font-size: 12px; padding: 6px 8px; border: 1px solid #ddd; border-radius: 6px; width: 140px; }
.ml-filter-country { flex: 1; }
.ml-filter-sort { }

/* Listing rows */
.ml-listings-list { display: flex; flex-direction: column; }
.ml-listing-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #f5f5f5; gap: 16px; }
.ml-listing-row:last-child { border-bottom: none; }
.ml-listing-top { border: 2px solid #3b5bdb !important; border-radius: 0; }
.ml-listing-seller { display: flex; align-items: flex-start; gap: 12px; flex: 1; }
.ml-seller-avatar { width: 36px; height: 36px; border-radius: 50%; background: #eef2ff; color: #3b5bdb; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ml-seller-info { flex: 1; }
.ml-seller-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.ml-seller-name { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.ml-listing-meta { font-size: 12px; color: #666; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ml-meta-sep { color: #ccc; }
.ml-rating { color: #888; }
.ml-listing-notes { font-size: 12px; color: #888; margin-top: 4px; font-style: italic; }
.ml-listing-action { text-align: right; flex-shrink: 0; }
.ml-listing-price { font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.ml-add-to-cart { display: inline-block; padding: 7px 16px; border: 1px solid #ddd; border-radius: 7px; font-size: 13px; color: #333; text-decoration: none; background: #fff; }
.ml-add-to-cart:hover { background: #f5f7ff; border-color: #3b5bdb; color: #3b5bdb; }
.ml-no-listings { padding: 32px 20px; color: #888; text-align: center; }

/* Badges */
.ml-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 500; }
.ml-badge-receipt { background: #ebfbee; color: #2f9e44; }
.ml-badge-instant { background: #e7f5ff; color: #1971c2; }
.ml-badge-warn    { background: #fff3bf; color: #e67700; }
.ml-badge-success { background: #ebfbee; color: #2f9e44; }
.ml-badge-muted   { background: #f1f3f5; color: #868e96; }

/* =========================================================
   Account dashboard
   ========================================================= */
.ml-account-wrap { display: flex; gap: 28px; max-width: 1100px; margin: 32px auto; padding: 0 20px; align-items: flex-start; }
.ml-account-sidebar { width: 200px; flex-shrink: 0; background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 20px 0; position: sticky; top: 80px; }
.ml-account-user { padding: 0 16px 16px; border-bottom: 1px solid #f0f0f0; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.ml-account-avatar { width: 36px; height: 36px; border-radius: 50%; background: #eef2ff; color: #3b5bdb; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ml-account-username { font-size: 13px; font-weight: 600; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-account-nav { padding: 0 8px; }
.ml-account-nav-group-label { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #bbb; padding: 6px 8px 2px; }
.ml-account-nav-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 7px; font-size: 13px; color: #555; text-decoration: none; }
.ml-account-nav-item:hover { background: #f5f7ff; color: #333; }
.ml-account-nav-item.active { background: #eef2ff; color: #3b5bdb; font-weight: 500; }
.ml-account-nav-logout { color: #c92a2a; margin-top: 8px; }
.ml-nav-badge { background: #e67700; color: #fff; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 10px; }

.ml-account-main { flex: 1; min-width: 0; }
.ml-account-main h2 { font-size: 20px; font-weight: 700; margin: 0 0 20px; color: #1a1a1a; }

/* Stat cards */
.ml-account-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.ml-stat-card { background: #f8f9fa; border-radius: 10px; padding: 16px; }
.ml-stat-card.ml-stat-warn { background: #fff3bf; }
.ml-stat-card.ml-stat-green { background: #ebfbee; }
.ml-stat-label { font-size: 12px; color: #888; margin-bottom: 6px; }
.ml-stat-value { font-size: 22px; font-weight: 700; color: #1a1a1a; }

/* Listings table */
.ml-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ml-listings-table { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; overflow: hidden; }
.ml-table-head { display: grid; grid-template-columns: 1fr 100px 90px 70px 110px; gap: 10px; padding: 10px 16px; background: #fafafa; border-bottom: 1px solid #f0f0f0; font-size: 11px; font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: .04em; }
.ml-table-row { display: grid; grid-template-columns: 1fr 100px 90px 70px 110px; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #f5f5f5; align-items: center; font-size: 13px; }
.ml-table-row:last-child { border-bottom: none; }
.ml-table-title { font-weight: 600; color: #1a1a1a; font-size: 13px; }
.ml-table-sub { font-size: 11px; color: #999; margin-top: 2px; }
.ml-table-actions { display: flex; gap: 6px; }

/* Orders */
.ml-order-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.ml-order-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fafafa; border-bottom: 1px solid #f0f0f0; gap: 8px; }
.ml-order-num { font-weight: 600; font-size: 14px; color: #1a1a1a; margin-right: 8px; }
.ml-order-date { font-size: 12px; color: #999; margin-right: 10px; }
.ml-order-item { font-size: 12px; color: #555; background: #f0f0f0; padding: 2px 8px; border-radius: 4px; margin-left: 4px; }
.ml-order-body { padding: 14px 16px; font-size: 13px; color: #444; }
.ml-order-instant-notice { background: #e7f5ff; color: #1971c2; padding: 8px 12px; border-radius: 6px; font-size: 13px; }
.ml-order-address { line-height: 1.7; }
.ml-order-address-label { font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }

/* Withdrawal form */
.ml-withdrawal-form { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; padding: 20px; }
.ml-withdrawal-form h3 { margin: 0 0 16px; font-size: 15px; font-weight: 600; }
.ml-form { display: flex; flex-direction: column; gap: 12px; }
.ml-form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.ml-form-field { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 4px; }
.ml-form-field label { font-size: 12px; color: #666; }
.ml-form-field textarea { resize: vertical; }
.ml-form-msg { font-size: 13px; color: #c92a2a; margin-left: 10px; }
.ml-notice { padding: 10px 14px; border-radius: 7px; margin-bottom: 16px; font-size: 13px; }
.ml-notice-success { background: #ebfbee; color: #2f9e44; }

/* Key pool modal */
.ml-keys-modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.ml-keys-modal-inner { background: #fff; border-radius: 12px; width: 560px; max-width: 95vw; max-height: 80vh; overflow: hidden; display: flex; flex-direction: column; }
.ml-keys-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #f0f0f0; }
.ml-keys-modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: #888; }
.ml-keys-modal-body { flex: 1; overflow-y: auto; padding: 12px 18px; display: flex; flex-direction: column; gap: 6px; }
.ml-key-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: #f8f9fa; border-radius: 6px; font-family: monospace; font-size: 12px; }
.ml-key-value { flex: 1; }
.ml-key-status-available { color: #2f9e44; font-size: 11px; }
.ml-key-status-sent { color: #868e96; font-size: 11px; }
.ml-key-remove { font-size: 11px; padding: 2px 8px; border: 1px solid #ffc9c9; background: #fff5f5; color: #c92a2a; border-radius: 4px; cursor: pointer; }
.ml-keys-add { padding: 12px 18px; border-top: 1px solid #f0f0f0; display: flex; gap: 8px; }
.ml-keys-add textarea { flex: 1; padding: 8px; border: 1px solid #ddd; border-radius: 6px; font-family: monospace; font-size: 12px; resize: none; }
.ml-keys-modal-foot { padding: 10px 18px; border-top: 1px solid #f0f0f0; font-size: 12px; color: #888; }

/* Buttons */
.ml-btn-primary { display: inline-block; padding: 8px 18px; background: #3b5bdb; color: #fff; border: none; border-radius: 7px; font-size: 13px; cursor: pointer; text-decoration: none; font-weight: 500; }
.ml-btn-primary:hover { background: #3451c4; color: #fff; }
.ml-btn-outline { display: inline-block; padding: 7px 16px; border: 1px solid #ddd; border-radius: 7px; font-size: 13px; color: #555; text-decoration: none; }
.ml-btn-outline:hover { background: #f5f7ff; border-color: #3b5bdb; color: #3b5bdb; }
.ml-btn-sm { padding: 4px 10px; border: 1px solid #ddd; border-radius: 5px; font-size: 12px; background: #fff; color: #555; cursor: pointer; text-decoration: none; }
.ml-btn-sm:hover { background: #f5f7ff; }

/* Responsive */
@media (max-width: 768px) {
    .ml-shop-wrap { flex-direction: column; }
    .ml-sidebar { width: 100%; position: static; }
    .ml-grid { grid-template-columns: repeat(2, 1fr); }
    .ml-account-wrap { flex-direction: column; }
    .ml-account-sidebar { width: 100%; position: static; }
    .ml-account-stats { grid-template-columns: repeat(2, 1fr); }
    .ml-product-hero { flex-direction: column; }
    .ml-table-head, .ml-table-row { grid-template-columns: 1fr auto; }
    .ml-table-head span:not(:first-child):not(:last-child), .ml-table-row > div:not(:first-child):not(:last-child) { display: none; }
}
@media (max-width: 480px) {
    .ml-grid { grid-template-columns: 1fr; }
    .ml-account-stats { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Account -- custom my-account layout
   ========================================================= */
.ml-account-wrap {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    align-items: flex-start;
    min-height: 60vh;
}
.ml-account-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #eee;
    padding: 24px 0;
    min-height: 60vh;
    position: sticky;
    top: 80px;
}
.ml-account-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
}
.ml-account-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef2ff;
    color: #3b5bdb;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ml-account-username { font-size: 14px; font-weight: 600; color: #1a1a1a; line-height: 1.3; }
.ml-account-email { font-size: 12px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.ml-account-nav-section-label { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: #bbb; padding: 8px 20px 4px; }
.ml-account-nav-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 20px; font-size: 13px; color: #555; text-decoration: none; border-left: 2px solid transparent; }
.ml-account-nav-item:hover { background: #f8f9ff; color: #3b5bdb; }
.ml-account-nav-item.active { background: #f0f4ff; color: #3b5bdb; border-left-color: #3b5bdb; font-weight: 500; }
.ml-account-nav-logout { color: #c92a2a; margin-top: 12px; }
.ml-account-nav-logout:hover { background: #fff5f5; color: #c92a2a; }
.ml-nav-badge { background: #e67700; color: #fff; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 10px; }
.ml-account-main { flex: 1; min-width: 0; padding: 0 0 0 36px; }

.ml-seller-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.ml-seller-header h2 { font-size: 20px; font-weight: 700; color: #1a1a1a; margin: 0; }

.ml-account-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.ml-stat-card { background: #f8f9fa; border-radius: 10px; padding: 16px; }
.ml-stat-card.ml-stat-warn  { background: #fff8e1; }
.ml-stat-card.ml-stat-green { background: #f0faf2; }
.ml-stat-label { font-size: 12px; color: #888; margin-bottom: 6px; }
.ml-stat-value { font-size: 22px; font-weight: 700; color: #1a1a1a; }

.ml-notice { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; line-height: 1.5; }
.ml-notice-success { background: #ebfbee; color: #2f9e44; }
.ml-notice-warn    { background: #fff8e1; color: #a16207; }
.ml-notice-error   { background: #fff5f5; color: #c92a2a; }

.ml-listings-table { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; overflow: hidden; }
.ml-table-head { display: grid; grid-template-columns: 1fr 110px 100px 170px; gap: 10px; padding: 10px 16px; background: #fafafa; border-bottom: 1px solid #f0f0f0; font-size: 11px; font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: .04em; }
.ml-table-row { display: grid; grid-template-columns: 1fr 110px 100px 170px; gap: 10px; padding: 13px 16px; border-bottom: 1px solid #f5f5f5; align-items: center; font-size: 13px; }
.ml-table-row:last-child { border-bottom: none; }
.ml-table-title { font-weight: 600; color: #1a1a1a; font-size: 13px; margin-bottom: 2px; }
.ml-table-sub { font-size: 11px; color: #999; }
.ml-table-price { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.ml-table-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.ml-empty-state { text-align: center; padding: 60px 20px; color: #888; }
.ml-empty-state p { margin-bottom: 16px; }

/* Listing form */
.ml-listing-form { max-width: 700px; }
.ml-form-section { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; padding: 20px 24px; margin-bottom: 16px; }
.ml-form-section-title { font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
.ml-form-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ml-form-field { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.ml-form-field label { font-size: 12px; color: #555; font-weight: 500; }
.ml-field-hint { font-size: 11px; color: #aaa; margin: 2px 0 0; }
.ml-select { padding: 8px 10px; border: 1px solid #ddd; border-radius: 7px; font-size: 13px; width: 100%; background: #fff; }
.ml-select:focus { outline: none; border-color: #3b5bdb; }
.ml-check-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #333; cursor: pointer; font-weight: 400 !important; }
.ml-form-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; flex-wrap: wrap; }

/* Master search dropdown */
.ml-master-search-wrap { position: relative; }
.ml-master-results { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #ddd; border-top: none; border-radius: 0 0 8px 8px; max-height: 220px; overflow-y: auto; z-index: 100; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.ml-master-result { padding: 9px 12px; font-size: 13px; cursor: pointer; border-bottom: 1px solid #f5f5f5; color: #333; }
.ml-master-result:hover { background: #f0f4ff; color: #3b5bdb; }
.ml-master-result--none { color: #999; cursor: default; font-style: italic; }

/* Orders */
.ml-order-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.ml-order-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fafafa; border-bottom: 1px solid #f0f0f0; gap: 8px; flex-wrap: wrap; }
.ml-order-num { font-weight: 600; font-size: 14px; color: #1a1a1a; margin-right: 8px; }
.ml-order-date { font-size: 12px; color: #999; margin-right: 8px; }
.ml-order-item { font-size: 12px; color: #555; background: #f0f0f0; padding: 2px 8px; border-radius: 4px; margin-left: 4px; }
.ml-order-body { padding: 14px 16px; font-size: 13px; color: #444; }
.ml-order-instant-notice { background: #e7f5ff; color: #1971c2; padding: 8px 12px; border-radius: 6px; font-size: 13px; }
.ml-order-address { line-height: 1.7; }
.ml-order-address-label { font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }

/* Withdrawal form */
.ml-withdrawal-form { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; padding: 24px; }
.ml-withdrawal-form h3 { margin: 0 0 18px; font-size: 15px; font-weight: 600; }
.ml-form { display: flex; flex-direction: column; gap: 14px; }
.ml-form-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* Danger button */
.ml-btn-danger { border-color: #ffc9c9 !important; background: #fff5f5 !important; color: #c92a2a !important; }
.ml-btn-danger:hover { background: #ffe3e3 !important; }

/* Responsive account */
@media (max-width: 768px) {
    .ml-account-wrap { flex-direction: column; padding: 20px 16px; }
    .ml-account-sidebar { width: 100%; position: static; border-right: none; border-bottom: 1px solid #eee; padding: 16px 0; min-height: auto; }
    .ml-account-main { padding: 20px 0 0; }
    .ml-account-stats { grid-template-columns: repeat(2, 1fr); }
    .ml-table-head, .ml-table-row { grid-template-columns: 1fr auto; }
    .ml-table-head span:nth-child(2), .ml-table-head span:nth-child(3),
    .ml-table-row > div:nth-child(2), .ml-table-row > div:nth-child(3) { display: none; }
}
