/* =========================================================
   OXILOGHUB — My Account dashboard branding
   Applies to Dashboard, Orders, My Accounts, Wallet, Addresses, etc.
   ========================================================= */

:root {
    --oxi-navy: #14304d;
    --oxi-navy-light: #24507a;
    --oxi-gold: #d4a24e;
    --oxi-gold-dark: #b8863a;
    --oxi-teal: #2f7fa8;
    --oxi-bg-soft: #eaf3fb;
    --oxi-bg-card: #ffffff;
    --oxi-border: #dce8f2;
    --oxi-text-muted: #5b7086;
}

.woocommerce-account {
    background: var(--oxi-bg-soft);
    padding: 32px 0 60px;
}

.woocommerce-account .entry-content,
.woocommerce-account .ast-container {
    max-width: 1100px;
}

.woocommerce-account h1,
.woocommerce-account .entry-title {
    font-family: Georgia, serif;
    color: var(--oxi-navy);
    font-size: 30px;
    margin-bottom: 24px;
}

/* ---------- Layout: sidebar + content as two cards ---------- */
.woocommerce-MyAccount-navigation {
    background: var(--oxi-navy);
    border-radius: 16px;
    padding: 10px;
    float: left;
    width: 240px;
    box-sizing: border-box;
    margin-right: 24px;
}

.woocommerce-MyAccount-content {
    background: var(--oxi-bg-card);
    border-radius: 16px;
    padding: 28px 30px;
    box-shadow: 0 2px 14px rgba(20, 48, 77, 0.06);
    overflow: hidden;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .woocommerce-MyAccount-navigation { }
    .woocommerce-MyAccount-content { margin-left: 264px; }
}
@media (max-width: 767px) {
    .woocommerce-MyAccount-navigation { float: none; width: 100%; margin: 0 0 20px; }
    .woocommerce-MyAccount-content { margin-left: 0; }
}

/* ---------- Nav links ---------- */
/* Sidebar nav is hidden — account navigation now lives in the header
   dropdown (see the [oxi_account_menu] shortcode) so the content area
   gets full width. */
.woocommerce-MyAccount-navigation { display: none !important; }

@media (min-width: 768px) {
    .woocommerce-MyAccount-content { margin-left: 0; }
}
@media (max-width: 767px) {
    .woocommerce-MyAccount-content { margin-left: 0; }
}

/* ---------- Default dashboard welcome text ---------- */
.woocommerce-MyAccount-content > p {
    color: var(--oxi-text-muted);
    font-size: 14.5px;
    line-height: 1.7;
}
.woocommerce-MyAccount-content mark {
    background: none;
    color: var(--oxi-navy);
    font-weight: 700;
}

/* ---------- Orders table (default WooCommerce) ---------- */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.woocommerce-orders-table th {
    text-align: left;
    background: var(--oxi-bg-soft);
    color: var(--oxi-navy);
    padding: 12px 14px;
    font-weight: 700;
}
.woocommerce-orders-table td {
    padding: 12px 14px;
    border-top: 1px solid var(--oxi-border);
}
.woocommerce-orders-table .woocommerce-button {
    background: var(--oxi-teal);
    color: #fff;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
}
.woocommerce-orders-table .woocommerce-button.view {
    background: transparent;
    border: 1.5px solid var(--oxi-navy);
    color: var(--oxi-navy);
}

/* ---------- Addresses / account details forms ---------- */
.woocommerce-Address h2,
.woocommerce-account .form-row label {
    color: var(--oxi-navy);
}
.woocommerce-account input.input-text,
.woocommerce-account select,
.woocommerce-account textarea {
    border: 1.5px solid var(--oxi-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
}
.woocommerce-account input.input-text:focus,
.woocommerce-account select:focus {
    border-color: var(--oxi-teal);
    outline: none;
}
.woocommerce-account button.woocommerce-Button,
.woocommerce-account input.woocommerce-Button {
    background: var(--oxi-gold);
    color: var(--oxi-navy);
    border: none;
    border-radius: 8px;
    padding: 12px 22px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}
.woocommerce-account button.woocommerce-Button:hover {
    background: var(--oxi-gold-dark);
}

/* =========================================================
   My Accounts tab (custom — purchased credentials)
   ========================================================= */
.oxi-accounts-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--oxi-text-muted);
    border: 1.5px dashed var(--oxi-border);
    border-radius: 14px;
}
.oxi-accounts-empty a { color: var(--oxi-teal); font-weight: 600; }

.oxi-accounts-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.oxi-accounts-table thead th {
    text-align: left;
    background: var(--oxi-navy);
    color: #fff;
    padding: 12px 14px;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.oxi-accounts-table thead th:first-child { border-radius: 10px 0 0 0; }
.oxi-accounts-table thead th:last-child { border-radius: 0 10px 0 0; }
.oxi-accounts-table td {
    padding: 14px;
    border-bottom: 1px solid var(--oxi-border);
    vertical-align: middle;
}
.oxi-accounts-table tr:last-child td { border-bottom: none; }

.oxi-cred-chip {
    font-family: 'Courier New', monospace;
    background: var(--oxi-bg-soft);
    color: var(--oxi-navy);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
}
.oxi-reveal-btn {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--oxi-teal);
    cursor: pointer;
    text-decoration: underline;
}

