:root {
  /* PushPilot design system — single source of truth for color, spacing,
     radius and shadow tokens used across the entire customer app. */
  --primary: #7C3AED;
  --primary-hover: #6D28D9;
  --primary-soft: #F3E8FF;
  --secondary: #A855F7;
  --secondary-soft: #FAF5FF;

  --page-background: #FAF9FF;
  --surface: #FFFFFF;
  --text: #18181B;
  --muted-text: #71717A;

  --success: #22C55E;
  --success-dark: #15803D;
  --success-bg: #DCFCE7;
  --success-border: #86EFAC;
  --warning: #F59E0B;
  --warning-dark: #B45309;
  --warning-bg: #FEF3C7;
  --warning-border: #FCD34D;
  --error: #EF4444;
  --error-dark: #B91C1C;
  --error-bg: #FEE2E2;
  --error-border: #FCA5A5;
  --info: #3B82F6;
  --info-dark: #1D4ED8;
  --info-bg: #DBEAFE;
  --info-border: #93C5FD;

  --neutral-white: #FFFFFF;
  --neutral-50: #FAF9FF;
  --neutral-100: #F5F3FF;
  --neutral-200: #E4E4E7;
  --neutral-300: #D4D4D8;
  --neutral-400: #A1A1AA;
  --neutral-500: #71717A;
  --neutral-600: #52525B;
  --neutral-700: #3F3F46;
  --neutral-900: #18181B;

  --paper: #FFFFFF;
  --bg-page: var(--page-background);
  --bg-surface: var(--surface);
  --bg-hover: #F4F4F5;
  --bg-hover-accent: var(--primary-soft);
  --bg-gradient-hero: linear-gradient(135deg, #F5F3FF 0%, #FAF9FF 100%);

  --border-default: #E4E4E7;
  --border-strong: #D4D4D8;

  --text-primary: var(--text);
  --text-secondary: #3F3F46;
  --text-muted: var(--muted-text);
  --text-on-brand: #FFFFFF;

  /* Kept as component sizing fallbacks. Font family remains theme-controlled. */
  --font-xs-12: 12px;
  --font-sm-14: 14px;
  --font-base-16: 16px;
  --font-md-18: 18px;
  --font-lg-20: 20px;
  --font-xl-24: 24px;
  --font-2xl-32: 32px;
  --font-3xl-40: 40px;

  --brand: var(--primary);
  --brand-hover: var(--primary-hover);
  --brand-soft: var(--primary-soft);
  --focus-ring: var(--primary);

  --shadow: 0 1px 3px rgba(24, 24, 27, 0.06);
  --shadow-hover: 0 8px 24px rgba(124, 58, 237, 0.12);
  --radius-card: 12px;
  --radius-button: 10px;
  --radius-input: 8px;

  /* Customer app sidebar — light variant, built from the tokens above
     so it stays visually consistent with the rest of the app instead
     of introducing a separate dark theme. */
  --sidebar-bg: var(--neutral-50);
  --sidebar-border: var(--border-default);
  --sidebar-text: var(--text-secondary);
  --sidebar-text-muted: var(--text-muted);
  --sidebar-hover-bg: var(--bg-hover);
  --sidebar-active-bg: var(--primary-soft);
  --sidebar-active-text: var(--primary);
  --sidebar-brand-text: var(--text-primary);
}

/* =====
   LAYOUT PRIMITIVES
   ===== */
.pushconsole-container {
    padding: 24px 65px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    background: var(--neutral-white);
}

/* =====
   TYPOGRAPHY SYSTEM
   ===== */
.pushconsole-page-header {
    margin-bottom: 32px;
}

.pushconsole-page-header h1 {
    font-size: var(--font-3xl-40);
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.pushconsole-page-subtitle,
.pushconsole-subtitle {
    color: var(--text-muted);
    margin: 0 0 28px 0;
    line-height: 1.5;
}

.pushconsole-page-subtitle {
    font-size: var(--font-md-18);
}

.pushconsole-subtitle {
    font-size: var(--font-sm-14);
}

.pushconsole-subtitle strong {
    color: var(--brand);
    font-weight: 600;
}

.pushconsole-section-heading {
    font-size: var(--font-xl-24);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    text-transform: capitalize;
}

/* =====
   LOGO COMPONENT
   ===== */
.pushconsole-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.pushconsole-logo-icon {
    width: 64px;
    height: 64px;
    background: var(--brand);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.pushconsole-logo-icon svg {
    color: var(--text-on-brand);
}

/* =====
   FORM COMPONENTS
   ===== */
.pushconsole-form-group {
    margin-bottom: 20px;
}

.pushconsole-form-group label {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: var(--font-sm-14);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="url"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-input);
    font-size: var(--font-base-16);
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

button,
.button,
input[type="submit"] {
    font-family: inherit;
}

.pushconsole-password-wrapper {
    position: relative;
}

.pushconsole-password-wrapper input {
    padding-right: 48px;
}

.pushconsole-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.pushconsole-toggle-password:hover {
    color: var(--brand);
}

.pushconsole-password-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    background: var(--neutral-50);
    border-radius: 8px;
    border: 1px solid var(--border-default);
}

.pushconsole-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-sm-14);
    color: var(--text-secondary);
}

