/* =========================================================
   NATIONLOGS — MAIN STYLESHEET
   Existing site styles and Marketplace layout
   ========================================================= */

/* ---------------------------------------------------------
   1. Theme variables
   --------------------------------------------------------- */

:root {
    --bg: #f6f9ff;
    --surface: #fff;
    --surface-soft: #eff6ff;
    --text: #12213b;
    --muted: #66758d;
    --line: #dfe8f5;
    --blue: #2563eb;
    --blue2: #1d4ed8;
    --navy: #10274c;
    --shadow: 0 12px 35px rgba(22, 55, 105, .08);
}

:root[data-theme="dark"] {
    --bg: #0c1424;
    --surface: #111e33;
    --surface-soft: #172a47;
    --text: #eff5ff;
    --muted: #a5b4cb;
    --line: #263b59;
    --blue: #60a5fa;
    --blue2: #3b82f6;
    --navy: #0b1425;
    --shadow: 0 12px 35px rgba(0, 0, 0, .18);
}

/* ---------------------------------------------------------
   2. Global styles
   --------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    color-scheme: light;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system,
        "Segoe UI", sans-serif;
    transition: background .18s, color .18s;
}

a {
    color: var(--blue);
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* ---------------------------------------------------------
   3. Header and branding
   --------------------------------------------------------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 68px;
    padding: 0 clamp(14px, 4vw, 40px);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(20, 50, 90, .025);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -.6px;
}

.brand-blue {
    color: var(--blue);
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 6px 14px #2563eb2e;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 20px;
}

.icon-btn:hover {
    background: var(--surface-soft);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.top-login {
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font-weight: 700;
}

.avatar-link {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--blue);
    font-weight: 800;
}

/* ---------------------------------------------------------
   4. Main layout and homepage hero
   --------------------------------------------------------- */

.site-main {
    max-width: 1180px;
    min-height: 72vh;
    margin: 0 auto;
    padding: 26px clamp(14px, 3vw, 28px) 56px;
}

.hero {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    align-items: center;
    gap: 24px;
    padding: clamp(28px, 6vw, 62px);
    border: 1px solid var(--line);
    border-radius: 26px;
    background: linear-gradient(120deg, var(--surface), var(--surface-soft));
    box-shadow: var(--shadow);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 99px;
    background: var(--surface-soft);
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 680px;
    margin: 18px 0 14px;
    font-size: clamp(34px, 5.2vw, 58px);
    line-height: 1.07;
    letter-spacing: -1.8px;
}

.hero p {
    max-width: 590px;
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 17px;
}

.hero-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 200px;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(145deg, #dbeafe, #eff6ff);
    color: #1d4ed8;
    font-size: 76px;
    font-weight: 900;
}

.hero-art::before,
.hero-art::after {
    position: absolute;
    width: 230px;
    height: 230px;
    border: 1px solid #93c5fd80;
    border-radius: 50%;
    content: "";
}

.hero-art::after {
    width: 160px;
    height: 160px;
}

.hero-art span {
    z-index: 1;
    padding: 22px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 35px #1d4ed826;
}

/* ---------------------------------------------------------
   5. Buttons
   --------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 17px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-weight: 750;
    cursor: pointer;
    transition: transform .15s, background .15s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--blue);
    color: #fff;
}

.btn-primary:hover {
    background: var(--blue2);
}

.btn-outline {
    border-color: var(--line);
    background: var(--surface);
    color: var(--text);
}

.btn-small {
    padding: 8px 12px;
    font-size: 13px;
}

/* ---------------------------------------------------------
   6. Sections, grids and cards
   --------------------------------------------------------- */

.section {
    margin-top: 36px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 17px;
}

.section-head h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -.5px;
}

.section-head p {
    margin: 4px 0 0;
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.category-card {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
    transition: transform .15s, border-color .15s;
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
}

.category-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--blue);
    font-size: 21px;
    font-weight: 800;
}