/* =========================================================
   Wallet tab (custom)
   ========================================================= */
.oxi-wallet-card {
    background: linear-gradient(135deg, var(--oxi-navy) 0%, var(--oxi-navy-light) 100%);
    border-radius: 16px;
    padding: 26px 28px;
    color: #fff;
    margin-bottom: 28px;
}
.oxi-wallet-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #a9c2da;
    margin-bottom: 6px;
}
.oxi-wallet-balance {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 20px;
}
.oxi-wallet-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.oxi-wallet-form input[type="number"] {
    flex: 1;
    min-width: 160px;
    padding: 12px 14px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
}
.oxi-fund-btn {
    background: var(--oxi-gold);
    color: var(--oxi-navy);
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}
.oxi-fund-btn:hover { background: var(--oxi-gold-dark); }
.oxi-fund-msg { margin-top: 12px; font-size: 13px; color: #cfe0f0; }

.oxi-wallet-history h3 {
    color: var(--oxi-navy);
    font-family: Georgia, serif;
    font-size: 19px;
    margin-bottom: 14px;
}
.oxi-hist-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.oxi-hist-table thead th {
    text-align: left;
    padding: 10px 12px;
    background: var(--oxi-bg-soft);
    color: var(--oxi-navy);
    font-weight: 700;
}
.oxi-hist-table td { padding: 10px 12px; border-top: 1px solid var(--oxi-border); }
.oxi-status-pending { color: #b8862f; font-weight: 700; }
.oxi-status-success { color: #1a7f4f; font-weight: 700; }
.oxi-status-failed { color: #c0392b; font-weight: 700; }
.oxi-wallet-note { font-size: 12.5px; color: var(--oxi-text-muted); margin-top: 14px; }

/* ---------- New wallet hero card (matches reference design) ---------- */
.oxi-wallet-hero {
    background: linear-gradient(135deg, #1e9be0 0%, #0f6fae 100%);
    border-radius: 20px;
    padding: 26px 24px;
    color: #fff;
    margin-bottom: 22px;
}
.oxi-wallet-hero-label { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.oxi-wallet-hero-balance { font-size: 34px; font-weight: 800; margin-bottom: 20px; }
.oxi-wallet-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.oxi-wallet-hero-btn {
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}
.oxi-wallet-hero-btn.is-solid { background: #fff; color: #0f6fae; }
.oxi-wallet-hero-btn.is-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.oxi-wallet-fund-row { margin-top: 14px; }
.oxi-wallet-fund-row input[type="number"] {
    width: 100%;
    max-width: 280px;
    padding: 12px 14px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    box-sizing: border-box;
}

/* Wrap tables in a scroll container on mobile so nothing gets cut off */
@media (max-width: 700px) {
    .oxi-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
    .oxi-accounts-table, .oxi-hist-table, .woocommerce-orders-table { min-width: 560px; }
    .oxi-wallet-balance { font-size: 30px; }
    .oxi-wallet-card { padding: 20px; }
    .woocommerce-MyAccount-content { padding: 18px 16px; border-radius: 12px; }
}

/* =========================================================
   Header account dropdown (replaces sidebar nav)
   Drop the [oxi_account_menu] shortcode into your header,
   next to the account icon.
   ========================================================= */
.oxi-header-account { position: relative; display: inline-block; }
.oxi-header-account-toggle {
    cursor: pointer;
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.oxi-header-account-panel {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    background: var(--oxi-navy);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(20,48,77,0.25);
    z-index: 999;
}
.oxi-header-account-panel.is-open { display: block; }
.oxi-header-account-panel a {
    display: block;
    color: #cfe0f0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 8px;
}
.oxi-header-account-panel a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.oxi-header-account-panel a.is-active { background: var(--oxi-gold); color: var(--oxi-navy); font-weight: 700; }
.oxi-header-account-panel hr { border: none; border-top: 1px solid rgba(255,255,255,0.12); margin: 6px 0; }

/* =========================================================
   Dashboard overview stat cards
   ========================================================= */
.oxi-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}
@media (max-width: 700px) {
    .oxi-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
.oxi-stat-card {
    background: var(--oxi-bg-soft);
    border-radius: 14px;
    padding: 18px;
}
.oxi-stat-card.is-navy { background: linear-gradient(135deg, var(--oxi-navy) 0%, var(--oxi-navy-light) 100%); }
.oxi-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--oxi-text-muted);
    margin-bottom: 8px;
}
.oxi-stat-card.is-navy .oxi-stat-label { color: #a9c2da; }
.oxi-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--oxi-navy);
}
.oxi-stat-card.is-navy .oxi-stat-value { color: #fff; }
.oxi-stat-sub {
    font-size: 12px;
    color: var(--oxi-text-muted);
    margin-top: 4px;
}
.oxi-stat-card.is-navy .oxi-stat-sub { color: #a9c2da; }

.oxi-recent-section h3 {
    font-family: Georgia, serif;
    color: var(--oxi-navy);
    font-size: 18px;
    margin-bottom: 12px;
}
.oxi-quicklinks {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.oxi-quicklink {
    background: #fff;
    border: 1.5px solid var(--oxi-border);
    color: var(--oxi-navy);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
}
.oxi-quicklink:hover { border-color: var(--oxi-teal); color: var(--oxi-teal); }
