/* ============================================================
   CIHA Portal — Core Stylesheet
   Canadian Independent Hosting Alliance
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 15px; -webkit-text-size-adjust: 100%; }

body {
    background: #000;
    color: #d4d4d4;
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: #ff2b2b; text-decoration: none; transition: color .15s; }
a:hover { color: #ff5c5c; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6 { color: #fff; font-weight: 600; line-height: 1.3; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }

code, pre {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .9em;
}

hr {
    border: none;
    border-top: 1px solid #222;
    margin: 24px 0;
}

/* --- Scrollbar -------------------------------------------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background: #0a0a0a;
    border-right: 1px solid #ff2b2b;
    display: flex;
    flex-direction: column;
    z-index: 900;
    overflow-y: auto;
    transition: transform .25s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 20px 20px;
    border-bottom: 1px solid #1a1a1a;
    text-decoration: none;
    color: #fff;
}

.sidebar-brand img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
}

.sidebar-brand-text {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #ff2b2b;
    line-height: 1.4;
}

.sidebar-brand-text span {
    display: block;
    font-size: .85rem;
    color: #fff;
    letter-spacing: .02em;
    text-transform: none;
    font-weight: 600;
}

/* Nav sections */
.sidebar-nav { flex: 1; padding: 12px 0; }

.sidebar-section {
    padding: 0 0 8px;
}

.sidebar-section-label {
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #555;
    padding: 16px 20px 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #999;
    font-size: .875rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all .15s;
}

.sidebar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .03);
}

.sidebar-link.active {
    color: #fff;
    border-left-color: #ff2b2b;
    background: rgba(255, 43, 43, .05);
}

