/* Global Cursor Fix - Prevent caret/cursor on non-input elements */
*:not(input):not(textarea):not(select):not([contenteditable="true"]) {
    caret-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

/* Ensure inputs show the caret and allow text selection */
input, textarea, select, [contenteditable="true"] {
    caret-color: auto;
    user-select: text;
    -webkit-user-select: text;
}

/* Login View */
.login-view {
    min-height: calc(100vh + 1px);
    flex-direction: column;
}

.login-view.active {
    display: flex !important;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background: #f7f8fa;
}

.login-container {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e8eaed;
    padding: 2.75rem 2.5rem 2.25rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}

.login-container:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.09);
}

/* ── Login profile picture: clickable, cycles through idle animations ── */
.login-pfp-wrapper {
    width: 104px;
    height: 104px;
    margin: 0 auto 1rem;
    position: relative;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-pfp-wrapper:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 168, 143, 0.45);
    border-radius: 12px;
}

.login-pfp {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
    will-change: transform, filter;
}

/* 1 — Float: gentle vertical bob */
.login-pfp-wrapper[data-anim="1"] .login-pfp {
    animation: pfp-float 3.2s ease-in-out infinite;
}
@keyframes pfp-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

/* 2 — Pulse glow (drop-shadow follows the silhouette) */
.login-pfp-wrapper[data-anim="2"] .login-pfp {
    animation: pfp-pulse 2.2s ease-out infinite;
}
@keyframes pfp-pulse {
    0%   { filter: drop-shadow(0 0 0 rgba(0, 168, 143, 0.9)); }
    60%  { filter: drop-shadow(0 0 14px rgba(0, 168, 143, 0.55)); }
    100% { filter: drop-shadow(0 0 0 rgba(0, 168, 143, 0)); }
}

/* 3 — Breathe: subtle scale in/out */
.login-pfp-wrapper[data-anim="3"] .login-pfp {
    animation: pfp-breathe 3.4s ease-in-out infinite;
}
@keyframes pfp-breathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}

/* 4 — Sway: gentle pendulum tilt */
.login-pfp-wrapper[data-anim="4"] .login-pfp {
    animation: pfp-sway 3.8s ease-in-out infinite;
    transform-origin: 50% 95%;
}
@keyframes pfp-sway {
    0%, 100% { transform: rotate(-4deg); }
    50%      { transform: rotate(4deg); }
}

/* 5 — Rainbow aura: drop-shadow cycles colour around the silhouette */
.login-pfp-wrapper[data-anim="5"] .login-pfp {
    animation: pfp-aura 5s linear infinite;
}
@keyframes pfp-aura {
    0%   { filter: drop-shadow(0 0 10px rgba(0, 168, 143, 0.7)); }
    25%  { filter: drop-shadow(0 0 10px rgba(255, 99, 132, 0.65)); }
    50%  { filter: drop-shadow(0 0 10px rgba(255, 197, 71, 0.65)); }
    75%  { filter: drop-shadow(0 0 10px rgba(99, 132, 255, 0.65)); }
    100% { filter: drop-shadow(0 0 10px rgba(0, 168, 143, 0.7)); }
}

.login-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.login-header h1 {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #111827;
}

.login-header p {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
}

.demo-credentials {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
}