.category-card h3,
.product-card h3 {
    margin: 0 0 3px;
    font-size: 16px;
}

.category-card p,
.product-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform .15s;
}

.product-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pill {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 99px;
    background: var(--surface-soft);
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
}

.price {
    color: var(--blue);
    font-size: 19px;
    font-weight: 850;
}

.product-card .btn {
    margin-top: auto;
}

.muted {
    color: var(--muted);
}

/* ---------------------------------------------------------
   7. Page titles and statistics
   --------------------------------------------------------- */

.page-title {
    margin: 8px 0 22px;
}

.page-title h1 {
    margin: 0 0 6px;
    font-size: 32px;
    letter-spacing: -.8px;
}

.page-title p {
    margin: 0;
    color: var(--muted);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.stat-label {
    color: var(--muted);
    font-size: 13px;
}

.stat-value {
    margin-top: 5px;
    font-size: 27px;
    font-weight: 850;
    letter-spacing: -.7px;
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--blue);
    font-size: 20px;
}

/* ---------------------------------------------------------
   8. Tables
   --------------------------------------------------------- */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 13px;
}

.table th {
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.table tr:last-child td {
    border-bottom: 0;
}

/* ---------------------------------------------------------
   9. Forms and search fields
   --------------------------------------------------------- */

.form-card {
    max-width: 520px;
    margin: 22px auto;
    padding: clamp(22px, 5vw, 36px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.form-card h1 {
    margin: 0 0 7px;
    font-size: 28px;
    letter-spacing: -.7px;
}

.form-card > p {
    margin: 0 0 24px;
    color: var(--muted);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
}

.field label {
    font-size: 13px;
    font-weight: 750;
}

.field input,
.field select,
.field textarea,
.search-input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: none;
    background: var(--bg);
    color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px #3b82f61c;
}

.field textarea {
    min-height: 110px;
    resize: vertical;
}

.form-card .btn {
    width: 100%;
}

.form-foot {
    margin-top: 18px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-row .search-input {
    flex: 1;
}

.badge {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 99px;
    background: var(--surface-soft);
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
}

.badge.pending {
    background: #fff7ed;
    color: #c2410c;
}

.badge.completed,
.badge.approved {
    background: #f0fdf4;
    color: #15803d;
}

.badge.rejected,
.badge.failed {
    background: #fef2f2;
    color: #b91c1c;
}

/* ---------------------------------------------------------
   10. Flash messages and empty states
   --------------------------------------------------------- */

.flash {
    margin-bottom: 18px;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.flash-success {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.flash-error {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

.flash-info {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.empty {
    padding: 35px;
    color: var(--muted);
    text-align: center;
}

.empty strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-size: 17px;
}

/* ---------------------------------------------------------
   11. Navigation drawer
   --------------------------------------------------------- */

.drawer {
    position: fixed;
    z-index: 50;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    width: min(310px, 86vw);
    border-right: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 20px 0 60px #07172c20;
    transform: translateX(-105%);
    transition: transform .24s ease;
}

.drawer.open {
    transform: translateX(0);
}

.scrim {
    position: fixed;
    z-index: 49;
    inset: 0;
    background: #06142b70;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s;
}

.scrim.open {
    opacity: 1;
    visibility: visible;
}

.drawer-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
}

.drawer-head small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.drawer-close {
    margin-left: auto;
    font-size: 24px;
}

.drawer-nav {
    overflow: auto;
    padding: 12px;
}

.drawer-nav > a,
.drawer-logout button {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 12px 13px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--text);
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.drawer-nav > a:first-child {
    margin-top: 2px;
}

.drawer-nav > a:hover,
.drawer-logout button:hover {
    background: var(--surface-soft);
    color: var(--blue);
}

.drawer-nav > a {
    font-size: 15px;
}

.drawer-nav > a::first-letter,
.drawer-logout button::first-letter {
    color: var(--blue);
}

.drawer-logout {
    margin: 0;
}

.drawer-foot {
    margin-top: auto;
    padding: 18px 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}

/* ---------------------------------------------------------
   12. Footer
   --------------------------------------------------------- */

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 25px clamp(16px, 4vw, 40px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.footer strong {
    color: var(--text);
}

.footer small {
    max-width: 520px;
    text-align: right;
}

.admin-link {
    color: var(--blue);
}

/* =========================================================
   13. NATIONLOGS MARKETPLACE LAYOUT
   Scoped to the Marketplace page only
   ========================================================= */

.marketplace-page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Marketplace search area */

.marketplace-search {
    margin: 0 0 24px;
}

.marketplace-search-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.marketplace-category-select {
    flex: 0 0 125px;
    width: 125px;
    min-width: 0;
    padding: 11px 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.marketplace-search-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.marketplace-search-button {
    flex: 0 0 44px;
    width: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-size: 19px;
    cursor: pointer;
}

.marketplace-search-button:hover {
    background: var(--blue2);
}

.marketplace-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}

.marketplace-kind-select {
    max-width: 190px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

/* Marketplace heading */

.marketplace-heading {
    margin: 0 0 20px;
}

.marketplace-heading h1 {
    margin: 0 0 4px;
    font-size: 27px;
    letter-spacing: -.5px;
}

.marketplace-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* Marketplace category sections */

.marketplace-category-section {
    margin: 0 0 25px;
}

.marketplace-category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 7px;
    background: var(--blue);
    color: #fff;
}

.marketplace-category-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.marketplace-view-all {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
}

.marketplace-view-all:hover {
    background: rgba(255, 255, 255, .13);
    color: #fff;
}

/* Marketplace product list */

.marketplace-product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.marketplace-product-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.marketplace-product-icon {
    display: grid;
    flex: 0 0 43px;
    place-items: center;
    width: 43px;
    height: 43px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
    font-size: 22px;
}

.marketplace-product-details {
    flex: 1 1 auto;
    min-width: 0;
}

.marketplace-product-details h3 {
    margin: 0 0 5px;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.marketplace-product-type {
    margin: 0 0 9px;
    color: var(--muted);
    font-size: 12px;
}

.marketplace-product-stock {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 13px;
}

.marketplace-product-stock strong {
    color: var(--text);
}

.marketplace-stock-dot,
.marketplace-out-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
}

.marketplace-out-dot {
    background: #dc2626;
}

.marketplace-product-price {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.marketplace-product-price strong {
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
}

/* Marketplace product action */

.marketplace-product-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 37px;
    padding: 8px 13px;
    border: 0;
    border-radius: 7px;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.marketplace-product-button:hover {
    background: var(--blue2);
    color: #fff;
}

.marketplace-product-button-disabled {
    background: var(--surface-soft);
    color: var(--muted);
    border: 1px solid var(--line);
}

.marketplace-product-button-disabled:hover {
    background: var(--surface-soft);
    color: var(--muted);
    border: 1px solid var(--line);
}

/* ---------------------------------------------------------
   14. Responsive layouts
   --------------------------------------------------------- */

@media (max-width: 850px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-art {
        min-height: 150px;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .topbar {
        height: 60px;
        gap: 9px;
        padding: 0 12px;
    }

    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
    }

    .site-main {
        padding: 18px 13px 40px;
    }

    .hero {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-art {
        display: none;
    }

    .grid,
    .grid-4,
    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .card {
        padding: 15px;
    }

    .category-card {
        gap: 9px;
    }

    .category-icon {
        width: 38px;
        height: 38px;
    }

    .category-card h3 {
        font-size: 13px;
    }

    .category-card p {
        font-size: 11px;
    }

    .section-head h2 {
        font-size: 21px;
    }

    .stat-value {
        font-size: 21px;
    }

    .form-card {
        margin: 10px auto;
        padding: 22px 18px;
    }

    .page-title h1 {
        font-size: 27px;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer small {
        text-align: left;
    }

    .search-row {
        flex-direction: column;
    }

    /* Marketplace mobile styles */

    .marketplace-page {
        max-width: 100%;
    }

    .marketplace-search {
        margin-bottom: 22px;
    }

    .marketplace-search-row {
        gap: 6px;
    }

    .marketplace-category-select {
        flex-basis: 100px;
        width: 100px;
        padding: 10px 5px;
        font-size: 12px;
    }

    .marketplace-search-input {
        padding: 10px 8px;
        font-size: 13px;
    }

    .marketplace-search-button {
        flex-basis: 39px;
        width: 39px;
        font-size: 17px;
    }

    .marketplace-heading h1 {
        font-size: 24px;
    }

    .marketplace-category-heading {
        min-height: 41px;
        padding: 7px 9px;
    }

    .marketplace-category-heading h2 {
        font-size: 13px;
    }

    .marketplace-view-all {
        padding: 5px 8px;
        font-size: 11px;
    }

    .marketplace-product-list {
        gap: 10px;
    }

    .marketplace-product-card {
        gap: 10px;
        padding: 12px;
        border-radius: 10px;
    }

    .marketplace-product-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        font-size: 19px;
    }

    .marketplace-product-details h3 {
        font-size: 14px;
    }

    .marketplace-product-stock,
    .marketplace-product-price {
        font-size: 12px;
    }

    .marketplace-product-price strong {
        font-size: 14px;
    }

    .marketplace-product-button {
        min-height: 35px;
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* ---------------------------------------------------------
   15. Accessibility preferences
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}


/* =========================================================
   RESPONSIVE FORMS AND DETAIL PAGES
   Used by support.php, fund-wallet.php, and product.php
   ========================================================= */

.responsive-page {
    width: 100%;
    min-width: 0;
}

.responsive-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    width: 100%;
}

.responsive-two-column > * {
    min-width: 0;
}

.support-form-card,
.fund-wallet-form-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
}

.support-form-card textarea,
.fund-wallet-form-card textarea {
    width: 100%;
    min-width: 0;
    min-height: 130px;
    overflow-wrap: anywhere;
}

.support-form-card input,
.fund-wallet-form-card input,
.support-form-card select,
.fund-wallet-form-card select {
    width: 100%;
    min-width: 0;
}

.support-form-card .btn,
.fund-wallet-form-card .btn {
    width: 100%;
    white-space: normal;
}

.support-requests {
    min-width: 0;
}

.support-requests-title {
    margin-top: 0;
}

.support-ticket-card {
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.product-page-title h1 {
    margin-top: 12px;
    overflow-wrap: anywhere;
}

.product-description-card,
.product-purchase-card,
.fund-wallet-information {
    min-width: 0;
    overflow-wrap: anywhere;
}

.product-description {
    line-height: 1.75;
    overflow-wrap: anywhere;
    word-break: normal;
}

.product-detail-price {
    margin: 8px 0 18px;
    font-size: 30px;
    overflow-wrap: anywhere;
}

.product-purchase-button {
    width: 100%;
    min-height: 48px;
    white-space: normal;
    text-align: center;
}

.product-purchase-note {
    margin-bottom: 0;
    font-size: 12px;
}

.product-price-label,
.product-availability {
    margin-top: 0;
}

.fund-wallet-information {
    height: auto;
}

@media (max-width: 700px) {
    .responsive-two-column {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .support-form-card,
    .fund-wallet-form-card {
        padding: 22px 18px;
    }

    .support-requests-title {
        margin: 4px 0 14px;
    }

    .product-page-title h1 {
        font-size: clamp(25px, 6vw, 34px);
        line-height: 1.2;
    }

    .product-detail-layout {
        gap: 14px;
    }

    .product-description-card,
    .product-purchase-card,
    .fund-wallet-information {
        width: 100%;
    }

    .product-detail-price {
        font-size: clamp(25px, 7vw, 30px);
    }

    .fund-wallet-information p {
        line-height: 1.65;
    }
}
