/* =========================
   RESET / BASE
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
}

:root {
    --brand: #b5121b;
    --brand-dark: #941016;
    --brand-soft: rgba(181, 18, 27, 0.05);

    --bg: #f5f6f8;
    --panel: #ffffff;

    --border: #e6e6e6;
    --border-soft: #efefef;

    --text: #222222;
    --muted: #666666;
    --muted-2: #777777;

    --success-bg: #e6f6ec;
    --success-text: #1a7f3c;

    --error-bg: #fdeaea;
    --error-text: #b5121b;

    --pending-bg: #fff4e5;
    --pending-text: #c77700;

    --approved-bg: #e6f6ec;
    --approved-text: #1a7f3c;

    --rejected-bg: #fdeaea;
    --rejected-text: #b5121b;

    --shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 14px 30px rgba(0, 0, 0, 0.08);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;

    --container-max: 1240px;

    --page-pad-x: 24px;
    --page-pad-y-top: 28px;
    --page-pad-y-bottom: 40px;

    --section-gap: 24px;
    --card-gap: 20px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* =========================
   AUTH PAGES
========================= */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background:
        radial-gradient(circle at top left, rgba(181, 18, 27, 0.10), transparent 35%),
        radial-gradient(circle at bottom right, rgba(181, 18, 27, 0.08), transparent 35%),
        linear-gradient(135deg, #fafbfc 0%, #f3f4f6 100%);
}

.auth-card {
    width: 100%;
    max-width: 1180px;
    min-height: 640px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.auth-left {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px;
    background: linear-gradient(135deg, #9f1018 0%, #b5121b 55%, #c62028 100%);
    color: #ffffff;
}

.auth-left::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.10), transparent 24%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08), transparent 28%);
    pointer-events: none;
}

.auth-left > * {
    position: relative;
    z-index: 1;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 22px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.auth-left h1 {
    max-width: 520px;
    margin-bottom: 18px;
    font-size: 42px;
    line-height: 1.08;
}

.auth-left p {
    max-width: 540px;
    margin-bottom: 30px;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.92);
}

.auth-highlights {
    display: grid;
    gap: 18px;
    margin-top: 10px;
}

.auth-highlights div {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
}

.auth-highlights strong {
    display: inline-block;
    margin-bottom: 4px;
    color: #ffffff;
}

.auth-helper-block {
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.94);
    font-size: 14px;
    line-height: 1.6;
    max-width: 540px;
}

.auth-helper-block strong {
    color: #ffffff;
}

.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: #ffffff;
}

.auth-form-wrap {
    width: 100%;
    max-width: 420px;
}

.logo-wrap {
    margin-bottom: 22px;
}

.logo-wrap img {
    width: auto;
    max-height: 64px;
}

.panel-title {
    margin-bottom: 8px;
    font-size: 28px;
    line-height: 1.15;
    color: var(--text);
}

.panel-subtitle {
    margin-bottom: 24px;
    color: var(--muted);
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.password-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.password-label-row .form-label {
    margin-bottom: 0;
}

.forgot-password-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
    transition: color 0.18s ease;
}

.forgot-password-link:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.password-field-wrap {
    position: relative;
}

.password-field-wrap .form-control {
    padding-right: 84px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    min-width: 58px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background: #f7f7f7;
    color: #333333;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.password-toggle:hover {
    background: #efefef;
    border-color: #cccccc;
}

.form-control {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #cccccc;
    border-radius: 10px;
    background: #ffffff;
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(181, 18, 27, 0.10);
}