.sidebar-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* User block at bottom */
.sidebar-user {
    padding: 16px 20px;
    border-top: 1px solid #1a1a1a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-user-info { flex: 1; min-width: 0; }

.sidebar-user-name {
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.sidebar-logout {
    font-size: .75rem;
    color: #666;
    transition: color .15s;
}
.sidebar-logout:hover { color: #ff2b2b; }

/* Mobile toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.sidebar-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 899;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main {
    margin-left: 260px;
    min-height: 100vh;
    padding: 32px 40px 60px;
}

/* --- Page header ------------------------------------------ */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.page-header-left { flex: 1; }

.page-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.page-header .subtitle {
    font-size: .9rem;
    color: #777;
    font-weight: 400;
}

.page-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

/* --- Breadcrumbs ------------------------------------------ */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: #666;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumbs a { color: #999; }
.breadcrumbs a:hover { color: #fff; }

.breadcrumbs .sep {
    color: #444;
    user-select: none;
}

.breadcrumbs .current { color: #d4d4d4; }

/* ============================================================
   CARDS & PANELS
   ============================================================ */
.card {
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 24px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.card-body p + p { margin-top: 12px; }

/* Stat cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 22px 24px;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 4px;
    font-family: 'IBM Plex Mono', monospace;
}

.stat-card-label {
    font-size: .8rem;
    color: #777;
    font-weight: 500;
}

.stat-card-accent .stat-card-value { color: #ff2b2b; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
    overflow-x: auto;
    border: 1px solid #222;
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

thead th {
    background: #111;
    color: #888;
    font-weight: 600;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #222;
    white-space: nowrap;
}

tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #1a1a1a;
    color: #d4d4d4;
    vertical-align: middle;
}

tbody tr:nth-child(odd) { background: #0a0a0a; }
tbody tr:nth-child(even) { background: #111; }
tbody tr:hover { background: #161616; }
tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label,
.form-label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: #999;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: .9rem;
    transition: border-color .15s;
    outline: none;
}

.form-control:focus {
    border-color: #ff2b2b;
    box-shadow: 0 0 0 2px rgba(255, 43, 43, .12);
}

.form-control::placeholder { color: #555; }

textarea.form-control { min-height: 100px; resize: vertical; }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .875rem;
    color: #d4d4d4;
    cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    accent-color: #ff2b2b;
    width: 16px;
    height: 16px;
}

.form-help {
    font-size: .75rem;
    color: #666;
    margin-top: 4px;
}

.form-error {
    font-size: .75rem;
    color: #ff2b2b;
    margin-top: 4px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.btn-primary {
    background: #ff2b2b;
    color: #fff;
    border-color: #ff2b2b;
}
.btn-primary:hover {
    background: #e01f1f;
    border-color: #e01f1f;
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: #d4d4d4;
    border-color: #555;
}
.btn-secondary:hover {
    border-color: #888;
    color: #fff;
}

.btn-danger {
    background: #8b1a1a;
    color: #fff;
    border-color: #8b1a1a;
}
.btn-danger:hover {
    background: #a02020;
    border-color: #a02020;
    color: #fff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: .8rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn:disabled, .btn.disabled {
    opacity: .4;
    pointer-events: none;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    line-height: 1.5;
    white-space: nowrap;
}

.badge-active   { background: rgba(34, 197, 94, .12); color: #22c55e; }
.badge-suspended { background: rgba(234, 179, 8, .12); color: #eab308; }
.badge-removed  { background: rgba(239, 68, 68, .12); color: #ef4444; }
.badge-pending  { background: rgba(160, 160, 160, .12); color: #a0a0a0; }
.badge-founder  { background: rgba(255, 43, 43, .15); color: #ff2b2b; }
.badge-associate { background: rgba(59, 130, 246, .12); color: #3b82f6; }
.badge-admin    { background: rgba(255, 255, 255, .1); color: #fff; }

/* ============================================================
   ALERTS / FLASH MESSAGES
   ============================================================ */
.alert {
    padding: 14px 20px;
    border-radius: 8px;
    border: 1px solid #222;
    background: #111;
    font-size: .875rem;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-success {
    border-color: #22c55e;
    background: rgba(34, 197, 94, .06);
    color: #86efac;
}

.alert-error,
.alert-danger {
    border-color: #ef4444;
    background: rgba(239, 68, 68, .06);
    color: #fca5a5;
}

.alert-info {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, .06);
    color: #93c5fd;
}

.alert-warning {
    border-color: #eab308;
    background: rgba(234, 179, 8, .06);
    color: #fde68a;
}

/* ============================================================
   LISTS
   ============================================================ */
.item-list {
    list-style: none;
}

.item-list li {
    padding: 14px 0;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.item-list li:last-child { border-bottom: none; }

.item-list-title {
    font-size: .9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.item-list-meta {
    font-size: .75rem;
    color: #666;
}

/* Pin indicator */
.pin-indicator {
    color: #ff2b2b;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: #555;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    stroke: #333;
    fill: none;
    margin: 0 auto 16px;
}

.empty-state p {
    font-size: .9rem;
    margin-bottom: 16px;
}

/* ============================================================
   QUICK LINKS
   ============================================================ */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    color: #d4d4d4;
    font-size: .875rem;
    font-weight: 500;
    transition: all .15s;
}

.quick-link:hover {
    border-color: #ff2b2b;
    color: #fff;
    background: rgba(255, 43, 43, .04);
}

.quick-link svg {
    width: 20px;
    height: 20px;
    stroke: #ff2b2b;
    fill: none;
    stroke-width: 1.8;
    flex-shrink: 0;
}

/* ============================================================
   SECTION SPACING
   ============================================================ */
.section { margin-bottom: 32px; }

.section-title {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #555;
    margin-bottom: 14px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #000;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 40px 36px 36px;
}

.login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo img {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 8px;
}

.login-logo h1 {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #ff2b2b;
    font-weight: 600;
    margin-bottom: 6px;
}

.login-logo h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.login-form .form-group { margin-bottom: 18px; }

.login-form .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: .95rem;
    margin-top: 4px;
}

.login-errors {
    margin-bottom: 18px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: .8rem;
    color: #555;
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-muted { color: #777; }
.text-red { color: #ff2b2b; }
.text-green { color: #22c55e; }
.text-white { color: #fff; }
.text-sm { font-size: .8rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .main { padding: 28px 24px 48px; }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

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

    .sidebar-toggle {
        display: flex;
    }

    .sidebar-overlay.open {
        display: block;
    }

    .main {
        margin-left: 0;
        padding: 72px 16px 40px;
    }

    .page-header {
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 28px 20px 24px;
    }
}

/* ============================================================
   GROUP BUY — ITEMS & LINK PREVIEWS
   ============================================================ */

/* Create form: URL fetch row */
.link-fetch-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Create form: preview cards in the pending items list */
.items-preview-list { display: flex; flex-direction: column; gap: 10px; }

.item-preview-card {
    display: flex;
    gap: 14px;
    align-items: center;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 12px 14px;
}

.item-preview-img {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #111;
}

.item-preview-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
}
.item-preview-noimg svg { width: 28px; height: 28px; }

.item-preview-info { flex: 1; min-width: 0; }

.item-preview-title {
    font-weight: 600;
    color: #fff;
    font-size: .875rem;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.item-preview-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.item-preview-price {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    color: #22c55e;
    font-size: .85rem;
}

.item-remove-btn { flex-shrink: 0; }

/* Detail page: items grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.item-card {
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: border-color .15s;
}
.item-card:hover { border-color: #333; }

.item-card-img-link { display: block; }

.item-card-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #0d0d0d;
    padding: 12px;
}

.item-card-noimg {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}
.item-card-noimg svg { width: 40px; height: 40px; }

.item-card-body { padding: 14px 16px 16px; flex: 1; }

.item-card-title {
    font-weight: 600;
    font-size: .875rem;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
    text-decoration: none;
}
.item-card-title:hover { color: #ff5c5c; }

.item-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.item-card-price {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    color: #22c55e;
    font-size: .9rem;
}

.item-card-remove {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* Source badges */
.badge-source {
    font-size: .6rem;
    padding: 2px 8px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.badge-source-ebay { background: rgba(227, 31, 38, .15); color: #e31f26; }
.badge-source-amazon { background: rgba(255, 153, 0, .15); color: #ff9900; }
.badge-source-newegg { background: rgba(241, 97, 34, .15); color: #f16122; }

/* List page: row thumbnails */
.groupbuy-list-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: #111;
}
.groupbuy-list-nothumb {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #222;
    color: #444;
}
.groupbuy-list-nothumb svg { width: 18px; height: 18px; }

/* Lot info stats */
.lot-info {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.lot-stat {
    display: flex;
    flex-direction: column;
}
.lot-stat-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.lot-stat-label {
    font-size: .75rem;
    color: #777;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: 2px;
}

/* Opt-in: per-item selection rows */
.optin-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.optin-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 8px;
}
.optin-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.optin-item-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #111;
}
.optin-item-title {
    font-weight: 600;
    font-size: .875rem;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 340px;
}
.optin-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}
.optin-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.optin-item-qty .form-label {
    margin-bottom: 0;
    font-size: .7rem;
}

/* Participants table: item interest breakdown */
.participant-item-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    line-height: 1.6;
}
.participant-item-qty {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    color: #ff2b2b;
    font-size: .8rem;
    flex-shrink: 0;
}
.participant-item-name {
    color: #d4d4d4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .items-grid { grid-template-columns: 1fr; }
    .link-fetch-row { flex-direction: column; }
    .link-fetch-row .btn { width: 100%; }
    .optin-item-row { flex-direction: column; align-items: stretch; }
    .optin-item-qty { justify-content: flex-end; }
    .optin-item-title { max-width: none; }
    .lot-info { flex-direction: column; gap: 12px; }
}