.pushconsole-check .pushconsole-icon {
    color: var(--text-muted);
    font-weight: 400;
}

/* =====
   BUTTONS
   ===== */
/* Button Base - Shared Structure */
.pushconsole-btn,
.pushconsole-btn-secondary,
.pushconsole-btn-ghost,
button.pushconsole-btn,
button.pushconsole-btn[type="submit"] {
    border-radius: 10px;
    font-size: var(--font-base-16);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Primary Button - Full-width CTA by default */
.pushconsole-btn,
button.pushconsole-btn,
button.pushconsole-btn[type="submit"] {
    display: block;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    background: var(--brand);
    color: var(--text-on-brand);
    border: none;
    padding: 6px 18px;
}

.pushconsole-btn:hover {
    background: var(--brand-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.pushconsole-btn:active {
    transform: translateY(0);
}

.pushconsole-btn:focus {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.pushconsole-btn:disabled {
    background: var(--neutral-300);
    color: var(--neutral-500);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pushconsole-btn:disabled:hover {
    background: var(--neutral-300);
    transform: none;
    box-shadow: none;
}

/* Inline variant for smaller contexts */
.pushconsole-btn-inline {
    display: inline-block;
    width: auto;
    text-transform: none;
}

/* Alias for markup that names the primary button explicitly */
.pushconsole-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    text-transform: none;
    background: var(--brand);
    color: var(--text-on-brand);
    border: none;
    border-radius: var(--radius-button);
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Secondary Button - Outlined */
.pushconsole-btn-secondary {
    display: inline-block;
    background: var(--bg-surface);
    color: var(--brand);
    border: 2px solid var(--brand);
    padding: 6px 18px;
}

.pushconsole-btn-secondary:hover {
    background: var(--brand);
    color: var(--text-on-brand);
}

.pushconsole-btn-secondary:focus {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* Ghost Button - Minimal */
.pushconsole-btn-ghost {
    display: inline-block;
    background: transparent;
    color: var(--brand);
    border: none;
    padding: 6px 18px;
}

.pushconsole-btn-ghost:hover {
    background: var(--brand-soft);
}

.pushconsole-btn-ghost:focus {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* Icon Buttons */
.pushconsole-btn-icon {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pushconsole-btn-icon:hover {
    background: var(--bg-hover);
}

.pushconsole-btn-icon svg {
    display: block;
}

/* =====
   FOOTER LINK PATTERN
   ===== */
.pushconsole-footer {
    text-align: center;
    margin-top: 24px;
    font-size: var(--font-sm-14);
    color: var(--text-secondary);
}

.pushconsole-footer a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.pushconsole-footer a:hover {
    color: var(--brand-hover);
    text-decoration: underline;
}

/* =====
   BADGES
   ===== */
.pushconsole-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: var(--font-sm-14);
    font-weight: 600;
    border-radius: 6px;
}

.pushconsole-badge-plan {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.pushconsole-badge-status-active,
.pushconsole-badge-status-inactive,
.pushconsole-badge-status-expired,
.pushconsole-badge-status-completed,
.pushconsole-badge-status-complete,
.pushconsole-badge-status-success,
.pushconsole-badge-status-pending,
.pushconsole-badge-status-failed,
.pushconsole-badge-status-refunded,
.pushconsole-badge-status-grace,
.pushconsole-badge-status-none {
    font-size: var(--font-xs-12);
    text-transform: capitalize;
}

.pushconsole-badge-status-active,
.pushconsole-badge-status-completed,
.pushconsole-badge-status-complete,
.pushconsole-badge-status-success {
    background: var(--success-bg);
    color: var(--success-dark);
}

.pushconsole-badge-status-inactive,
.pushconsole-badge-status-failed {
    background: var(--error-bg);
    color: var(--error-dark);
}

.pushconsole-badge-status-expired,
.pushconsole-badge-status-pending,
.pushconsole-badge-status-grace {
    background: var(--warning-bg);
    color: var(--warning-dark);
}

.pushconsole-badge-status-refunded {
    background: var(--info-bg);
    color: var(--info-dark);
}

.pushconsole-badge-status-none {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.pushconsole-badge-status-verified {
    background: var(--success-bg);
    color: var(--success-dark);
    border: 1px solid var(--success-border);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pushconsole-badge-status-unverified {
    background: var(--warning-bg);
    color: var(--warning-dark);
    border: 1px solid var(--warning-border);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pushconsole-badge-lifetime {
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--warning-border) 0%, var(--warning) 100%);
    color: var(--text-on-brand);
    font-size: var(--font-xs-12);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====
   ALERTS
   ===== */
.pushconsole-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: var(--font-base-16);
    font-weight: 500;
}

.pushconsole-alert svg {
    flex-shrink: 0;
}

.pushconsole-alert-error {
    background: var(--error-bg);
    color: var(--error-dark);
    border: 1px solid var(--error-border);
}

.pushconsole-alert-success {
    background: var(--success-bg);
    color: var(--success-dark);
    border: 1px solid var(--success-border);
}

.pushconsole-alert-warning {
    background: var(--warning-bg);
    color: var(--warning-dark);
    border: 1px solid var(--warning-border);
}

.pushconsole-alert-info {
    background: var(--brand-soft);
    color: var(--brand);
    border: 1px solid var(--brand);
}

/* =====
   INFO DISPLAY
   ===== */
.pushconsole-info-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.pushconsole-info-row:hover {
    background: var(--bg-hover);
}

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

.pushconsole-info-label {
    min-width: 140px;
    font-size: var(--font-xs-12);
    font-weight: 400;
    color: var(--text-primary);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pushconsole-info-value {
    flex: 1;
    font-size: var(--font-base-16);
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pushconsole-info-value-lg {
    font-size: var(--font-lg-20);
    font-weight: 700;
}

.pushconsole-info-value-success {
    color: var(--success);
}

.pushconsole-info-value-error {
    color: var(--error);
}

.pushconsole-info-value-warning {
    color: var(--warning);
}

/* =====
   NOTICE BOX
   ===== */
.pushconsole-notice {
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.pushconsole-notice p {
    margin: 0 0 12px 0;
    color: var(--info-dark);
    font-size: var(--font-sm-14);
}

.pushconsole-notice p:last-child {
    margin-bottom: 0;
}

/* =====
   REQUIREMENTS LIST
   ===== */
.pushconsole-requirements-list {
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.pushconsole-requirements-list strong {
    display: block;
    margin-bottom: 8px;
    color: var(--info-dark);
    font-size: var(--font-sm-14);
}

.pushconsole-requirements-list ul {
    margin: 0;
    padding-left: 20px;
    color: var(--info-dark);
}

.pushconsole-requirements-list li {
    margin: 4px 0;
    font-size: var(--font-sm-14);
}

/* =====
   CARDS
   ===== */
.pushconsole-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 24px;
}

.pushconsole-card-interactive {
    transition: all 0.3s ease;
    cursor: pointer;
}

.pushconsole-card-interactive:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand);
}

.pushconsole-card-glass {
    backdrop-filter: blur(10px);
}

.pushconsole-table-wrapper {
    overflow-x: auto;
}

/* Card variants that reuse the base card surface (background/border/shadow)
   under a different name for their specific context. */
.pushconsole-form-card,
.pushconsole-event-card,
.pushconsole-download-card,
.pushconsole-download-section,
.pushconsole-plans-table-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
}

/* ─── Summary card — shared brand border + shadow ──────────────────────── */

.pushconsole-summary-card {
	border: 2px solid var(--brand);
	box-shadow: var(--shadow-hover);
}

/* =====
   ASSURANCE COMPONENTS
   ===== */
.pushconsole-assurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.pushconsole-assurance-item {
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border: 1px solid var(--border-default);
}

.pushconsole-assurance-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--brand);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pushconsole-assurance-content h3 {
    font-size: var(--font-base-16);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

.pushconsole-assurance-content p {
    font-size: var(--font-sm-14);
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* =====
   TABLE FOUNDATION
   ===== */
.pushconsole-table {
    width: 100%;
    border-collapse: collapse;

}

.pushconsole-table th,
.pushconsole-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--bg-hover);
}

.pushconsole-table thead th {
    background: var(--brand);
    color: var(--text-on-brand);
    font-weight: 600;
    font-size: var(--font-xs-12);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pushconsole-table tbody tr:last-child td {
    border-bottom: none;
}

.pushconsole-table tbody tr {
        background: var(--neutral-50);
    transition: background 0.2s ease;
}

.pushconsole-table tbody tr:hover {
    background: var(--bg-page);
}

/* =====
   EMPTY STATE
   ===== */
.pushconsole-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-surface);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.pushconsole-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--bg-hover);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.pushconsole-empty-icon svg {
    color: var(--text-muted);
}

.pushconsole-empty-state h3 {
    margin: 16px 0 8px 0;
    font-size: var(--font-lg-20);
    color: var(--text-primary);
}

.pushconsole-empty-state p {
    margin: 0 0 24px 0;
    color: var(--text-secondary);
    font-size: var(--font-base-16);
}

/* =====
   PRICING TOTAL COMPONENT
   ===== */
.pushconsole-pricing-total {
    border-top: 2px solid var(--bg-hover);
    padding-top: 24px;
    margin-bottom: 24px;
}

.pushconsole-total-label {
    font-size: var(--font-lg-20);
    font-weight: 600;
    color: var(--text-primary);
}

.pushconsole-total-value {
    font-size: var(--font-2xl-32);
    font-weight: 700;
    color: var(--brand);
}

/* =====
   TEXT UTILITIES
   ===== */
.pushconsole-text-muted {
    color: var(--text-muted);
}

.pushconsole-text-small {
    font-size: var(--font-sm-14);
}

.pushconsole-text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pushconsole-text-center {
    text-align: center;
}

.pushconsole-text-bold {
    font-weight: 600;
}

.pushconsole-helper-text {
    display: block;
    font-size: var(--font-sm-14);
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 4px;
}

.pushconsole-helper-text-sm {
    font-size: var(--font-xs-12);
}

/* =====
   COLOR UTILITIES
   ===== */
.pushconsole-text-accent {
    color: var(--brand);
}

.pushconsole-text-secondary {
    color: var(--text-secondary);
}

.pushconsole-text-success {
    color: var(--success-dark);
}

.pushconsole-text-error {
    color: var(--error-dark);
}

.pushconsole-text-warning {
    color: var(--warning-dark);
}

.pushconsole-bg-primary {
    background: var(--brand);
}

.pushconsole-bg-secondary {
    background: var(--bg-hover);
}

.pushconsole-bg-success {
    background: var(--success-bg);
}

.pushconsole-bg-error {
    background: var(--error-bg);
}

.pushconsole-bg-warning {
    background: var(--warning-bg);
}

.pushconsole-border-default {
    border-color: var(--border-default);
}

.pushconsole-border-primary {
    border-color: var(--brand);
}

/* =====
   SPACING UTILITIES
   ===== */
.pushconsole-mt-sm { margin-top: 8px; }
.pushconsole-mt-md { margin-top: 16px; }
.pushconsole-mt-lg { margin-top: 24px; }

.pushconsole-mb-sm { margin-bottom: 8px; }
.pushconsole-mb-md { margin-bottom: 16px; }
.pushconsole-mb-lg { margin-bottom: 24px; }

.pushconsole-gap-sm { gap: 8px; }
.pushconsole-gap-md { gap: 12px; }
.pushconsole-gap-lg { gap: 16px; }

/* =====
   UTILITY CLASSES
   ===== */
.pushconsole-hide-mobile {
    display: block;
}

/* =====
   RESPONSIVE - BASE ADJUSTMENTS
   ===== */
@media (max-width: 768px) {
    .pushconsole-container {
        padding: 20px 16px;
    }

    .pushconsole-assurance-grid {
        grid-template-columns: 1fr;
    }

    .pushconsole-page-header h1 {
        font-size: var(--font-2xl-32);
    }

    .pushconsole-page-subtitle {
        font-size: var(--font-base-16);
    }

    .pushconsole-section-heading {
        font-size: var(--font-lg-20);
    }

    .pushconsole-hide-mobile {
        display: none;
    }

    .pushconsole-empty-state {
        padding: 40px 20px;
    }

    .pushconsole-empty-icon {
        width: 60px;
        height: 60px;
    }

    .pushconsole-info-row {
        flex-direction: column;
        gap: 8px;
    }

    .pushconsole-info-label {
        min-width: auto;
    }

    .pushconsole-info-value {
        font-size: var(--font-sm-14);
    }

    .pushconsole-logo-icon {
        width: 56px;
        height: 56px;
    }
}