.form-control[readonly] {
    background: #f7f7f8;
    color: #555555;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.auth-support-text {
    margin-top: 18px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-primary {
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(181, 18, 27, 0.12);
}

.btn-primary:hover {
    background: var(--brand-dark);
}

.btn-secondary {
    background: #f3f3f3;
    color: #222222;
    border: 1px solid #dddddd;
}

.btn-secondary:hover {
    background: #e9e9e9;
}

.btn-small {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
}

.btn-disabled {
    background: #e9e9e9;
    color: #777777;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-disabled:hover,
.btn-disabled:active {
    transform: none;
    background: #e9e9e9;
    box-shadow: none;
}

/* =========================
   MESSAGES
========================= */
.message {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.message.success {
    background: var(--success-bg);
    color: var(--success-text);
}

.message.error {
    background: var(--error-bg);
    color: var(--error-text);
}

/* =========================
   MAIN APP LAYOUT
========================= */
.site-shell {
    min-height: 100vh;
}

.page-wrap {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--page-pad-y-top) var(--page-pad-x) var(--page-pad-y-bottom);
}

.page-wrap > *:first-child {
    margin-top: 0 !important;
}

.page-wrap > *:last-child {
    margin-bottom: 0 !important;
}

.content-card,
.stat-card,
.info-card,
.summary-stat-card {
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.content-card:hover,
.stat-card:hover,
.info-card:hover,
.summary-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.hero-panel,
.content-card,
.grid-3,
.stats-grid,
.review-panel,
.review-card,
.admin-hero,
.account-summary-grid,
.account-grid {
    margin-bottom: var(--section-gap);
}

.hero-panel:last-child,
.content-card:last-child,
.grid-3:last-child,
.stats-grid:last-child,
.review-panel:last-child,
.review-card:last-child,
.admin-hero:last-child,
.account-summary-grid:last-child,
.account-grid:last-child {
    margin-bottom: 0;
}

/* =========================
   TOPBAR
========================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 14px var(--page-pad-x);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.topbar-brand img {
    width: auto;
    max-height: 50px;
}

.topbar-brand-text h2 {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.1;
}

.topbar-brand-text p {
    margin: 0;
    font-size: 12px;
    color: var(--muted-2);
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--brand);
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
    background: rgba(181, 18, 27, 0.08);
}

.nav-link.active {
    background: var(--brand);
    color: #ffffff;
}

/* =========================
   CUSTOMER DASHBOARD / SHARED BLOCKS
========================= */
.hero-panel {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 18px;
    align-items: stretch;
}

.hero-panel > div:first-child,
.points-card {
    padding: 26px;
    border-radius: 18px;
}

.hero-panel > div:first-child {
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-panel h1 {
    margin-bottom: 10px;
    font-size: 30px;
    line-height: 1.12;
}

.hero-panel p {
    max-width: 760px;
    color: var(--muted);
}

.points-card {
    background: linear-gradient(135deg, #9f1018 0%, #b5121b 60%, #c62028 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 18px 34px rgba(181, 18, 27, 0.16);
}

.points-label {
    margin-bottom: 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

.points-value {
    margin-bottom: 10px;
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
}

.points-note {
    font-size: 14px;
    opacity: 0.9;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.info-card {
    padding: 22px;
    border-radius: 18px;
}

.info-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.info-card p {
    color: var(--muted);
}

.content-card {
    padding: 24px;
    border-radius: 18px;
}

.content-card h2 {
    margin-bottom: 6px;
    font-size: 26px;
    line-height: 1.15;
}

.lead {
    margin-bottom: 18px;
    color: var(--muted);
}

/* =========================
   FEATURED REWARD
========================= */
.featured-reward-card {
    display: grid;
    grid-template-columns: 270px 1fr;
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(181, 18, 27, 0.12);
    background: linear-gradient(135deg, #ffffff 0%, #fff7f8 100%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.featured-reward-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.featured-reward-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 20px;
    background: #ffffff;
    border-right: 1px solid #f0f0f0;
}

.featured-reward-image {
    width: auto;
    max-width: 230px;
    max-height: 230px;
    object-fit: contain;
    border-radius: 12px;
}

.featured-reward-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px 28px;
}

.featured-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(181, 18, 27, 0.12);
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.featured-reward-content h3 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    color: #111111;
}

.featured-reward-content p {
    max-width: 600px;
    margin-bottom: 16px;
    color: var(--muted);
}

.featured-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.featured-chip {
    padding: 6px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    font-size: 13px;
    font-weight: 700;
    color: #333333;
}

.featured-reward-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* =========================
   REVIEW PANELS
========================= */
.review-panel,
.review-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 26px;
    border-radius: 18px;
    border: 1px solid rgba(181, 18, 27, 0.14);
    background: linear-gradient(135deg, #fff7f8 0%, #ffffff 100%);
    box-shadow: var(--shadow);
}

.review-panel-copy,
.review-card-content {
    max-width: 760px;
}

.review-panel-copy h2,
.review-card-content h2 {
    margin-bottom: 8px;
    font-size: 26px;
    line-height: 1.15;
}

.review-panel-copy p,
.review-card-content p {
    margin: 0;
    color: var(--muted);
}

.review-panel-action,
.review-card-actions {
    flex-shrink: 0;
}

.review-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(181, 18, 27, 0.08);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
}

.reward-note,
.footer-note,
.table-note,
.reason-note,
.muted {
    color: var(--muted);
}

.reward-note,
.footer-note,
.table-note {
    font-size: 14px;
}

.reward-note {
    margin-top: 18px;
}

.footer-note {
    margin-top: 8px;
    text-align: center;
}

/* =========================
   TABLES
========================= */
.table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
}

.data-table,
table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.data-table th,
table th {
    padding: 13px 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #555555;
    background: #fafafa;
    border-bottom: 1px solid var(--border-soft);
    white-space: nowrap;
}

.data-table td,
table td {
    padding: 13px 14px;
    font-size: 14px;
    vertical-align: top;
    border-top: 1px solid var(--border-soft);
}

.request-id {
    font-weight: 700;
    color: #555555;
    white-space: nowrap;
}

.pending-row {
    background: var(--brand-soft);
}

.empty-state {
    padding: 30px 16px;
    text-align: center;
    color: var(--muted);
}

.empty-state strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
}

/* =========================
   STATUS PILLS
========================= */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-pending {
    background: var(--pending-bg);
    color: var(--pending-text);
}

.status-approved {
    background: var(--approved-bg);
    color: var(--approved-text);
}

.status-rejected {
    background: var(--rejected-bg);
    color: var(--rejected-text);
}

.status-completed {
    background: #edf2ff;
    color: #3558c8;
}

/* =========================
   ACCOUNT PAGE
========================= */
.account-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.summary-stat-card {
    padding: 22px;
    border-radius: 18px;
}

.summary-stat-label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.summary-stat-value {
    display: block;
    font-size: 30px;
    line-height: 1.1;
    color: var(--text);
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.account-grid > .content-card {
    height: 100%;
}

.account-detail-list {
    display: grid;
    gap: 0;
}

.account-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-soft);
}

.account-detail-row:first-child {
    padding-top: 8px;
}

.account-detail-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.account-detail-label {
    min-width: 140px;
    color: var(--muted);
    font-weight: 600;
}

.account-detail-value {
    color: var(--text);
    font-weight: 700;
    text-align: right;
    word-break: break-word;
}

.account-password-form {
    display: grid;
    gap: 16px;
    margin-top: 8px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.form-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8dbe1;
    border-radius: 10px;
    font-size: 15px;
    background: #ffffff;
    color: var(--text);
}

.form-field input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(181, 18, 27, 0.08);
}

.points-positive {
    color: var(--success-text);
    font-weight: 700;
}

.points-negative {
    color: var(--brand);
    font-weight: 700;
}

/* =========================
   ADMIN DASHBOARD
========================= */
.admin-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.admin-hero h1 {
    margin-bottom: 6px;
    font-size: 34px;
    line-height: 1.12;
}

.admin-hero p {
    color: var(--muted);
}

.admin-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.stats-grid > .stat-card {
    height: 100%;
}

.stat-card {
    padding: 18px;
    border-radius: 16px;
}

.stat-label {
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--muted);
}

