/* ======================================================
   24Ounce UI Design System
   Gold & Black – RTL – FINAL CLEAN
   ====================================================== */

/* ================= Font ================= */

@font-face {
    font-family: "Cairo";
    src: url("../fonts/cairo/Cairo-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Cairo";
    src: url("../fonts/cairo/Cairo-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "Cairo";
    src: url("../fonts/cairo/Cairo-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

/* ================= Variables ================= */

:root {
    --gold: #d4af37;
    --gold-dark: #b8962e;
    --black: #0f0f0f;
    --gray-border: #e5e5e5;
    --white: #ffffff;

    --radius-sm: 4px;
    --radius-md: 6px;
    --shadow-soft: 0 2px 8px rgba(0,0,0,.08);

    --font-base: "Cairo", sans-serif;
}

/* ================= Base ================= */

.twentyfourounce-ui {
    font-family: var(--font-base);
    direction: rtl;
    text-align: right;
    color: #111;
}

.twentyfourounce-ui * {
    box-sizing: border-box;
}

/* Numbers stay LTR */
.twentyfourounce-ui input,
.twentyfourounce-ui textarea,
.twentyfourounce-ui select {
    direction: ltr;
    text-align: right;
    font-family: var(--font-base);
}

/* ================= Headings ================= */

.twentyfourounce-ui h2 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
}

/* ================= Panels ================= */

.twentyfourounce-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 20px;
}

.metal-panel {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-soft);
}

/* ================= Table ================= */

.twentyfourounce-prices-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.twentyfourounce-prices-table thead {
    background: var(--black);
    color: var(--gold);
}

.twentyfourounce-prices-table th,
.twentyfourounce-prices-table td {
    padding: 12px 14px;
    font-size: 14px;
    border-bottom: 1px solid var(--gray-border);
    text-align: right;
}

.twentyfourounce-prices-table tbody tr:hover {
    background: #fafafa;
}

/* Inputs */
.twentyfourounce-prices-table input[type="number"] {
    max-width: 100px;
    padding: 2px 8px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background: #f7f7f7;
}

.twentyfourounce-prices-table input[readonly] {
    background: #f0f0f0;
    cursor: not-allowed;
}

/* ================= Buttons ================= */

.twentyfourounce-btn {
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    border: none;
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s ease;
}

.twentyfourounce-btn.btn-edit {
    background: linear-gradient(135deg, #1f2937, #000);
    color: #fff;
}

.twentyfourounce-btn.btn-save {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
}

.twentyfourounce-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ================= Actions ================= */

.admin-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    align-items: center;
}

/* ================= MOBILE (FINAL & WORKING) ================= */

@media (max-width: 900px) {
    .twentyfourounce-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 782px) {

    .twentyfourounce-prices-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .twentyfourounce-prices-table th,
    .twentyfourounce-prices-table td {
        padding: 6px;
        font-size: 12px;
    }

    .twentyfourounce-prices-table input[type="number"] {
        max-width: 85px;
        padding: 4px 5px;
        font-size: 12px;
    }

    .admin-actions {
        flex-direction: column;
        gap: 8px;
    }

    .twentyfourounce-btn {
        width: 100%;
    }
}

/* ================= WALLET – BLACK & GOLD ================= */

.wallet-header {
    margin-bottom: 30px;
}
.wallet-header h2 {
    color: #d4af37;
    font-size: 28px;
}
.wallet-header p {
    color: #aaa;
}

.wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.wallet-card {
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}

.wallet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(212,175,55,.15);
}

.wallet-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.wallet-name {
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 8px;
}

.wallet-qty {
    font-size: 22px;
    color: #fff;
}
.wallet-qty span {
    font-size: 14px;
    color: #aaa;
    margin-left: 4px;
}

.wallet-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.wallet-action-card {
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 20px;
}

.wallet-action-card h4 {
    color: #d4af37;
    margin-bottom: 12px;
}

.wallet-action-card input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    border-radius: 8px;
}

.btn-gold {
    background: linear-gradient(135deg,#d4af37,#f5d76e);
    border: none;
    color: #000;
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    font-weight: 600;
}

.btn-danger {
    background: #b91c1c;
    border: none;
    color: #fff;
    padding: 10px;
    width: 100%;
    border-radius: 8px;
}

.wallet-transactions h3 {
    color: #d4af37;
    margin-bottom: 12px;
}

.wallet-transactions table {
    width: 100%;
    background: #0f0f0f;
    border-radius: 12px;
    overflow: hidden;
}

.wallet-transactions th,
.wallet-transactions td {
    padding: 12px;
    border-bottom: 1px solid #222;
    color: #ddd;
}

.wallet-transactions th {
    color: #aaa;
    background: #111;
}