.demo-credentials h3 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.demo-credentials p {
    margin: 0;
    color: #374151;
    font-size: 0.82rem;
    line-height: 1.5;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.demo-credentials p + p {
    margin-top: 0.35rem;
}

.demo-credentials p[style*="margin-top"] {
    margin-top: 0.85rem !important;
    padding-top: 0.85rem;
    border-top: 1px solid #e5e7eb;
}

.demo-credentials strong {
    color: #111827;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.1rem 0.45rem;
}

/* Hub View */
.hub-view {
    min-height: 100vh;
    flex-direction: column;
}

.hub-view.active {
    display: flex !important;
}

/* Dashboard View */
.dashboard-view {
    min-height: 100vh;
    background: #f5f5f5;
}

.dashboard-view.active {
    display: block !important;
}

.dashboard-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.dashboard-header {
    background: white;
    border-bottom: 1px solid var(--border-light);
    padding: 2.5rem 3rem;
    margin-bottom: 0;
    text-align: center;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.dashboard-header p {
    color: var(--text-medium);
    font-size: 1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid #1e40af;
}

.dashboard-card.success {
    border-left-color: var(--success);
}

.dashboard-card.warning {
    border-left-color: var(--warning);
}

.dashboard-card.secondary {
    border-left-color: #7c3aed;
}

.card-value {
    font-size: 2rem;
    font-weight: bold;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.dashboard-card.success .card-value {
    color: var(--success);
}

.dashboard-card.warning .card-value {
    color: var(--warning);
}

.dashboard-card.secondary .card-value {
    color: #7c3aed;
}

.card-label {
    color: var(--text-medium);
    font-size: 0.9rem;
}

.dashboard-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.dashboard-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-section h2 i {
    color: var(--primary-color);
}

/* Dashboard Content Wrapper */
#dashboardSection .page-content {
    padding: 0;
    max-width: 100%;
}

.dashboard-content-wrapper {
    padding: 2rem 3rem;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

/* Dashboard Controls */
.dashboard-controls {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1.2rem;
}

.filter-controls {
    display: flex;
    gap: 0.5rem;
}

.filter-select {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Dashboard Card Enhancements */
.card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card-trend {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.card-trend.positive {
    color: var(--success);
}

.card-trend.negative {
    color: #e74c3c;
}

.card-trend.neutral {
    color: var(--text-medium);
}

/* Platform Comparison */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.comparison-card {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.comparison-card.achievers-theme {
    border-color: #667eea;
}

.comparison-card.connexus-theme {
    border-color: #f093fb;
}

.comparison-header {
    padding: 1.5rem;
    margin: 0.75rem 0.75rem 0;
    border-radius: 12px;
    text-align: center;
    background: var(--bg-light);
}

.comparison-card.achievers-theme .comparison-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.comparison-card.connexus-theme .comparison-header {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
}

.comparison-logo {
    max-width: 250px;
    width: 100%;
    height: auto;
}

.comparison-stats {
    padding: 2rem;
}

.comparison-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.comparison-stat:last-child {
    border-bottom: none;
}

.comparison-stat .stat-label {
    color: var(--text-medium);
    font-weight: 500;
}

.comparison-stat .stat-value {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Progress Bars */
.progress-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.progress-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-label {
    font-weight: 600;
    color: var(--text-dark);
}

.progress-value {
    color: var(--text-medium);
    font-size: 0.9rem;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    min-height: 12px;
    transition: width 0.6s ease;
    border-radius: 6px;
}

.achievers-gradient {
    background: linear-gradient(90deg, #667eea, #764ba2) !important;
}

.connexus-gradient {
    background: linear-gradient(90deg, #f093fb, #f5576c) !important;
}

.success-gradient {
    background: linear-gradient(90deg, var(--success), #27ae60) !important;
}

/* Table Styling */
.table-container {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table thead tr {
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-medium);
}

.dashboard-table th {
    text-align: left;
    padding: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.dashboard-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.dashboard-table tbody tr:hover {
    background: var(--bg-light);
}

.trend-positive {
    color: var(--success);
    font-weight: 600;
}

.trend-negative {
    color: #e74c3c;
    font-weight: 600;
}

.trend-neutral {
    color: var(--text-medium);
    font-weight: 600;
}

/* Campaign List */
.campaigns-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.campaign-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.campaign-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.campaign-info p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* Top Performers */
.performers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.performer-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
}

.performer-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.performer-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.performer-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.performer-item:hover {
    transform: translateX(4px);
    border-color: var(--primary-color);
}

.performer-item .rank {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 1rem;
}

.performer-item .name {
    font-weight: 600;
    color: var(--text-dark);
}

.performer-item .stat {
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* Charts and Graphs */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.chart-container {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.chart-container h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Bar Chart */
.bar-chart {
    height: 250px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.chart-bars {
    display: flex;
    gap: 3rem;
    align-items: flex-end;
    height: 250px; /* Fixed height for percentage calculations */
    width: 100%;
    justify-content: center;
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    max-width: 120px;
    height: 100%; /* Full height of chart-bars */
    justify-content: flex-end; /* Push bar to bottom */
}

.bar {
    width: 80px;
    min-height: 20px; /* Ensure bars are always visible */
    background: var(--primary-color);
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 168, 143, 0.2);
}

.bar:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 168, 143, 0.3);
}

.achievers-bar {
    background: linear-gradient(to top, #667eea, #764ba2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.connexus-bar {
    background: linear-gradient(to top, #f093fb, #f5576c);
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.2);
}

.bar::after {
    content: attr(data-value);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.bar-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    font-weight: 500;
    text-align: center;
}

/* Donut Charts */
.donut-chart-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.donut-chart {
    position: relative;
    width: 150px;
    height: 150px;
}

.donut-chart svg {
    width: 100%;
    height: 100%;
}

.donut-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.donut-name {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-top: 0.25rem;
}

/* Line Chart */
.line-chart {
    position: relative;
    height: 200px;
    padding: 1rem 0;
}

.chart-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.grid-line {
    height: 1px;
    background: var(--border-light);
    width: 100%;
}

.line-graph {
    width: 100%;
    height: calc(100% - 30px);
}

.line-graph polyline {
    filter: drop-shadow(0 4px 8px rgba(0, 168, 143, 0.2));
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-medium);
}

/* Horizontal Bar Chart */
.horizontal-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.h-bar-item {
    display: grid;
    grid-template-columns: 120px 1fr 80px;
    align-items: center;
    gap: 1rem;
}

.h-bar-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.h-bar-container {
    background: var(--bg-light);
    height: 28px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.h-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #667eea);
    border-radius: 14px;
    transition: width 0.6s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.h-bar-value {
    font-weight: 600;
    color: var(--text-medium);
    text-align: right;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-controls {
        grid-template-columns: 1fr;
    }

    .filter-controls {
        flex-direction: column;
    }

    .comparison-grid,
    .performers-grid,
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-table {
        font-size: 0.85rem;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 0.75rem 0.5rem;
    }

    .h-bar-item {
        grid-template-columns: 80px 1fr 60px;
        gap: 0.5rem;
    }

    .dashboard-content-wrapper {
        padding: 1.5rem;
    }

    .dashboard-header {
        padding: 2rem 1.5rem;
    }

    .dashboard-header h1 {
        font-size: 1.8rem;
    }
}

/* Registration View */
.registration-view {
    min-height: calc(100vh + 1px);
    flex-direction: column;
}

.registration-view.active {
    display: flex !important;
}

.registration-container {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e8eaed;
    padding: 2.75rem 2.5rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.registration-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.registration-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #111827;
}

.registration-header p {
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
}

/* Role Selection */
.role-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.role-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    padding: 2.25rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.role-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 168, 143, 0.12);
}

.role-icon {
    display: block;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1.5px solid rgba(0, 168, 143, 0.35);
    box-shadow: 0 0 10px rgba(0, 168, 143, 0.15);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    line-height: 0;
}

.role-card:hover .role-icon {
    border-color: rgba(0, 168, 143, 0.75);
    box-shadow: 0 0 18px rgba(0, 168, 143, 0.38);
}

/* Sheen pseudo-element — starts off-left, transitions back RTL on unhover */
.role-icon::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 0;
    width: 55%;
    height: 140%;
    background: linear-gradient(105deg, transparent 15%, rgba(255, 255, 255, 0.28) 50%, transparent 85%);
    transform: translateX(-200%);
    transition: transform 0.85s ease;
    pointer-events: none;
}

/* On hover: LTR animation, suppress the unhover transition */
.role-card:hover .role-icon::after {
    animation: role-sheen-ltr 0.85s ease-in-out forwards;
    transition: none;
}

@keyframes role-sheen-ltr {
    from { transform: translateX(-200%); }
    to   { transform: translateX(380%); }
}

.role-icon img,
.role-card-logo {
    width: 100%;
    height: auto;
    display: block;
}

.role-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: #111827;
}

.role-card p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

/* Platform Info */
.platform-info {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.platform-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #000;
}

.platform-info p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.benefits-list {
    display: grid;
    gap: 0.75rem;
}

.benefit {
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.5rem 0;
}

/* Registration Link Container */
.registration-link-container {
    text-align: center;
    margin-top: 2rem;
}

.registration-image-link {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.registration-image-link:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.registration-image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.registration-image:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Registration Placeholder (fallback when image doesn't exist) */
.registration-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.3;
}

.registration-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* =============================================
   JTI Achievers Registration Form Styles
   ============================================= */

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.step-indicator .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-indicator .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.step-indicator .step.active .step-number {
    background: var(--primary-color);
    color: white;
}

.step-indicator .step.completed .step-number {
    background: #10b981;
    color: white;
}

.step-indicator .step.completed .step-number::after {
    content: '✓';
    font-size: 1.2rem;
}

.step-indicator .step-label {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.step-indicator .step.active .step-label {
    color: var(--primary-color);
}

.step-indicator .step.completed .step-label {
    color: #10b981;
}

.step-indicator .step-line {
    width: 80px;
    height: 3px;
    background: #e5e7eb;
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
}

/* Registration Notice */
.reg-notice {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.reg-notice p {
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.reg-notice .warning-text {
    color: #dc2626;
    margin-top: 0.75rem;
    font-weight: 500;
}

/* Store Type Options */
.store-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.25rem 0;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.radio-option span {
    color: #374151;
    font-size: 0.95rem;
}

/* Form Fields Container */
.achievers-form-fields {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Form Group */
.achievers-registration .form-group {
    margin-bottom: 1.25rem;
}

.achievers-registration .form-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.achievers-registration .form-input,
.achievers-registration .form-select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    color: #111827;
    background: white;
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-image 0.2s ease;
}

.achievers-registration .form-input:focus,
.achievers-registration .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 143, 0.1);
}

/* Validation States */
.achievers-registration .form-input.valid,
.achievers-registration .form-select.valid {
    border-color: #10b981;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

.achievers-registration .form-input.invalid,
.achievers-registration .form-select.invalid {
    border-color: #ef4444;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='15' y1='9' x2='9' y2='15'%3E%3C/line%3E%3Cline x1='9' y1='9' x2='15' y2='15'%3E%3C/line%3E%3C/svg%3E");
}

.achievers-registration .form-input.invalid:focus,
.achievers-registration .form-select.invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Password field needs different positioning for toggle button */
.achievers-registration .password-input-wrapper .form-input {
    padding-right: 4.5rem;
    background-position: right 2.75rem center;
}

/* Validation Message */
.validation-message {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #ef4444;
    min-height: 1.2em;
}

.validation-message.success {
    color: #10b981;
}

/* Required Field Indicator */
.required {
    color: #ef4444;
    font-weight: 600;
}

/* Validation Summary Banner */
.validation-summary {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.validation-summary h4 {
    color: #dc2626;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.validation-summary ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #991b1b;
    font-size: 0.85rem;
}

.validation-summary li {
    margin: 0.25rem 0;
}

.achievers-registration .form-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #3b82f6;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.password-toggle:hover {
    opacity: 1;
}

/* Checkbox Option */
.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-option span {
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-option .link {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Help Link */
.help-link {
    text-align: left;
    font-size: 0.9rem;
    color: #374151;
}

.help-link .link {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
}

/* OTP Container */
.otp-container {
    text-align: center;
    padding: 2rem 1rem;
}

.otp-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.otp-message {
    color: #374151;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.otp-phone {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: white;
    transition: border-color 0.2s ease;
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.otp-resend {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Confirmation Container */
.confirmation-container {
    text-align: center;
    padding: 1rem;
}

.confirmation-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.confirmation-container h2 {
    font-size: 1.75rem;
    color: #111827;
    margin-bottom: 0.5rem;
}

.confirmation-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.confirmation-details {
    text-align: left;
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.confirmation-details h3 {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.confirmation-details h3:not(:first-child) {
    margin-top: 1.5rem;
}

/* API Preview */
.api-preview {
    background: #1f2937;
    border-radius: 8px;
    overflow: hidden;
}

.api-endpoint {
    background: #374151;
    color: #10b981;
    padding: 0.5rem 1rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    font-weight: 500;
}

.api-json {
    color: #f9fafb;
    padding: 1rem;
    margin: 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.confirmation-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.confirmation-notice p {
    color: #92400e;
    font-size: 0.9rem;
    margin: 0;
}

/* Gray Back Button (for registration forms) */
.btn-back {
    background: transparent;
    color: var(--text-medium);
    border: 1px solid var(--border-medium);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: auto;
}

.btn-back:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Platform Redirect Section - Styled like Hero */
.platform-access-hero {
    background: white;
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.platform-access-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    animation: fadeIn 0.8s ease-in-out;
}

.role-platform-access {
    animation: fadeIn 0.6s ease-out;
    text-align: center;
}

.platform-redirect-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 1rem 0;
}

@media (max-width: 768px) {
    .platform-redirect-container {
        max-width: 400px;
    }
}

.platform-redirect-container-admin {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.platform-redirect-link {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.platform-redirect-link:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.platform-redirect-image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.platform-redirect-image:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Image Carousel */
.carousel-container {
    max-width: 1600px;
    margin: 3rem auto;
    padding: 0 2rem;
    position: relative;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    height: 600px;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: none;
    height: 100%;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 6px;
}

/* FAQ Section */
.faq-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* FAQ Section when inside home page */
.page-content .faq-section {
    margin: 3rem auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 168, 143, 0.08);
    transform: translateY(-2px);
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 168, 143, 0.12);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-item.active .faq-question {
    color: var(--primary-color);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--text-medium);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-medium);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.faq-answer-content p {
    margin-bottom: 1rem;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* ── FAQ responsive ── */
@media (max-width: 768px) {
    /* page-content already provides horizontal padding */
    .faq-section {
        padding: 0;
    }

    .faq-section h2 {
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
    }

    /* Full-width search bar */
    .faq-search-bar {
        max-width: 100%;
        margin-bottom: 0.875rem;
    }

    /* Category pills scroll horizontally — no wrapping */
    .faq-categories {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 0.5rem;
        margin-bottom: 1.25rem;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .faq-categories::-webkit-scrollbar { display: none; }

    .faq-cat-pill {
        flex-shrink: 0;
        font-size: 0.8rem;
        padding: 0.45rem 0.875rem;
        min-height: 34px;
    }

    /* Remove lift-on-hover — wrong feel on touch */
    .faq-item:hover {
        transform: none;
    }

    .faq-item {
        margin-bottom: 0.75rem;
        border-radius: 10px;
    }

    /* Comfortable tap target */
    .faq-question {
        padding: 1rem 1.125rem;
        font-size: 0.975rem;
        gap: 0.75rem;
        min-height: 52px;
    }

    .faq-toggle {
        flex-shrink: 0;
        font-size: 1.375rem;
        width: 22px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .faq-answer-content {
        padding: 0 1.125rem 1.125rem;
        font-size: 0.9rem;
        line-height: 1.65;
    }

    /* Tighter still-need-help block */
    .faq-support-cta {
        margin-top: 1.5rem;
        padding: 1.25rem;
    }

    .faq-support-cta p {
        font-size: 0.925rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .faq-section h2 {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    .faq-cat-pill {
        font-size: 0.775rem;
        padding: 0.4rem 0.75rem;
    }

    .faq-question {
        padding: 0.875rem 1rem;
        font-size: 0.925rem;
    }

    .faq-answer-content {
        padding: 0 1rem 1rem;
        font-size: 0.875rem;
    }

    .faq-support-cta {
        padding: 1rem;
        margin-top: 1.25rem;
    }
}

/* Welcome Splash Screen */
.welcome-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-out;
    overflow: hidden;
}

.welcome-splash.active {
    opacity: 1;
}

.welcome-splash.fade-out {
    opacity: 0;
}

/* Scrollbar hiding handled in base.css with fade transitions */

.welcome-content {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.welcome-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    opacity: 0;
    transform: translateY(30px);
}

.welcome-title.animate {
    animation: slideUpFadeIn 0.5s ease-out forwards;
}

.welcome-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
}

.welcome-logo.animate {
    animation: slideUpFadeIn 0.5s ease-out 0.15s forwards;
}

.welcome-description {
    font-size: 1.15rem;
    color: var(--text-medium);
    line-height: 1.7;
    opacity: 0;
    transform: translateY(30px);
}

.welcome-description.animate {
    animation: slideUpFadeIn 0.5s ease-out 0.3s forwards;
}

@keyframes slideUpFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Larger Platform Access Button for Main Focal Point */
.platform-access-main .platform-redirect-image {
    max-width: 600px;
    width: 100%;
    transition: all 0.3s ease;
}

.platform-access-main .platform-redirect-container {
    max-width: 600px;
}

.platform-access-main .platform-redirect-container-admin {
    max-width: 1200px;
}

.platform-access-main .platform-redirect-container-admin .platform-redirect-image {
    max-width: 550px;
}

/* Responsive for Login and Registration */
@media (max-width: 768px) {
    .login-container, .registration-container {
        padding: 2rem;
    }

    .role-selection {
        grid-template-columns: 1fr;
    }

    .registration-header h1 {
        font-size: 2rem;
    }

    .placeholder-icon {
        font-size: 3.5rem;
    }

    .placeholder-text {
        font-size: 1.4rem;
    }

    .carousel {
        height: 300px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-btn.prev {
        left: 0.5rem;
    }

    .carousel-btn.next {
        right: 0.5rem;
    }

    .platform-access-hero h1 {
        font-size: 2rem;
    }

    .platform-redirect-container-admin {
        grid-template-columns: 1fr;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .welcome-logo {
        max-width: 350px;
    }

    .welcome-description {
        font-size: 1rem;
    }

    .platform-access-main .platform-redirect-image {
        max-width: 400px;
    }

    .platform-access-main .platform-redirect-container-admin .platform-redirect-image {
        max-width: 350px;
    }
}

/* Support Center Styles */
.support-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.support-info-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.support-info-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.support-detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.support-detail:last-child {
    border-bottom: none;
}

.support-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.support-value {
    font-size: 1rem;
    color: var(--text-dark);
}

.support-form-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.support-form-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.support-form-description {
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.support-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    /* ── Layout ── */
    .support-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Swap: form first, contact info below */
    .support-form-card { order: 1; }
    .support-info-card  { order: 2; }

    /* ── Form card — compact ── */
    .support-form-card {
        padding: 1.125rem;
        border-radius: 10px;
    }

    .support-form-card h2 {
        font-size: 1.15rem;
        margin-bottom: 0.35rem;
    }

    .support-form-description {
        font-size: 0.85rem;
        margin-bottom: 0.875rem;
        line-height: 1.4;
    }

    .support-form {
        gap: 0.75rem;
    }

    /* Collapse the two-column form row to single column */
    .support-form .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 0;
    }

    .support-form .form-group {
        margin-bottom: 0;
    }

    .support-form .form-label {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }

    .support-form .form-input {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    /* Shorter textarea — just tall enough for a few lines */
    .form-textarea {
        min-height: 80px;
        rows: 3;
    }

    /* Full-width submit */
    .support-form .btn-large {
        width: 100%;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
        text-align: center;
        justify-content: center;
    }

    /* Tighter context strip */
    .support-context-strip {
        font-size: 0.77rem;
        padding: 0.4rem 0.65rem;
        margin-bottom: 0.75rem;
        gap: 0.3rem;
    }

    /* ── Info card — compact ── */
    .support-info-card {
        padding: 1.125rem;
        border-radius: 10px;
    }

    .support-info-card h2 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .support-detail {
        padding: 0.625rem 0;
        gap: 0.25rem;
    }

    .support-label {
        font-size: 0.75rem;
    }

    .support-value {
        font-size: 0.9rem;
    }

    .support-faq-prompt {
        margin-top: 0.875rem;
        padding-top: 0.75rem;
    }
}

@media (max-width: 480px) {
    .support-form-card,
    .support-info-card {
        padding: 1rem;
        border-radius: 8px;
    }

    .support-form-card h2 {
        font-size: 1.05rem;
    }

    .form-textarea {
        min-height: 70px;
    }

    .support-form {
        gap: 0.6rem;
    }

    .support-form .form-row {
        gap: 0.6rem;
    }

    .support-form .btn-large {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }

    .support-context-badge {
        font-size: 0.72rem;
        padding: 0.1rem 0.45rem;
    }
}

/* Support: FAQ prompt inside info card */
.support-faq-prompt {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.875rem;
    color: var(--text-medium);
}
.support-faq-prompt p { margin-bottom: 0.6rem; }

/* Support: context strip */
.support-context-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.6rem 0.85rem;
    background: #f4faf9;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.82rem;
}
.support-context-label {
    font-weight: 600;
    color: var(--text-medium);
    margin-right: 0.15rem;
}
.support-context-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    background: var(--bg-gray);
    color: var(--text-dark);
    font-weight: 600;
}
.support-context-role  { background: #dbeafe; color: #1e40af; }
.support-context-store { background: #d1fae5; color: #065f46; }

/* FAQ: search bar */
.faq-search-bar {
    max-width: 480px;
    margin: 0 auto 1.25rem;
}

/* FAQ: category pills */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}
.faq-cat-pill {
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    border: 1px solid var(--border-medium);
    background: var(--bg-gray);
    color: var(--text-medium);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.faq-cat-pill:hover { background: #e8f5f3; border-color: var(--primary-color); color: var(--primary-color); }
.faq-cat-pill.active { background: var(--primary-color); border-color: var(--primary-color); color: white; }

/* FAQ: still-need-help CTA */
.faq-support-cta {
    text-align: center;
    margin-top: 2.5rem;
    padding: 1.75rem;
    background: #f4faf9;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}
.faq-support-cta p { margin-bottom: 0.85rem; font-size: 1rem; color: var(--text-medium); }

/* FAQ: inline support link inside no-results text */
.faq-support-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
    padding: 0;
}

/* Dark mode */
.dark-mode .support-context-strip { background: #252525; border-color: #444; }
.dark-mode .support-context-badge { background: #333; color: #d0d0d0; }
.dark-mode .support-context-role  { background: #1e3a5f; color: #93c5fd; }
.dark-mode .support-context-store { background: #0f2a1a; color: #6ee7b7; }
.dark-mode .support-faq-prompt { border-color: #444; }
.dark-mode .faq-categories { border-color: #333; }
.dark-mode .faq-cat-pill { background: #2a2a2a; border-color: #444; color: #aaa; }
.dark-mode .faq-cat-pill:hover { background: #1a332a; border-color: var(--primary-color); color: var(--primary-color); }
.dark-mode .faq-cat-pill.active { background: var(--primary-color); color: white; }
.dark-mode .faq-support-cta { background: #1e1e1e; border-color: #333; }

/* Platform Pages (Achievers & Connexus) Styles */
.platform-page-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.platform-access-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-access-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 32px rgba(0, 168, 143, 0.15);
}

.platform-access-card h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.3px;
}

.platform-access-card p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Newsletter Card with Expandable Items */
.platform-newsletter-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.platform-newsletter-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.newsletter-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-item {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.newsletter-item:hover {
    border-color: var(--border-medium);
}

.newsletter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    background: #fafafa;
    transition: background 0.2s ease;
}

.newsletter-header:hover {
    background: #f5f5f5;
}

.newsletter-date {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.newsletter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.newsletter-toggle {
    font-size: 1.5rem;
    color: var(--text-medium);
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.newsletter-item.active .newsletter-toggle {
    transform: rotate(45deg);
}

.newsletter-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.newsletter-content > div {
    overflow: hidden;
    min-height: 0;
    padding: 0 1.5rem;
    opacity: 0;
    transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
}

.newsletter-item.active .newsletter-content {
    grid-template-rows: 1fr;
}

.newsletter-item.active .newsletter-content > div {
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
    opacity: 1;
    transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease 0.1s;
}

.newsletter-content p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.newsletter-content p:last-child {
    margin-bottom: 0;
}

/* Integrated Features Card */
#achieversSection .platform-features-card {
    display: none !important;
}

.platform-features-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.platform-features-card h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    text-align: center;
}

.features-integrated-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.feature-integrated-item {
    padding: 2rem;
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: #fafafa;
    transition: background 0.2s ease;
}

.feature-integrated-item:nth-child(2n) {
    border-right: none;
}

.feature-integrated-item:nth-child(3),
.feature-integrated-item:nth-child(4) {
    border-bottom: none;
}

.feature-integrated-item:hover {
    background: #f5f5f5;
}

.feature-integrated-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-integrated-item p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 768px) {
    .platform-page-container {
        gap: 2rem;
    }

    .platform-access-card,
    .platform-newsletter-card,
    .platform-features-card {
        padding: 1.25rem;
        border-radius: 10px;
    }

    /* ── Latest Updates ── */
    .platform-newsletter-card h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .newsletter-list {
        gap: 0.75rem;
    }

    .newsletter-item {
        border-radius: 8px;
    }

    /* Comfortable tap target, tighter padding */
    .newsletter-header {
        padding: 0.875rem 1rem;
        min-height: 52px;
        align-items: center;
        gap: 0.75rem;
    }

    .newsletter-date {
        font-size: 0.775rem;
        margin-bottom: 0.25rem;
    }

    .newsletter-title {
        font-size: 0.975rem;
    }

    .newsletter-toggle {
        font-size: 1.375rem;
        margin-left: 0;
    }

    /* Fix: padding belongs on the inner div, not the grid container */
    .newsletter-content > div {
        padding: 0 1rem;
    }

    .newsletter-item.active .newsletter-content > div {
        padding: 0.5rem 1rem 1rem;
    }

    .newsletter-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* ── Features grid ── */
    .features-integrated-grid {
        grid-template-columns: 1fr;
    }

    .feature-integrated-item {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .feature-integrated-item:nth-child(2n) {
        border-right: none;
    }

    .feature-integrated-item:last-child {
        border-bottom: none;
    }
}

/* My Profile Page Styles */
.profile-page-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.profile-main-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.profile-main-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.profile-photo-section {
    padding: 3rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 168, 143, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
    border-bottom: 1px solid var(--border-light);
}

.profile-photo-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.profile-photo-container:hover .photo-overlay {
    opacity: 1;
}

.photo-upload-btn {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
    transition: all 0.3s ease;
}

.photo-upload-btn:hover {
    opacity: 0.8;
}

.photo-hint {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin: 0;
}

.profile-form-section {
    padding: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Profile store read-only list */
.profile-store-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.profile-store-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.profile-store-item.primary {
    background: #f0faf8;
    border-color: var(--primary-color);
}

.profile-store-name {
    flex: 1;
}

.profile-store-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    background: #d4f5ee;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    white-space: nowrap;
}

.profile-store-loading,
.profile-store-none {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.profile-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-secondary-profile,
.btn-primary-profile {
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    min-width: 140px;
}

.btn-secondary-profile {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-medium);
}

.btn-secondary-profile:hover {
    background: var(--bg-gray);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary-profile {
    background: var(--primary-color);
    color: white;
}

.btn-primary-profile:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 143, 0.3);
}

.profile-info-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 100px;
}

.profile-info-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

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

.info-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    font-weight: 500;
}

.info-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* ── Store Link Styles (Retailer Stores section) ─────────────────── */
.stores-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.stores-card-header h3 {
    margin: 0;
    border: none;
    padding: 0;
}

.stores-add-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.stores-add-row .form-input {
    flex: 1;
}

.store-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    margin-bottom: 0.6rem;
    background: #fafafa;
    gap: 1rem;
}

.store-link-item.store-link-primary {
    border-color: var(--primary-green, #4CAF50);
    background: #f0faf0;
}

.store-link-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.store-link-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-link-meta {
    font-size: 0.8rem;
    color: var(--text-medium);
}

.store-link-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--primary-green, #4CAF50);
    color: white;
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    margin-top: 0.15rem;
    width: fit-content;
}

.store-link-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-store-primary {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--primary-green, #4CAF50);
    background: transparent;
    color: var(--primary-green, #4CAF50);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.btn-store-primary:hover {
    background: var(--primary-green, #4CAF50);
    color: white;
}

.btn-store-remove {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #dc3545;
    background: transparent;
    color: #dc3545;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.btn-store-remove:hover {
    background: #dc3545;
    color: white;
}

.stores-loading,
.stores-empty,
.stores-error {
    font-size: 0.9rem;
    color: var(--text-medium);
    text-align: center;
    padding: 1rem 0;
}

.stores-error { color: #dc3545; }

/* dark mode */
body.dark-mode .store-link-item { background: #2a2a2a; border-color: #3a3a3a; }
body.dark-mode .store-link-item.store-link-primary { background: #1a2e1a; border-color: #4CAF50; }
body.dark-mode .store-link-name { color: #e0e0e0; }
body.dark-mode .stores-card-header h3 { color: #e0e0e0; }

@media (max-width: 680px) {
    .store-link-item { flex-direction: column; align-items: flex-start; }
    .store-link-actions { width: 100%; }
    .btn-store-primary, .btn-store-remove { flex: 1; text-align: center; }
}
/* ─────────────────────────────────────────────────────────────────── */

@media (max-width: 968px) {
    .profile-page-container {
        grid-template-columns: 1fr;
    }

    .profile-info-card {
        position: static;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .profile-actions {
        flex-direction: column-reverse;
    }

    .btn-secondary-profile,
    .btn-primary-profile {
        width: 100%;
    }
}

/* About JTI Page Styles */
.about-page-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-jti-access-card {
    background: #f8f9fa;
    border: none;
    padding: 4rem 2rem 4rem 2rem;
    text-align: center;
    margin-top: -3rem;
}

.about-jti-access-card h2 {
    font-size: 48px;
    margin-bottom: 3rem;
    color: var(--text-dark);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.about-jti-access-card p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
}

.about-jti-access-card .platform-redirect-link {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.about-jti-access-card .platform-redirect-link:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.about-jti-access-card .platform-redirect-image {
    max-width: 600px;
    width: 100%;
    display: block;
}

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-info-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-info-card p {
    color: var(--text-medium);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .about-page-container {
        gap: 1.5rem;
    }

    .about-jti-access-card {
        padding: 1.5rem 1rem;
        margin-top: 0;
    }

    /* Title: scale down, green strip, no subtitle equivalent */
    .about-jti-access-card h2 {
        font-size: 1.75rem;
        font-weight: 600;
        letter-spacing: 1px;
        margin-bottom: 0;
        padding-bottom: 1rem;
        border-bottom: 2px solid var(--primary-color);
    }

    .about-jti-access-card p {
        font-size: 0.9rem;
        margin-top: 1rem;
        margin-bottom: 1.5rem;
    }

    .about-jti-access-card .platform-redirect-image {
        max-width: 100%;
    }

    /* Remove lift on touch */
    .about-jti-access-card .platform-redirect-link:hover {
        transform: none;
    }

    .about-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-info-card {
        padding: 1.25rem;
    }

    .about-info-card:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .about-jti-access-card {
        padding: 1.125rem 0.875rem;
    }

    .about-jti-access-card h2 {
        font-size: 1.45rem;
        padding-bottom: 0.875rem;
    }

    .about-jti-access-card p {
        font-size: 0.875rem;
    }

    .about-info-card {
        padding: 1rem;
    }
}

/* ============================================
   TELESALES PAGE STYLES
   ============================================ */

.telesales-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Progress Indicator */
.telesales-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--primary-color);
    color: white;
}

.progress-step.completed .step-number {
    background: #4caf50;
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-line {
    width: 100px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 1rem;
}

.progress-step.completed ~ .progress-line {
    background: #4caf50;
}

/* Telesales Steps */
.telesales-step {
    display: none;
}

.telesales-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Telesales Card */
.telesales-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.telesales-card h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.telesales-card h2 i {
    color: var(--primary-color);
}

/* Telesales Form */
.telesales-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.required {
    color: #ef4444;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 143, 0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

/* Checkbox Group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Product Quantity Group */
.product-quantity-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-quantity-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.product-quantity-item:has(input[type="checkbox"]:checked) {
    background-color: #f0f9f7;
    border-color: var(--primary-color);
}

.product-quantity-item .checkbox-label {
    border: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.product-qty-input {
    width: 100px;
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
}

.product-qty-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.product-qty-input:not(:disabled) {
    border-color: var(--primary-color);
}

.product-qty-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 143, 0.1);
}

.checkbox-label:hover {
    border-color: var(--primary-color);
    background: rgba(0, 168, 143, 0.05);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked {
    accent-color: var(--primary-color);
}

/* Invoice Upload Area */
.invoice-upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.invoice-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(0, 168, 143, 0.05);
}

.upload-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-placeholder p {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.875rem;
    color: #666;
}

.upload-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.preview-info {
    text-align: center;
}

.preview-info p {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.btn-remove {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: #dc2626;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.form-actions button {
    flex: 1;
    max-width: 250px;
    border-radius: 8px !important;
}

/* Success Card */
.success-card {
    text-align: center;
}

.success-icon {
    margin-bottom: 1.5rem;
}

.success-icon i {
    font-size: 4rem;
    color: #4caf50;
}

/* Order Summary */
.order-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.order-summary h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.summary-item span {
    color: #666;
}

.summary-item strong {
    color: #333;
}

/* Confirmation Actions */
.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.confirmation-actions button {
    min-width: 200px;
}

/* ==========================================
   ORDER HISTORY SECTION
   ========================================== */

.telesales-orders-history {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.telesales-orders-history h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.telesales-orders-history h3 i {
    color: var(--primary-color);
}

.history-description {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.loading-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-medium);
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-medium);
}

.empty-state i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 0.5rem;
}

.empty-state small {
    font-size: 0.9rem;
    color: var(--text-light);
}

.orders-table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
}

.orders-history-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.orders-history-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid var(--border-light);
}

.orders-history-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orders-history-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    color: #555;
}

.orders-history-table tr:hover {
    background: #f9f9f9;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-verified {
    background: #d4edda;
    color: #155724;
}

.status-approved {
    background: #d1ecf1;
    color: #0c5460;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.btn-view-receipt {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-view-receipt:hover {
    background: #c8102e;
    transform: translateY(-1px);
}

.btn-view-receipt i {
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .telesales-progress {
        padding: 1rem;
    }
    
    .progress-line {
        width: 50px;
        margin: 0 0.5rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .telesales-card {
        padding: 1.5rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        max-width: 100%;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .confirmation-actions button {
        width: 100%;
    }
    
    .telesales-orders-history {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .telesales-orders-history h3 {
        font-size: 1.25rem;
    }
    
    .orders-history-table {
        font-size: 0.85rem;
    }
    
    .orders-history-table th,
    .orders-history-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .btn-view-receipt {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ==========================================
   TELESALES ADMIN SECTION
   ========================================== */

.telesales-admin-header {
    text-align: center;
    margin-bottom: 2rem;
}

.telesales-admin-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.telesales-admin-header p {
    color: #666;
    font-size: 1rem;
}

/* Stats Grid */
.telesales-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Filters */
.telesales-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.telesales-filters .filter-group {
    flex: 1;
    min-width: 200px;
}

/* Orders Table */
.telesales-table-container {
    overflow-x: auto;
}

.telesales-table {
    width: 100%;
    border-collapse: collapse;
}

.telesales-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.telesales-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.telesales-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.telesales-table tbody tr:hover {
    background-color: #f9f9f9;
}

.telesales-table td {
    padding: 1rem;
    color: #555;
    font-size: 0.95rem;
}

.telesales-table .status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.processed {
    background: #d4edda;
    color: #155724;
}

.status-badge.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.telesales-table .action-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.telesales-table .action-btn:hover {
    background: #00997f;
    transform: translateY(-2px);
}

/* Empty State */
.telesales-table .empty-state td {
    padding: 3rem;
    text-align: center;
}

/* Order Details Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.order-details-modal {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 2rem;
}

.order-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.order-info-section {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
}

.order-info-section.full-width {
    grid-column: 1 / -1;
}

.order-info-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #666;
}

.detail-value {
    color: #333;
    text-align: right;
}

.products-list {
    margin-top: 0.5rem;
}

.products-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.products-list li {
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
}

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

.invoice-preview {
    margin-top: 1rem;
    text-align: center;
}

.invoice-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.detail-notes {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    color: #555;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
}

.modal-footer .btn-primary,
.modal-footer .btn-danger,
.modal-footer .btn-secondary {
    width: auto;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.status-select {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .telesales-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .telesales-filters {
        flex-direction: column;
    }
    
    .telesales-table-container {
        overflow-x: auto;
    }
    
    .telesales-table {
        min-width: 800px;
    }
    
    .order-details-grid {
        grid-template-columns: 1fr;
    }
    
    .order-info-section.full-width {
        grid-column: 1;
    }
    
    .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modal-footer button {
        width: 100%;
    }
}

/* Telesales Orders Container */
.orders-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.orders-header {
    margin-bottom: 2rem;
}

.orders-header h2 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.orders-header h2 i {
    color: #007bff;
}

/* Revenue Dashboard Styles */
.revenue-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.revenue-stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.revenue-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.revenue-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.revenue-stat-content {
    flex: 1;
}

.revenue-stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.revenue-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.revenue-stat-percentage {
    font-size: 0.9rem;
    color: #28a745;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Brand Split Visualization */
.brand-split-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.brand-split-bar {
    display: flex;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.brand-split-winston,
.brand-split-camel {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease;
    position: relative;
}

.brand-split-winston {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.brand-split-camel {
    background: linear-gradient(135deg, #ffc107, #ff9800);
}

.brand-split-label {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.brand-split-legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #495057;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

/* Revenue Trend Chart */
.revenue-trend-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.revenue-trend-section h3 {
    margin-bottom: 1.5rem;
}

.revenue-trend-chart {
    min-height: 250px;
    margin-top: 1rem;
}

.trend-chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    height: 220px;
    padding: 1.5rem 0 1rem 0;
    margin-top: 1rem;
}

.trend-bar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.trend-bar-wrapper {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 1.5rem;
}

.trend-bar {
    width: 80%;
    background: linear-gradient(180deg, #28a745, #20c997);
    border-radius: 6px 6px 0 0;
    transition: height 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.5rem;
    cursor: pointer;
    position: relative;
    min-height: 30px;
}

.trend-bar:hover {
    opacity: 0.85;
}

.trend-bar-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.trend-bar-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    text-align: center;
}

.trend-bar-orders {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
}

/* Line Chart Styles */
.trend-line-chart {
    position: relative;
    padding: 1.5rem 0;
    margin-top: 1rem;
}

.trend-line-chart svg {
    display: block;
    margin: 0 auto;
}

.trend-point {
    cursor: pointer;
    transition: r 0.2s ease;
}

.trend-line-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    position: relative;
    padding: 0 10%;
}

.trend-line-label {
    position: absolute;
    transform: translateX(-50%);
    text-align: center;
}

.label-month {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

.label-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.15rem;
}

.label-orders {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Product Analytics Container */
.analytics-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.analytics-header {
    margin-bottom: 2rem;
}

.analytics-header h2 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.analytics-header h2 i {
    color: #007bff;
}

.product-analytics-table-container {
    overflow-x: auto;
}

.product-analytics-table {
    width: 100%;
    border-collapse: collapse;
}

.product-analytics-table thead {
    background: #f8f9fa;
}

.product-analytics-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-analytics-table th:first-child {
    width: 60px;
    text-align: center;
}

.product-analytics-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.product-analytics-table tbody tr:hover {
    background-color: #f8f9fa;
}

.product-analytics-table td {
    padding: 1rem;
    color: #495057;
}

.product-analytics-table td:first-child {
    text-align: center;
    font-weight: 600;
    color: #6c757d;
}

.product-analytics-table .product-name {
    font-weight: 600;
    color: #2c3e50;
}

.product-analytics-table .total-value {
    font-weight: 600;
    color: #28a745;
}

.popularity-bar-container {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.popularity-bar {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.product-analytics-empty {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.product-analytics-empty p {
    margin: 0;
    font-size: 1rem;
}

/* Responsive for Product Analytics */
@media (max-width: 768px) {
    .analytics-container {
        padding: 1rem;
        margin-bottom: 2rem;
        border-radius: 8px;
    }
    
    .analytics-header h2 {
        font-size: 1.25rem;
    }
    
    .orders-container {
        padding: 1rem;
        margin-bottom: 1.5rem;
        border-radius: 8px;
    }
    
    .orders-header h2 {
        font-size: 1.25rem;
    }
    
    /* Revenue Dashboard Mobile */
    .revenue-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .revenue-stat-card {
        padding: 1rem;
    }
    
    .revenue-stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .revenue-stat-value {
        font-size: 1.5rem;
    }
    
    .brand-split-section,
    .revenue-trend-section {
        padding: 1rem;
    }
    
    .brand-split-bar {
        height: 50px;
    }
    
    .brand-split-label {
        font-size: 0.9rem;
    }
    
    .trend-chart-bars {
        height: 180px;
        gap: 0.5rem;
    }
    
    .trend-bar-wrapper {
        height: 140px;
    }
    
    .trend-bar-value {
        font-size: 0.65rem;
    }
    
    .trend-bar-label {
        font-size: 0.75rem;
    }
    
    .trend-bar-orders {
        font-size: 0.7rem;
    }
    
    .product-analytics-table {
        font-size: 0.85rem;
    }
    
    .product-analytics-table th,
    .product-analytics-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .product-analytics-table th {
        font-size: 0.75rem;
    }
}

/* Spinner animation for receipt analysis */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   FORUM STYLES
   ======================================== */

.forum-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Forum Filters */
.forum-filters {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.form-select:hover {
    border-color: var(--primary-color);
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 143, 0.1);
}

/* Forum Posts */
.forum-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.forum-post {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.forum-post:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.post-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #666;
}

.post-author {
    font-weight: 600;
    color: var(--primary-color);
}

.post-badges {
    display: flex;
    gap: 0.5rem;
}

.post-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-badge.region {
    background: #e8f5f3;
    color: var(--primary-color);
}

.post-badge.category {
    background: #f0f0f0;
    color: #555;
}

.post-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-content-preview {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.post-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.post-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-stat svg {
    width: 18px;
    height: 18px;
}

.post-date {
    font-size: 0.85rem;
    color: #999;
}

/* Forum Modal */
.forum-modal {
    max-width: 700px;
}

.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 143, 0.1);
}

.character-count {
    text-align: right;
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.25rem;
}

/* Post Detail */
.forum-post-detail {
    padding: 1rem 0;
}

.post-content-full {
    padding: 1.5rem 0;
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1rem;
    white-space: pre-wrap;
}

/* Comments Section */
.comments-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.comments-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.comment {
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.comment-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.comment-date {
    font-size: 0.8rem;
    color: #999;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Empty State */
.forum-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.forum-empty svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.forum-empty h3 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.forum-empty p {
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .forum-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .forum-filters .btn {
        width: 100%;
    }
    
    .post-header {
        flex-direction: column;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* ========================================
   YOUR STORE STYLES (RETAILERS)
   ======================================== */

.your-store-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Profitability Banner */
.profitability-banner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #00a88f 0%, #00876f 100%);
    border-radius: 12px;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 168, 143, 0.2);
}

.banner-icon {
    font-size: 3rem;
}

.banner-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.banner-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Store Section */
.store-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.region-filter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.region-filter label {
    font-weight: 600;
    color: var(--text-secondary);
}

.form-select-small {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

/* Staff Table */
.staff-table-wrapper {
    overflow-x: auto;
}

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

.staff-table thead {
    background: #f8f9fa;
}

.staff-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid #e0e0e0;
}

.staff-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.staff-row {
    transition: background 0.2s;
}

.staff-row:hover {
    background: #f9f9f9;
}

.staff-row.pending {
    opacity: 0.7;
}

.staff-name-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.staff-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.staff-name {
    font-weight: 600;
    color: var(--text-primary);
}

.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.status-badge.status-active {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

/* Staff table — modules column */
.staff-modules-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.staff-modules-count {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 40px;
    white-space: nowrap;
}

.staff-modules-count.complete {
    color: var(--primary-color);
}

.staff-modules-bar-wrapper {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    min-width: 80px;
}

.staff-modules-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, #00d4aa 100%);
    border-radius: 3px;
    transition: width 0.4s ease-out;
}

.staff-pts {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.section-sub {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Training Mini Display in Table */
.training-mini {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.training-mini-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.training-mini-label {
    min-width: 70px;
    color: #666;
}

.training-mini-bar {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    min-width: 80px;
}

.training-mini-fill {
    height: 100%;
    background: linear-gradient(90deg, #00a88f 0%, #00d4aa 100%);
    transition: width 0.3s;
}

.training-mini-percent {
    min-width: 35px;
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

.submissions-count {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
}

.submissions-count.high {
    background: #d4edda;
    color: #155724;
}

.submissions-count.medium {
    background: #d1ecf1;
    color: #0c5460;
}

.submissions-count.low {
    background: #f8d7da;
    color: #721c24;
}

.last-active {
    color: #999;
    font-size: 0.9rem;
}

/* Training Cards */
.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.training-card {
    padding: 1.5rem;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.training-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 168, 143, 0.1);
}

.training-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.training-card h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.training-progress {
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00a88f 0%, #00d4aa 100%);
    transition: width 0.3s;
}

.progress-text {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.training-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Barometer Grid */
.barometer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.barometer-card {
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s;
}

.barometer-card.your-store {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 168, 143, 0.05) 0%, rgba(0, 168, 143, 0.1) 100%);
}

.barometer-card.regional-avg {
    border-color: #667eea;
}

.barometer-card.top-performer {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 215, 0, 0.1) 100%);
}

.barometer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.barometer-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.rank-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background: #f0f0f0;
    font-size: 0.85rem;
    font-weight: 600;
}

.barometer-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.stat-value.positive {
    color: #28a745;
}

/* Stories Grid */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.story-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: white;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.story-card.featured {
    border: 2px solid #ffd700;
}

.story-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.story-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: relative;
}

.story-card > div:first-child {
    position: relative;
}

.story-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.story-excerpt {
    padding: 0 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.story-author {
    padding: 0.5rem 1.5rem;
    font-style: italic;
    color: #999;
    font-size: 0.9rem;
}

.btn-story-read {
    margin: auto 1.5rem 1.5rem;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-story-read:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .profitability-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .staff-table {
        font-size: 0.85rem;
    }
    
    .staff-table th,
    .staff-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .training-mini {
        font-size: 0.8rem;
    }
    
    .barometer-grid,
    .stories-grid,
    .training-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   TRIP STORY SUBMISSION (RETAILERS)
   ======================================== */

/* Trip Story Banner */
.trip-story-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    flex-wrap: wrap;
}

.trip-story-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.trip-story-icon {
    font-size: 3.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.trip-story-text h3 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 1.5rem;
}

.trip-story-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.btn-submit-story {
    padding: 1rem 2rem;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-submit-story:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
    margin: 0.5rem 0;
}

.rating-stars .star {
    cursor: pointer;
    color: #ddd;
    transition: all 0.2s;
    user-select: none;
}

.rating-stars .star:hover,
.rating-stars .star.active {
    color: #ffd700;
    transform: scale(1.1);
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

/* Reward Info Box */
.reward-info-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.reward-info-box strong {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.reward-info-box ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.reward-info-box li {
    padding: 0.35rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Form Hint */
.form-hint {
    display: block;
    margin-top: 0.5rem;
    color: #999;
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .trip-story-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .trip-story-content {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-submit-story {
        width: 100%;
    }
    
    .rating-stars {
        justify-content: center;
    }
}

/* ========================================
   ACTIVE CAMPAIGNS & PRIZES
   ======================================== */

.active-campaigns-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.campaigns-prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.prize-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    position: relative;
    border: 2px solid #f0f0f0;
}

.prize-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.prize-card.featured {
    border-color: #ffd700;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.prize-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #ffd700;
    color: #333;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.prize-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.prize-card h4 {
    margin: 0 0 0.35rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.prize-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.prize-deadline {
    padding: 0.35rem 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
}

/* ========================================
   WINNINGS STORIES (CASHIERS)
   ======================================== */

.winnings-stories-section {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
}

.section-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-share-story {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-share-story:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 143, 0.3);
}

.winnings-stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.winnings-story-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s;
}

.winnings-story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.story-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.story-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.story-meta {
    flex: 1;
}

.story-meta h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.story-location {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.story-prize-badge {
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.story-image-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-icon {
    font-size: 4rem;
    opacity: 0.5;
}

.story-content {
    padding: 1.5rem;
}

.story-content h5 {
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.4;
}

.story-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.story-date {
    color: #999;
    font-size: 0.85rem;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .campaigns-prizes-grid,
    .winnings-stories-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header-with-action {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-share-story {
        width: 100%;
    }
    
    .winnings-stories-section {
        padding: 1.5rem;
    }
}

/* ========================================
   PERFORMANCE SECTION (CASHIERS)
   ======================================== */

.performance-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.performance-stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.performance-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.performance-stat-card .stat-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.performance-stat-card .stat-content h3 {
    margin: 0;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.performance-stat-card .stat-content p {
    margin: 0.25rem 0 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.performance-comparison-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.performance-comparison-section::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color) 30%, rgba(102, 126, 234, 0.6) 70%, transparent);
}

.comparison-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    text-align: center;
}

.comparison-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 0.875rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #05c99a 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(6, 176, 133, 0.25);
}

.comparison-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.comparison-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.comparison-header span {
    font-weight: 600;
    color: var(--primary-color);
}

.barometer-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.barometer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.barometer-item:hover {
    background: #f8f9fa;
}

.barometer-item.current-user {
    background: linear-gradient(135deg, #e8f5f3 0%, #f0f9f7 100%);
    border: 2px solid var(--primary-color);
    font-weight: 600;
}

.barometer-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: center;
}

.barometer-item.current-user .barometer-rank {
    color: var(--primary-color);
}

.barometer-rank.top-3 {
    color: #ffd700;
}

.barometer-info {
    flex: 1;
    min-width: 0;
}
.barometer-active-staff {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.barometer-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.barometer-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.barometer-bar-wrapper {
    width: 100%;
    background: #e9ecef;
    border-radius: 20px;
    height: 24px;
    overflow: hidden;
    position: relative;
}

.barometer-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, #00d4aa 100%);
    border-radius: 20px;
    transition: width 0.8s ease-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.75rem;
}

.barometer-bar.top-performer {
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
}

.barometer-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

.barometer-sales-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-width: 80px;
    text-align: right;
}

.performance-tips-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
}

.performance-tips-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.tips-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    /* ── Overview stats ── */
    .performance-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .performance-stat-card {
        padding: 0.875rem;
        gap: 0.625rem;
        border-radius: 10px;
    }

    /* Remove hover lift on touch */
    .performance-stat-card:hover {
        transform: none;
    }

    .performance-stat-card .stat-icon {
        font-size: 1.75rem;
    }

    .performance-stat-card .stat-content h3 {
        font-size: 1.35rem;
    }

    .performance-stat-card .stat-content p {
        font-size: 0.78rem;
        line-height: 1.25;
    }

    /* ── Comparison sections ── */
    .performance-comparison-section {
        padding: 1.125rem;
        margin-bottom: 2rem;
        border-radius: 10px;
    }

    .performance-comparison-section::after {
        bottom: -1rem;
        width: 60%;
    }

    .comparison-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .comparison-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 0.625rem;
        border-radius: 11px;
    }

    .comparison-icon svg {
        width: 24px;
        height: 24px;
    }

    .comparison-header h2 {
        font-size: 1.15rem;
    }

    .comparison-header p {
        font-size: 0.85rem;
    }

    /* ── Barometer (leaderboard rows) ── */
    .barometer-container {
        gap: 0.875rem;
    }

    .barometer-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        padding: 0.75rem;
        position: relative;
    }

    /* Top row: rank + name on one line */
    .barometer-rank {
        position: absolute;
        top: 0.75rem;
        left: 0.75rem;
        font-size: 1.05rem;
        min-width: 28px;
        text-align: left;
    }

    .barometer-info {
        padding-left: 2rem;
    }

    .barometer-name {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .barometer-badge {
        font-size: 0.68rem;
        padding: 0.1rem 0.4rem;
    }

    .barometer-bar-wrapper {
        height: 18px;
    }

    .barometer-value {
        font-size: 0.75rem;
    }

    .barometer-sales-count {
        font-size: 0.78rem;
        text-align: left;
        min-width: 0;
        margin-top: 0.1rem;
    }

    /* ── Tips card ── */
    .performance-tips-card {
        padding: 1.125rem;
        border-radius: 10px;
        border-left-width: 3px;
    }

    .performance-tips-card h3 {
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
    }

    .tips-list li {
        padding: 0.5rem 0 0.5rem 1.5rem;
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .tips-list li::before {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* On very small screens single-column stats fit better */
    .performance-overview {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }

    .performance-stat-card {
        padding: 0.75rem 0.875rem;
    }

    .performance-stat-card .stat-icon {
        font-size: 1.5rem;
    }

    .performance-stat-card .stat-content h3 {
        font-size: 1.25rem;
    }

    .performance-comparison-section {
        padding: 1rem 0.875rem;
    }

    .comparison-header h2 {
        font-size: 1.05rem;
    }

    .performance-tips-card {
        padding: 1rem 0.875rem;
    }
}

/* ----------------------------------------
   MODULE PROGRESS CARDS
   ---------------------------------------- */

.perf-module-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.perf-module-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    background: white;
    border: 2px solid #e9ecef;
    transition: all 0.2s;
}

.perf-module-card.completed {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f0faf8 0%, #ffffff 100%);
}

.perf-module-card.in-progress {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fffdf0 0%, #ffffff 100%);
}

.perf-module-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.perf-module-card.completed .perf-module-number {
    background: var(--primary-color);
    color: white;
}

.perf-module-card.in-progress .perf-module-number {
    background: #ffc107;
    color: white;
}

.perf-module-info {
    flex: 1;
    min-width: 0;
}

.perf-module-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.perf-module-status-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.perf-module-card.completed .perf-module-status-label {
    color: var(--primary-color);
    font-weight: 600;
}

.perf-module-card.in-progress .perf-module-status-label {
    color: #d4a100;
    font-weight: 600;
}

.perf-module-time {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}
body.dark-mode .perf-module-time {
    color: #cbd5e1;
}

.perf-module-pts {
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-width: 120px;
    text-align: right;
    white-space: nowrap;
}

.perf-module-card.completed .perf-module-pts {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .perf-module-list {
        gap: 0.5rem;
    }

    .perf-module-card {
        padding: 0.75rem 0.875rem;
        gap: 0.75rem;
        align-items: center;
        border-width: 1px;
        border-radius: 8px;
    }

    /* Remove the awkward 52px nudge — pts now sit on the right inline */
    .perf-module-number {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .perf-module-title {
        font-size: 0.875rem;
        margin-bottom: 0.1rem;
    }

    .perf-module-status-label {
        font-size: 0.72rem;
    }

    .perf-module-pts {
        font-size: 0.75rem;
        min-width: 0;
        text-align: right;
        flex-shrink: 0;
    }
}

/* Achievers updated logo has a near-square source; crop it to the
   original wide (8:3) button footprint so buttons keep their size. */
img[src*="jti-achievers-logo-updated"].platform-redirect-image,
img[src*="jti-achievers-logo-updated"].comparison-logo {
    aspect-ratio: 8 / 3;
    height: auto;
    object-fit: cover;
    object-position: center;
}

/* ============================================================
   Platform Membership (JTI-Connect vs JTI Achievers)
   ============================================================ */
.dashboard-section-sub {
    color: #6b7280;
    font-size: 0.85rem;
    margin: -0.5rem 0 1rem;
}
.membership-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
@media (max-width: 900px) {
    .membership-grid { grid-template-columns: 1fr; }
}
.membership-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-top: 4px solid #00a88f;
}
.membership-achievers { border-top-color: #667eea; }
.membership-header {
    margin-bottom: 1.1rem;
}
.membership-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1f2937;
}
.membership-subtitle {
    color: #6b7280;
    font-size: 0.8rem;
}
.membership-body {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.membership-stats {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.membership-stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #f1f3f8;
}
.membership-stat:last-child { border-bottom: none; }
.membership-stat .ms-label {
    color: #6b7280;
    font-size: 0.85rem;
}
.membership-stat .ms-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    transition: color 0.15s;
}
.membership-stat .ms-value[style*="cursor:pointer"]:hover,
.membership-stat .ms-value[style*="cursor: pointer"]:hover {
    color: #00a88f;
    text-decoration: underline;
}
.membership-donut-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    margin-left: auto;
}
.membership-donut { width: 100%; height: 100%; }
.membership-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.membership-donut-center .md-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.1;
}
.membership-donut-center .md-label {
    font-size: 0.58rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

body.dark-mode .membership-card { background: #1f2937; }
body.dark-mode .membership-card .ms-value,
body.dark-mode .membership-card .md-value,
body.dark-mode .membership-card h3 { color: #f3f4f6; }
body.dark-mode .membership-stat { border-bottom-color: #374151; }

/* ============================================================
   Training Completion section
   ============================================================ */
.training-kpi-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.training-kpi-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-top: 4px solid #667eea;
    min-width: 180px;
}
.training-kpi-card .tk-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.1;
}
.training-kpi-card .tk-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-top: 0.3rem;
}
.training-kpi-card .tk-sub {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.15rem;
}
.training-module-row {
    background: #fff;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem 1.5rem;
    align-items: center;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.tm-row-link {
    cursor: pointer;
}
.tm-row-link:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

/* Make the training-completion KPI tile feel clickable when wired up. */
.training-kpi-card[style*="cursor: pointer"]:hover,
.training-kpi-card[style*="cursor:pointer"]:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.training-module-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}
.training-module-meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.2rem;
}
.training-module-counts {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}
.tm-stat-sep {
    color: #d1d5db;
    font-size: 0.85rem;
}
.tm-stat-btn {
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    padding: 0.2rem 0.6rem;
    transition: background 0.15s, color 0.15s;
}
.tm-started {
    color: #667eea;
    background: #eff2ff;
}
.tm-started:hover { background: #667eea; color: #fff; }
.tm-completed {
    color: #00a88f;
    background: #ecfdf5;
}
.tm-completed:hover { background: #00a88f; color: #fff; }
.training-module-bar-wrap {
    grid-column: 1 / -1;
    background: #f3f4f6;
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
}
.training-module-bar {
    height: 100%;
    background: linear-gradient(90deg, #00a88f, #667eea);
    border-radius: 6px;
    transition: width 0.5s ease;
}
body.dark-mode .training-kpi-card,
body.dark-mode .training-module-row { background: #1f2937; }
body.dark-mode .training-module-title,
body.dark-mode .training-kpi-card .tk-value { color: #f3f4f6; }
body.dark-mode .training-module-bar-wrap { background: #374151; }
body.dark-mode .tm-started  { background: #312e81; color: #a5b4fc; }
body.dark-mode .tm-completed { background: #064e3b; color: #6ee7b7; }

/* ── Redeem Points button (centered call-to-action on profile card) ──── */
.btn-redeem {
    padding: 0.85rem 2.4rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    background: linear-gradient(135deg, #00a88f 0%, #0d8a76 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,168,143,0.32);
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
    /* Subtle attention-drawing pulse — fades the glow in/out without
       moving the button so it doesn't feel jittery. */
    animation: redeemPulse 2.4s ease-in-out infinite;
}
.btn-redeem:hover:not(:disabled) {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,168,143,0.45);
}
.btn-redeem:disabled,
.btn-redeem.btn-locked {
    background: #d1d5db;
    color: #6b7280;
    cursor: default;
    transform: none;
    box-shadow: none;
    animation: none;
}
@keyframes redeemPulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(0,168,143,0.32); }
    50%      { box-shadow: 0 6px 22px rgba(0,168,143,0.55); }
}
@media (prefers-reduced-motion: reduce) {
    .btn-redeem { animation: none; }
}
.redeem-points-tile {
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: center;
}
.redeem-tile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.redeem-tile-value {
    font-weight: 700;
    font-size: 1rem;
    color: #00a88f;
}
body.dark-mode .redeem-points-tile { border-top-color: #374151; }
body.dark-mode .redeem-tile-value { color: #34d399; }

/* ── Redeem modal shell ───────────────────────────────────────────────── */
.redeem-modal { align-items: center; justify-content: center; padding: 1.5rem; }
.redeem-modal-box {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    overflow: hidden;
}
.redeem-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}
.redeem-modal-header h2 { margin: 0; font-size: 1.15rem; color: #1a1a2e; }
.redeem-modal-body { padding: 1.5rem; }
.redeem-modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

/* ── Modal body copy ─────────────────────────────────────────────────── */
.redeem-icon {
    text-align: center;
    margin-bottom: 0.75rem;
    line-height: 0;
}
.redeem-icon .flame-icon {
    width: 3rem;
    height: 3rem;
    display: inline-block;
}
.redeem-points-display {
    text-align: center;
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
}
.redeem-body-text {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.redeem-confirm-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
}
.redeem-confirm-label { color: #6b7280; }
.redeem-confirm-value { font-weight: 600; color: #1a1a2e; }
.redeem-disclaimer {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #9ca3af;
    line-height: 1.5;
}

/* ── Success state ───────────────────────────────────────────────────── */
.redeem-success-body { text-align: center; }
.redeem-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00a88f 0%, #0d8a76 100%);
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.redeem-success-footer { justify-content: center; }

/* ── Modal action buttons ────────────────────────────────────────────── */
.btn-redeem-primary {
    padding: 0.55rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, #00a88f 0%, #0d8a76 100%);
    color: #fff;
    transition: opacity 0.2s;
}
.btn-redeem-primary:hover:not(:disabled) { opacity: 0.88; }
.btn-redeem-primary:disabled { opacity: 0.5; cursor: default; }
.btn-redeem-cancel {
    padding: 0.55rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    color: #374151;
    transition: background 0.15s;
}
.btn-redeem-cancel:hover { background: #f9fafb; }

/* ── Dark mode overrides ─────────────────────────────────────────────── */
body.dark-mode .redeem-modal-box { background: #1f2937; }
body.dark-mode .redeem-modal-header { border-bottom-color: #374151; }
body.dark-mode .redeem-modal-header h2 { color: #f3f4f6; }
body.dark-mode .redeem-modal-footer { background: #111827; border-top-color: #374151; }
body.dark-mode .redeem-body-text { color: #9ca3af; }
body.dark-mode .redeem-confirm-summary { border-bottom-color: #374151; }
body.dark-mode .redeem-confirm-value { color: #f3f4f6; }
body.dark-mode .redeem-points-display { color: #f3f4f6; }
body.dark-mode .btn-redeem-cancel { background: #374151; border-color: #4b5563; color: #e5e7eb; }
body.dark-mode .btn-redeem-cancel:hover { background: #4b5563; }

/* ── Recent Redemptions table ────────────────────────────────────────── */
.redemptions-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}
.redemptions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.redemptions-table thead tr {
    background: #f9fafb;
}
.redemptions-table th {
    padding: 0.65rem 0.9rem;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}
.redemptions-table td {
    padding: 0.7rem 0.9rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}
.redemptions-table tbody tr:last-child td { border-bottom: none; }
.redemptions-table tbody tr:hover td { background: #f9fafb; }
.redemptions-row-link { cursor: pointer; }
.redemptions-row-link:hover td { background: #f0fdf4; }

.redemptions-empty {
    text-align: center;
    color: #9ca3af;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

/* Status badges */
.rdm-status {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: capitalize;
}
.rdm-status-pending   { background: #fef3c7; color: #92400e; }
.rdm-status-completed { background: #d1fae5; color: #065f46; }
.rdm-status-reversed  { background: #fee2e2; color: #991b1b; }

/* Reference cell */
.rdm-ref {
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 0.78rem;
    color: #6b7280;
}

/* Dark mode — redemptions table */
body.dark-mode .redemptions-table-wrap { border-color: #374151; }
body.dark-mode .redemptions-table thead tr { background: #1f2937; }
body.dark-mode .redemptions-table th { color: #9ca3af; border-bottom-color: #374151; }
body.dark-mode .redemptions-table td { color: #d1d5db; border-bottom-color: #1f2937; }
body.dark-mode .redemptions-table tbody tr:hover td { background: #1f2937; }
body.dark-mode .redemptions-empty { color: #6b7280; }
body.dark-mode .rdm-ref { color: #9ca3af; }
body.dark-mode .rdm-status-pending   { background: #451a03; color: #fcd34d; }
body.dark-mode .rdm-status-completed { background: #022c22; color: #6ee7b7; }
body.dark-mode .rdm-status-reversed  { background: #450a0a; color: #fca5a5; }

/* =====================================================================
   Drill-down drawer (Surface A) + Admin Profile modal (Surface B)
   ===================================================================== */

/* Affordance: any element that opens a drill-down */
.is-drillable { cursor: pointer; transition: transform 0.12s, box-shadow 0.12s; }
.is-drillable:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }

/* ── Drawer ────────────────────────────────────────────────────────── */
.drill-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 4000;
}
.drill-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(880px, 95vw);
    background: #fff;
    box-shadow: -8px 0 24px rgba(0,0,0,0.12);
    z-index: 4001;
    display: flex; flex-direction: column;
    animation: drillSlideIn 0.18s ease-out;
}
@keyframes drillSlideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.drill-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}
.drill-header h2 { margin: 0; font-size: 1.15rem; color: #111827; }
.drill-close {
    background: none; border: none; font-size: 1.6rem; line-height: 1;
    color: #6b7280; cursor: pointer; padding: 0 0.4rem;
}
.drill-close:hover { color: #111827; }

.drill-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 0.6rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}
.drill-search {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db; border-radius: 8px;
    font-size: 0.875rem;
}
.drill-toolbar-right { display: flex; align-items: center; gap: 0.75rem; }
.drill-total { font-size: 0.825rem; color: #6b7280; }
.btn-drill-csv {
    padding: 0.45rem 0.85rem;
    font-size: 0.825rem; font-weight: 500;
    background: linear-gradient(135deg, #00a88f 0%, #0d8a76 100%);
    color: #fff; border: none; border-radius: 8px; cursor: pointer;
    transition: opacity 0.15s;
}
.btn-drill-csv:hover:not(:disabled) { opacity: 0.88; }
.btn-drill-csv:disabled { opacity: 0.5; cursor: default; }

.drill-table-wrap {
    flex: 1; overflow: auto;
    padding: 0 1.25rem;
}
.drill-table {
    width: 100%; border-collapse: collapse;
    font-size: 0.85rem;
}
.drill-table thead th {
    position: sticky; top: 0; background: #f9fafb;
    padding: 0.6rem 0.5rem; text-align: left;
    font-weight: 600; color: #6b7280; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.04em;
    border-bottom: 1px solid #e5e7eb;
    user-select: none;
}
.drill-th.sort-asc::after  { content: ' ↑'; opacity: 0.7; }
.drill-th.sort-desc::after { content: ' ↓'; opacity: 0.7; }
.drill-table tbody td {
    padding: 0.55rem 0.5rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}
.drill-row-link { cursor: pointer; }
.drill-row-link:hover td { background: #f0fdf4; }
.drill-empty {
    text-align: center; color: #9ca3af; padding: 2rem 1rem; font-size: 0.9rem;
}
.drill-error { color: #b91c1c; }

.drill-footer {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    padding: 0.6rem 1.25rem;
    border-top: 1px solid #e5e7eb;
}
.drill-page-btn {
    padding: 0.35rem 0.85rem; font-size: 0.825rem;
    background: #fff; border: 1px solid #d1d5db; border-radius: 6px;
    cursor: pointer; color: #374151;
}
.drill-page-btn:hover:not(:disabled) { background: #f9fafb; }
.drill-page-btn:disabled { opacity: 0.45; cursor: default; }
.drill-page-info { font-size: 0.825rem; color: #6b7280; }

/* ── Admin profile modal (Surface B) ──────────────────────────────── */
.ap-modal {
    position: fixed; inset: 0; z-index: 4100;
    background: rgba(0,0,0,0.45);
    align-items: center; justify-content: center;
}
.ap-modal-box {
    width: min(960px, 95vw); height: min(85vh, 820px);
    background: #fff; border-radius: 14px;
    display: flex; flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.ap-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}
.ap-header h2 { margin: 0; font-size: 1.25rem; color: #111827; }
.ap-subtitle { margin: 0.15rem 0 0; font-size: 0.825rem; color: #6b7280; }
.ap-close {
    background: none; border: none; font-size: 1.6rem; line-height: 1;
    color: #6b7280; cursor: pointer; padding: 0 0.4rem;
}
.ap-close:hover { color: #111827; }

.ap-tabs {
    display: flex; gap: 0.25rem;
    padding: 0 1.25rem; background: #fff;
    border-bottom: 1px solid #e5e7eb;
}
.ap-tab {
    padding: 0.65rem 1rem;
    background: none; border: none; cursor: pointer;
    font-size: 0.875rem; color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.ap-tab:hover { color: #111827; }
.ap-tab.active { color: #0d8a76; border-bottom-color: #0d8a76; font-weight: 600; }

.ap-content {
    flex: 1; overflow: auto;
    padding: 1.25rem;
}

.ap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.6rem 1.5rem;
}
.ap-row {
    display: flex; flex-direction: column; gap: 0.15rem;
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid #f3f4f6;
}
.ap-row-label { font-size: 0.72rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.04em; }
.ap-row-value { font-size: 0.9rem; color: #111827; }

.ap-table {
    width: 100%; border-collapse: collapse;
    font-size: 0.85rem;
}
.ap-table th {
    text-align: left; padding: 0.5rem 0.6rem;
    background: #f9fafb;
    font-weight: 600; color: #6b7280;
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em;
    border-bottom: 1px solid #e5e7eb;
}
.ap-table td {
    padding: 0.55rem 0.6rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}
.ap-mono { font-family: ui-monospace, 'Cascadia Code', monospace; font-size: 0.78rem; }
.ap-tag-ok  { color: #047857; font-weight: 700; }
.ap-tag-bad { color: #b91c1c; font-weight: 700; }
.ap-empty { color: #9ca3af; text-align: center; padding: 2rem; }
.ap-error { color: #b91c1c; padding: 1rem; }

.ap-progress {
    display: inline-block; vertical-align: middle;
    width: 80px; height: 8px;
    background: #e5e7eb; border-radius: 4px; overflow: hidden;
    margin-right: 0.4rem;
}
.ap-progress-bar { height: 100%; background: linear-gradient(90deg, #00a88f, #0d8a76); }
.ap-progress-pct { font-size: 0.78rem; color: #6b7280; }

/* ── Dark mode ───────────────────────────────────────────────────── */
body.dark-mode .drill-drawer       { background: #111827; box-shadow: -8px 0 24px rgba(0,0,0,0.6); }
body.dark-mode .drill-header       { border-bottom-color: #1f2937; }
body.dark-mode .drill-header h2    { color: #f3f4f6; }
body.dark-mode .drill-toolbar      { border-bottom-color: #1f2937; }
body.dark-mode .drill-search       { background: #1f2937; border-color: #374151; color: #e5e7eb; }
body.dark-mode .drill-table thead th { background: #1f2937; color: #9ca3af; border-bottom-color: #374151; }
body.dark-mode .drill-table tbody td { color: #d1d5db; border-bottom-color: #1f2937; }
body.dark-mode .drill-row-link:hover td { background: #064e3b; }
body.dark-mode .drill-footer       { border-top-color: #1f2937; }
body.dark-mode .drill-page-btn     { background: #1f2937; border-color: #374151; color: #e5e7eb; }
body.dark-mode .drill-page-btn:hover:not(:disabled) { background: #374151; }

body.dark-mode .ap-modal-box       { background: #111827; }
body.dark-mode .ap-header          { border-bottom-color: #1f2937; }
body.dark-mode .ap-header h2       { color: #f3f4f6; }
body.dark-mode .ap-subtitle        { color: #9ca3af; }
body.dark-mode .ap-tabs            { background: #111827; border-bottom-color: #1f2937; }
body.dark-mode .ap-tab             { color: #9ca3af; }
body.dark-mode .ap-tab:hover       { color: #f3f4f6; }
body.dark-mode .ap-tab.active      { color: #00d4af; border-bottom-color: #00d4af; }
body.dark-mode .ap-row             { border-bottom-color: #1f2937; }
body.dark-mode .ap-row-label       { color: #9ca3af; }
body.dark-mode .ap-row-value       { color: #f3f4f6; }
body.dark-mode .ap-table th        { background: #1f2937; color: #9ca3af; border-bottom-color: #374151; }
body.dark-mode .ap-table td        { color: #d1d5db; border-bottom-color: #1f2937; }
body.dark-mode .ap-progress        { background: #1f2937; }

/* ── My Rewards (cashier voucher picker) ────────────────────────────── */
.my-rewards-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.my-rewards-balance-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef0f5;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.my-rewards-balance-lifetime {
    background: linear-gradient(135deg, #f7f6ff 0%, #eef2ff 100%);
}
.mr-balance-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #6b7280);
    font-weight: 600;
}
.mr-balance-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-primary, #111827);
}

.my-rewards-category {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid #eef0f5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.mr-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}
.mr-cat-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary, #111827);
}
.mr-cat-sub {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
}
.mr-cat-min {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.5rem;
    font-size: 0.72rem;
    background: #f3f4f6;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 600;
}
.mr-cat-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.mr-voucher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 1rem;
    padding: 0.25rem 0 0.75rem;
}

.mr-voucher-circle {
    aspect-ratio: 1;
    border-radius: 50%;
    background: #fafafa;
    border: 2px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.72rem;
    text-align: center;
    line-height: 1.1;
    padding: 0.4rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.mr-voucher-circle.is-placeholder::before {
    content: "+";
    font-size: 1.6rem;
    font-weight: 300;
    color: #c4c8d2;
}

.mr-voucher-circle.is-real {
    border-style: solid;
    cursor: pointer;
    background: #fff;
}
.mr-voucher-circle.is-real:hover {
    border-color: var(--primary-color, #d4172b);
    background: #fff7f8;
}

.mr-cat-empty {
    margin: 0.5rem 0 0;
    font-size: 0.83rem;
    color: #9ca3af;
    font-style: italic;
}

.mr-footnote {
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    color: var(--text-secondary, #6b7280);
}

/* Dark mode */
body.dark-mode .my-rewards-balance-card,
body.dark-mode .my-rewards-category { background: #1f2937; border-color: #374151; }
body.dark-mode .my-rewards-balance-lifetime { background: linear-gradient(135deg, #1f2937 0%, #312e81 100%); }
body.dark-mode .mr-balance-value,
body.dark-mode .mr-cat-title { color: #f3f4f6; }
body.dark-mode .mr-balance-label,
body.dark-mode .mr-cat-sub,
body.dark-mode .mr-footnote { color: #9ca3af; }
body.dark-mode .mr-cat-min { background: #374151; color: #d1d5db; }
body.dark-mode .mr-voucher-circle { background: #111827; border-color: #4b5563; color: #6b7280; }
body.dark-mode .mr-voucher-circle.is-placeholder::before { color: #4b5563; }
body.dark-mode .mr-voucher-circle.is-real { background: #1f2937; }
body.dark-mode .mr-voucher-circle.is-real:hover { background: #312e81; }

/* ── Admin Rewards (voucher catalog management) ─────────────────────── */
.admin-rewards-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(340px, 1.5fr);
    gap: 1.25rem;
    align-items: flex-start;
}
@media (max-width: 900px) {
    .admin-rewards-grid { grid-template-columns: 1fr; }
}

.admin-rewards-card {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.ar-card-title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #111827);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.ar-count {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary, #6b7280);
    background: #f3f4f6;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
}

/* Add-voucher form */
.ar-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}
.ar-field-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
}
.ar-input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    background: #fff;
    color: var(--text-primary, #111827);
    width: 100%;
    box-sizing: border-box;
}
.ar-input:focus {
    outline: none;
    border-color: var(--primary-color, #d4172b);
    box-shadow: 0 0 0 3px rgba(212, 23, 43, 0.15);
}
.ar-input.ar-file {
    padding: 0.45rem;
    background: #fafafa;
}
.ar-image-preview {
    margin-top: 0.5rem;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    padding: 0.4rem;
    max-width: 140px;
    background: #fafafa;
}
.ar-image-preview img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: contain;
}
.ar-submit {
    margin-top: 0.5rem;
    width: 100%;
}

.ar-alert {
    padding: 0.6rem 0.85rem;
    border-radius: 6px;
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
    border: 1px solid transparent;
}
.ar-alert-success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.ar-alert-error   { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.ar-alert-info    { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }

/* Voucher list */
.ar-voucher-list { display: flex; flex-direction: column; gap: 1.25rem; }
.ar-voucher-group {}
.ar-group-title {
    margin: 0 0 0.5rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-secondary, #4b5563);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ar-group-count {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.05rem 0.5rem;
    font-size: 0.72rem;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 999px;
    font-weight: 600;
}
.ar-voucher-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.ar-voucher-row {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 0.9rem;
    align-items: center;
    padding: 0.6rem 0.75rem;
    background: #fafafa;
    border: 1px solid #eef0f5;
    border-radius: 10px;
}
.ar-voucher-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ar-voucher-image img { width: 100%; height: 100%; object-fit: cover; }
.ar-voucher-image-empty {
    font-size: 0.7rem;
    color: #9ca3af;
}
.ar-voucher-brand { font-weight: 700; color: var(--text-primary, #111827); }
.ar-voucher-desc { font-size: 0.85rem; color: var(--text-secondary, #6b7280); }
.ar-voucher-cost { font-size: 0.85rem; font-weight: 600; color: var(--primary-color, #d4172b); margin-top: 0.15rem; }
/* Hide + Delete buttons sit side-by-side in their own action column. */
.ar-voucher-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: stretch;
}

.ar-voucher-delete {
    background: #fff;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ar-voucher-delete:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}
.ar-voucher-delete:disabled {
    opacity: 0.55;
    cursor: progress;
}

/* Hide / Unhide voucher toggle */
.ar-voucher-toggle {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #4b5563;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ar-voucher-toggle:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
}
.ar-voucher-toggle.is-hidden {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}
.ar-voucher-toggle.is-hidden:hover {
    background: #d1fae5;
}
.ar-voucher-toggle:disabled {
    opacity: 0.55;
    cursor: progress;
}

/* Hidden voucher rows are dimmed in the admin list so they're visually
   demoted but still scannable for unhide. */
.ar-voucher-row-hidden {
    opacity: 0.55;
    background: #f9fafb;
}
.ar-voucher-row-hidden .ar-voucher-image,
.ar-voucher-row-hidden .ar-voucher-image img {
    filter: grayscale(60%);
}
.ar-voucher-hidden-pill {
    display: inline-block;
    margin-left: 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
    background: #e5e7eb;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    vertical-align: middle;
}

body.dark-mode .ar-voucher-toggle {
    background: #111827; border-color: #4b5563; color: #d1d5db;
}
body.dark-mode .ar-voucher-toggle:hover { background: #1f2937; color: #f3f4f6; }
body.dark-mode .ar-voucher-toggle.is-hidden {
    background: #064e3b; border-color: #065f46; color: #a7f3d0;
}
body.dark-mode .ar-voucher-toggle.is-hidden:hover { background: #047857; }
body.dark-mode .ar-voucher-row-hidden { background: #111827; }
body.dark-mode .ar-voucher-hidden-pill { background: #374151; color: #9ca3af; }

body.dark-mode .ar-voucher-delete {
    background: #111827;
    border-color: #7f1d1d;
    color: #fca5a5;
}
body.dark-mode .ar-voucher-delete:hover {
    background: #450a0a;
    border-color: #991b1b;
    color: #fecaca;
}
.ar-empty {
    margin: 0;
    padding: 0.75rem 0;
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    font-size: 0.9rem;
}
.ar-empty-error { color: #b91c1c; font-style: normal; }

/* Voucher tiles on the cashier My Rewards page — circle + caption below */
.mr-voucher-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: none;
    border: none;
    padding: 0;
    gap: 0.4rem;
    cursor: default;
}
.mr-voucher-tile-real {
    cursor: pointer;
    transition: transform 0.15s ease;
}
.mr-voucher-tile-real:hover { transform: translateY(-2px); }
.mr-voucher-tile-real:hover .mr-voucher-circle.is-real { border-color: var(--primary-color, #d4172b); }

.mr-voucher-tile .mr-voucher-circle {
    width: 100%;
    aspect-ratio: 1;
    margin: 0;
}
.mr-voucher-circle.is-real {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #fff;
    border: 2px solid #e5e7eb;
}
.mr-voucher-circle.is-real img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.mr-voucher-initials {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4b5563;
}

.mr-voucher-brand {
    font-weight: 700;
    color: var(--text-primary, #111827);
    font-size: 0.9rem;
    line-height: 1.15;
    margin-top: 0.15rem;
}
.mr-voucher-value {
    font-size: 0.78rem;
    color: var(--text-secondary, #6b7280);
    line-height: 1.2;
}
.mr-voucher-cost {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-color, #d4172b);
    background: rgba(212, 23, 43, 0.08);
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    margin-top: 0.15rem;
}

/* Redemption confirm modal */
.mr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}
.mr-modal-card {
    background: #fff;
    width: 100%;
    max-width: 420px;
    border-radius: 14px;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    text-align: center;
}
.mr-modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.9rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
}
.mr-modal-close:hover { color: #111827; }
.mr-modal-image {
    width: 88px;
    height: 88px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mr-modal-image img { width: 100%; height: 100%; object-fit: cover; }
.mr-modal-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary, #111827);
}
.mr-modal-type {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary, #6b7280);
    font-weight: 600;
}
.mr-modal-desc {
    margin: 0.75rem 0 1.25rem;
    color: var(--text-secondary, #555);
    font-size: 0.95rem;
    line-height: 1.45;
}
.mr-modal-points {
    background: #fafafa;
    border: 1px solid #eef0f5;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    text-align: left;
}
.mr-points-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    font-size: 0.92rem;
    color: var(--text-secondary, #4b5563);
}
.mr-points-row strong { color: var(--text-primary, #111827); }
.mr-points-after {
    border-top: 1px solid #e5e7eb;
    margin-top: 0.3rem;
    padding-top: 0.55rem;
    font-weight: 600;
}
.mr-modal-delivery {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.mr-modal-delivery-icon {
    font-size: 1rem;
    line-height: 1.4;
    flex-shrink: 0;
}
.mr-modal-delivery-text {
    flex: 1;
    min-width: 0;
}
.mr-modal-delivery strong {
    white-space: nowrap;
}
body.dark-mode .mr-modal-delivery {
    background: #1e3a8a;
    color: #dbeafe;
    border-color: #1e40af;
}

.mr-modal-alert {
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 1rem;
    text-align: left;
}
.mr-modal-alert-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.mr-modal-alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.mr-modal-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: stretch;
}
.mr-modal-actions .btn { flex: 1; }

body.dark-mode .mr-voucher-circle.is-real { background: #1f2937; border-color: #4b5563; }
body.dark-mode .mr-voucher-brand { color: #f3f4f6; }
body.dark-mode .mr-voucher-value { color: #9ca3af; }


body.dark-mode .mr-modal-card { background: #1f2937; color: #f3f4f6; }
body.dark-mode .mr-modal-title { color: #f3f4f6; }
body.dark-mode .mr-modal-type, body.dark-mode .mr-modal-desc { color: #9ca3af; }
body.dark-mode .mr-modal-image { background: #111827; border-color: #4b5563; }
body.dark-mode .mr-modal-points { background: #111827; border-color: #374151; }
body.dark-mode .mr-points-row { color: #d1d5db; }
body.dark-mode .mr-points-row strong { color: #f3f4f6; }
body.dark-mode .mr-points-after { border-top-color: #374151; }
body.dark-mode .mr-modal-alert-error   { background: #7f1d1d; color: #fecaca; border-color: #991b1b; }
body.dark-mode .mr-modal-alert-success { background: #064e3b; color: #d1fae5; border-color: #065f46; }

/* Dark mode */
body.dark-mode .admin-rewards-card { background: #1f2937; border-color: #374151; }
body.dark-mode .ar-card-title { color: #f3f4f6; }
body.dark-mode .ar-field-label { color: #9ca3af; }
body.dark-mode .ar-input { background: #111827; border-color: #4b5563; color: #f3f4f6; }
body.dark-mode .ar-input.ar-file { background: #1f2937; }
body.dark-mode .ar-voucher-row { background: #111827; border-color: #374151; }
body.dark-mode .ar-voucher-image { background: #1f2937; border-color: #4b5563; }
body.dark-mode .ar-voucher-brand { color: #f3f4f6; }
body.dark-mode .ar-voucher-desc { color: #9ca3af; }
body.dark-mode .ar-image-preview { background: #111827; border-color: #4b5563; }
body.dark-mode .ar-group-title { color: #9ca3af; }
body.dark-mode .ar-count, body.dark-mode .ar-group-count { background: #374151; color: #d1d5db; }

/* ── Admin FAQs page ────────────────────────────────────────────────── */
.ar-textarea {
    resize: vertical;
    min-height: 110px;
    font-family: inherit;
    line-height: 1.45;
}
.ar-form-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.5rem;
}
.ar-form-actions .btn { flex: 1; }

.ar-faq-list { display: flex; flex-direction: column; gap: 1.25rem; }
.ar-faq-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.ar-faq-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    background: #fafafa;
    border: 1px solid #eef0f5;
    border-radius: 10px;
}
.ar-faq-meta { min-width: 0; }
.ar-faq-question {
    font-weight: 700;
    color: var(--text-primary, #111827);
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}
.ar-faq-answer {
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
    line-height: 1.45;
    margin-bottom: 0.5rem;
    max-height: 5.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}
.ar-faq-answer::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1.4em;
    background: linear-gradient(transparent, #fafafa);
    pointer-events: none;
}
.ar-faq-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}
.ar-faq-pill {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
}
.ar-faq-pill-aud-cashier  { background: #eff6ff; color: #1d4ed8; }
.ar-faq-pill-aud-retailer { background: #f0fdf4; color: #15803d; }
.ar-faq-pill-aud-both     { background: #fef3c7; color: #92400e; }
.ar-faq-pill-order {
    font-size: 0.7rem;
    color: var(--text-secondary, #6b7280);
}

.ar-faq-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: stretch;
}
.ar-faq-edit {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.ar-faq-edit:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

body.dark-mode .ar-faq-row { background: #111827; border-color: #374151; }
body.dark-mode .ar-faq-question { color: #f3f4f6; }
body.dark-mode .ar-faq-answer { color: #9ca3af; }
body.dark-mode .ar-faq-answer::after { background: linear-gradient(transparent, #111827); }
body.dark-mode .ar-faq-pill-aud-cashier  { background: #1e3a8a; color: #bfdbfe; }
body.dark-mode .ar-faq-pill-aud-retailer { background: #14532d; color: #bbf7d0; }
body.dark-mode .ar-faq-pill-aud-both     { background: #78350f; color: #fde68a; }
body.dark-mode .ar-faq-edit {
    background: #111827; border-color: #4b5563; color: #93c5fd;
}
body.dark-mode .ar-faq-edit:hover {
    background: #1f2937; border-color: #60a5fa;
}

/* Empty-state for the Latest Updates feed on Achievers / Connexus pages. */
.newsletter-empty {
    text-align: center;
    color: var(--text-light, #9ca3af);
    font-size: 0.9rem;
    padding: 1.5rem 1rem;
    margin: 0;
    font-style: italic;
}
body.dark-mode .newsletter-empty { color: #94a3b8; }

/* Admin Updates page reuses the FAQ pill colour palette — add a 'both'
   variant if not already present (cashier / retailer already styled). */
.ar-faq-pill-aud-both     { background: #fef3c7; color: #92400e; }
body.dark-mode .ar-faq-pill-aud-both { background: #78350f; color: #fde68a; }