.stat-value {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f4f4f4;
    color: #333333;
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease;
}

.filter-tab:hover {
    background: #ececec;
}

.filter-tab.active {
    background: var(--brand);
    color: #ffffff;
}

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-form input[type="text"] {
    min-width: 280px;
}

.results-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 14px;
}

.admin-action-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.logout-form {
    display: inline;
}

.reason-note {
    margin-top: 4px;
    font-size: 12px;
}

/* =========================
   MODALS
========================= */
.modal-overlay,
.modal,
.dashboard-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
}

.dashboard-modal[hidden] {
    display: none !important;
}

.dashboard-modal.open {
    display: flex;
}

.modal-card,
.modal-box,
.dashboard-modal-card {
    width: 100%;
    max-width: 520px;
    padding: 24px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.modal-header h3,
.modal-box h3,
.dashboard-modal-card h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
}

.modal-close {
    border: none;
    background: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #666666;
}

.modal-text,
.dashboard-modal-text {
    margin: 0 0 8px;
    color: var(--text);
}

.modal-subtext,
.dashboard-modal-subtext {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.modal-actions,
.dashboard-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.rejection-inline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
}

.rejection-inline input {
    padding: 8px 10px;
    font-size: 13px;
}

/* =========================
   COOKIE BANNER
========================= */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: #222;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    z-index: 999999;
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-banner button {
    border: 0;
    border-radius: 8px;
    padding: 8px 14px;
    background: #b5121b;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* =========================
   CONTACT PAGE
========================= */
.contact-page {
    width: 100%;
}

.contact-hero {
    max-width: 820px;
    margin: 0 auto 24px;
    padding: 28px;
}

.contact-hero__header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-hero__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--brand-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-title {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.1;
    color: var(--text);
}

.contact-intro {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    max-width: 640px;
}

.contact-response-note {
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid var(--border-soft);
    background: #fafafa;
    border-radius: 12px;
    color: var(--text);
    font-size: 14px;
}

.contact-grid {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contact-card {
    padding: 22px;
    border-radius: 18px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.contact-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-card__emoji {
    font-size: 18px;
    line-height: 1;
}

.contact-card__label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-card__value {
    font-size: 19px;
    line-height: 1.5;
    color: var(--text);
    font-weight: 600;
    word-break: break-word;
}

.contact-card__value--email {
    font-size: 18px;
}

.contact-card__hint {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
}

.contact-address {
    font-style: normal;
    margin: 0;
}

.contact-card--action {
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.contact-card--action:hover {
    transform: translateY(-2px);
    border-color: rgba(181, 18, 27, 0.22);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.contact-card--action::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(181, 18, 27, 0.02), rgba(181, 18, 27, 0.00));
    pointer-events: none;
}

.contact-card--company,
.contact-card--address {
    border: 1px solid var(--border);
    background: var(--panel);
}

/* =========================
   UTILITIES
========================= */
.full {
    width: 100%;
}

/* =========================
   CUSTOMER FOOTER
========================= */
.customer-footer {
    margin-top: 10px;
    padding: 0 var(--page-pad-x) 28px;
}

.customer-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 18px 22px;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.customer-footer-copy {
    margin: 0;
    font-size: 14px;
}

.customer-footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.customer-footer-links a {
    font-size: 14px;
    color: var(--muted);
    transition: color 0.18s ease;
}

.customer-footer-links a:hover {
    color: var(--brand);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
    .auth-card {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    .auth-left,
    .auth-right {
        padding: 38px;
    }

    .hero-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3,
    .account-summary-grid,
    .account-grid {
        grid-template-columns: 1fr;
    }

    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .featured-reward-card {
        grid-template-columns: 1fr;
    }

    .featured-reward-media {
        border-right: none;
        border-bottom: 1px solid var(--border-soft);
    }
}

@media (max-width: 768px) {
    .review-panel,
    .review-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-panel-action,
    .review-card-actions {
        width: 100%;
    }

    .review-panel-action .btn,
    .review-card-actions .btn {
        width: 100%;
        text-align: center;
    }

    .contact-hero {
        padding: 22px;
    }

    .contact-hero__header {
        align-items: flex-start;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 18px;
    }

    .contact-card__value,
    .contact-card__value--email {
        font-size: 17px;
    }
}

@media (max-width: 640px) {
    :root {
        --page-pad-x: 16px;
        --page-pad-y-top: 20px;
        --page-pad-y-bottom: 30px;
        --section-gap: 20px;
    }

    .customer-footer {
        padding: 0 16px 24px;
    }

    .customer-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0 0;
    }

    .customer-footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .auth-page {
        padding: 18px 12px;
    }

    .auth-left,
    .auth-right {
        padding: 26px 22px;
    }

    .auth-left h1,
    .hero-panel h1,
    .admin-hero h1 {
        font-size: 30px;
    }

    .panel-title {
        font-size: 24px;
    }

    .password-label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .form-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .search-form {
        width: 100%;
    }

    .search-form input[type="text"] {
        min-width: 100%;
    }

    .admin-action-group {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-action-group form,
    .admin-action-group button,
    .rejection-inline {
        width: 100%;
    }

    .modal-actions,
    .dashboard-modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn,
    .dashboard-modal-actions .btn {
        width: 100%;
    }

    .topbar-nav {
        width: 100%;
    }

    .account-detail-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-detail-value {
        text-align: left;
    }

    .summary-stat-value {
        font-size: 26px;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner button {
        width: 100%;
    }
}