/* ===================================
   MOJA KARTICA - MAIN APP STYLES
   Cross-platform Mobile Optimized
   Android | iOS | Huawei | HarmonyOS
   =================================== */

/* Emoji font family for icon elements */
.emoji, .menu-icon, .stat-icon, .btn-icon, .splash-icon, .brand-icon, .user-avatar {
    font-family: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}
/* Keep startup branding hidden until boot/app applies the stored logo or fallback icon. */
.brand-icon, .splash-icon, .auth-icon {
    min-width: 28px;
    min-height: 28px;
    opacity: 0;
}

.brand-icon.branding-applied,
.splash-icon.branding-applied,
.auth-icon.branding-applied {
    opacity: 1;
}

.brand-icon img,
.splash-icon img,
.auth-icon img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* CSS Variables */
:root {
    --primary-color: #E91E63;
    --primary-dark: #c2185b;
    --primary-light: #F48FB1;
    --secondary-color: #673AB7;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --info-color: #2196F3;
    --bg-color: #f5f7fa;
    --bg-secondary: #eef2f7;
    --card-bg: #ffffff;
    --surface-color: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #8a8f98;
    --border-color: #e6e8ec;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --nav-height: 60px;
    --bottom-nav-height: 70px;
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

.nav-action-icon {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: currentColor;
    line-height: 0;
    flex: 0 0 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -51%);
    pointer-events: none;
}

.nav-action-icon svg {
    width: 19px;
    height: 19px;
    display: block;
    overflow: visible;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: #333333;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --primary-light: rgba(233, 30, 99, 0.25);
    --bg-secondary: #2a2a2a;
    --surface-color: #252525;
    color-scheme: dark;
}

[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-primary);
}

/* Dark mode: inputs & form controls */
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background-color: #2a2a2a;
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
    border-color: var(--primary-color);
}

/* Dark mode: buttons */
[data-theme="dark"] .btn-secondary {
    background-color: #2a2a2a;
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-secondary:hover {
    background-color: #333333;
}

/* Dark mode: modals */
[data-theme="dark"] .modal-content,
[data-theme="dark"] .admin-modal-content {
    background-color: var(--card-bg);
    color: var(--text-primary);
}

[data-theme="dark"] .admin-modal {
    background: rgba(0, 0, 0, 0.75);
}

/* Dark mode: status badges */
[data-theme="dark"] .status-badge.active {
    background: rgba(76, 175, 80, 0.15);
}

[data-theme="dark"] .status-badge.inactive {
    background: rgba(255, 152, 0, 0.15);
}

[data-theme="dark"] .status-badge.expired {
    background: rgba(244, 67, 54, 0.15);
}

[data-theme="dark"] .status-badge.pending {
    background: rgba(33, 150, 243, 0.15);
}

/* Dark mode: admin table */
[data-theme="dark"] .admin-table thead {
    background: #1a1a1a;
}

[data-theme="dark"] .admin-table tbody tr:hover {
    background: #252525;
}

[data-theme="dark"] .admin-table td {
    border-bottom-color: #2a2a2a;
}

/* Dark mode: stat boxes */
[data-theme="dark"] .stat-box {
    background: var(--card-bg);
}

/* Dark mode: cards & panels */
[data-theme="dark"] .card-tab {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .card-tab:hover {
    border-color: var(--primary-color);
    background: rgba(233, 30, 99, 0.08);
}

[data-theme="dark"] .card-tab.active {
    border-color: var(--primary-color);
    background: rgba(233, 30, 99, 0.15);
    color: var(--primary-color);
}

/* Dark mode: navigation */
[data-theme="dark"] .bottom-nav {
    background: #1a1a1a;
    border-top-color: #2a2a2a;
}

[data-theme="dark"] .top-nav,
[data-theme="dark"] .nav-bar {
    background: #1a1a1a;
    border-bottom-color: #2a2a2a;
}

/* Dark mode: admin tabs */
[data-theme="dark"] .admin-tab {
    background: #252525;
    color: var(--text-secondary);
}

[data-theme="dark"] .admin-tab:hover:not(.active) {
    background: #333333;
}

/* Dark mode: settings section */
[data-theme="dark"] .settings-section {
    background: var(--card-bg);
}

[data-theme="dark"] .settings-section h3 {
    border-bottom-color: #2a2a2a;
}

/* Dark mode: info box, callouts, warnings */
[data-theme="dark"] .admin-info-box {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.12), rgba(156, 39, 176, 0.12));
}

[data-theme="dark"] .info-callout-warning {
    background: rgba(255, 193, 7, 0.12);
    color: #ffd54f;
}

/* Dark mode: partner cards */
[data-theme="dark"] .admin-partner-card {
    background: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .admin-partner-image {
    background: linear-gradient(135deg, #2a2a2a, #1e1e1e);
}

/* Dark mode: category cards */
[data-theme="dark"] .admin-category-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

/* Dark mode: dashboard panels */
[data-theme="dark"] .dashboard-panel {
    background: #1e1e1e;
}

/* Dark mode: notifications panel */
[data-theme="dark"] .notifications-panel {
    background: #1e1e1e;
}

[data-theme="dark"] .notifications-stat-card {
    background: var(--card-bg);
}

/* Dark mode: icon buttons in table */
[data-theme="dark"] .btn-icon-sm.edit {
    background: rgba(33, 150, 243, 0.15);
}

[data-theme="dark"] .btn-icon-sm.delete {
    background: rgba(244, 67, 54, 0.15);
}

/* Dark mode: user role badge */
[data-theme="dark"] .user-role-badge.user {
    background: #333333;
    color: var(--text-primary);
}

/* Dark mode: code & monospace */
[data-theme="dark"] .table-id-code {
    background: #333333;
}

/* Dark mode: scrollbar */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Dark mode: faq items */
[data-theme="dark"] .faq-item {
    border-color: var(--border-color);
    background: var(--card-bg);
}

/* Dark mode: savings section */
[data-theme="dark"] .savings-stats-section {
    background: #1e1e1e;
}

/* Dark mode: modal info panels */
[data-theme="dark"] .modal-info-panel {
    background: #252525;
}

/* Dark mode: search & toolbar inputs */
[data-theme="dark"] .admin-toolbar input[type="search"],
[data-theme="dark"] .admin-toolbar input[type="text"],
[data-theme="dark"] .admin-toolbar input[type="date"],
[data-theme="dark"] .admin-toolbar select {
    background: #2a2a2a;
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Dark mode: logo size group */
[data-theme="dark"] .logo-size-group {
    background: #252525;
}

/* Dark mode: menu config item */
[data-theme="dark"] .menu-config-item-row {
    background: #252525;
}

/* Dark mode: emoji picker */
[data-theme="dark"] .emoji-picker-grid {
    background: #252525;
}

[data-theme="dark"] .emoji-option:hover {
    background: rgba(233, 30, 99, 0.2) !important;
}

/* Dark mode: close button */
[data-theme="dark"] .modal-close-btn,
[data-theme="dark"] .modal-x-close {
    background: #333333;
    color: var(--text-primary);
}

/* Dark mode: 2FA elements */
[data-theme="dark"] .twofa-qr-box {
    background: #fff;
}

[data-theme="dark"] .twofa-code-input {
    background: #2a2a2a;
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Dark mode: partner verify */
[data-theme="dark"] .partner-verify-alert.warning {
    background: rgba(255, 193, 7, 0.12);
    color: #ffd54f;
}

[data-theme="dark"] .partner-verify-alert.error {
    background: rgba(244, 67, 54, 0.12);
    color: #ef9a9a;
}

[data-theme="dark"] .partner-verify-code-box {
    background: #252525;
}

/* Dark mode: toast */
[data-theme="dark"] .toast {
    background: #333333;
    color: var(--text-primary);
}

/* Dark mode: shared savings */
[data-theme="dark"] .shared-savings-summary {
    background: #1e1e1e;
    border-color: var(--border-color);
}

/* Dark mode transition for smooth switching */
[data-theme="dark"] *,
[data-theme="dark"] *::before,
[data-theme="dark"] *::after {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent pull-to-refresh on mobile */
body {
    overscroll-behavior-y: contain;
}

#push-bell-btn,
#push-bell-dot,
#favorites-nav-btn,
#favorites-nav-count {
    display: none;
}

#push-bell-btn,
#favorites-nav-btn {
    color: #fff;
}

.offline-banner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #ff6b6b;
    color: #fff;
    text-align: center;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.offline-banner:not(.hidden) {
    display: block;
}

body.offline-banner-visible {
    padding-top: 36px;
}

#favorites-nav-btn:not(.hidden) {
    display: inline-flex;
}

#favorites-nav-count:not(.hidden) {
    display: inline-block;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

.debug-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 45vh;
    background: #1a1a2e;
    color: #0f0;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    z-index: 99999;
    border-top: 2px solid #e91e63;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
}

.debug-panel.debug-panel-minimized {
    max-height: none;
}

.debug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    background: #16213e;
    color: #e91e63;
    font-weight: bold;
    font-size: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.debug-header-group,
.debug-toolbar,
.debug-toolbar-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.debug-pill {
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1.5;
}

.debug-pill-neutral {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.debug-pill-error {
    background: #f44;
    color: #fff;
}

.debug-pill-warn {
    background: #ff9800;
    color: #111;
}

.debug-select,
.debug-search {
    background: #10182d;
    color: #d3ffe0;
    border: 1px solid #2b3558;
    border-radius: 4px;
    font-size: 10px;
    padding: 4px 6px;
}

.debug-search {
    min-width: 140px;
}

.debug-btn {
    background: none;
    border: 1px solid transparent;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    padding: 3px 5px;
    border-radius: 4px;
}

.debug-btn:hover,
.debug-btn.is-active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

.debug-summary {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #a7ffd0;
}

.debug-summary-item {
    font-size: 10px;
    color: #bcead0;
}

.debug-content {
    overflow-y: auto;
    padding: 4px 8px;
    flex: 1;
    max-height: 40vh;
}

.debug-log-line {
    padding: 2px 0;
    border-bottom: 1px solid #222;
    word-break: break-all;
    white-space: pre-wrap;
}

.debug-log-line.type-log {
    color: #0f0;
}

.debug-log-line.type-error {
    color: #f44;
}

.debug-log-line.type-warn {
    color: #ff9800;
}

.debug-log-line.type-crash {
    color: #ff0;
}

.debug-log-line.type-info {
    color: #2196f3;
}

.debug-log-line.type-state {
    color: #e91e63;
}

.debug-log-line.type-net {
    color: #ff6fff;
}

.debug-log-line.type-perf {
    color: #00e5ff;
}

.debug-log-line.type-dom {
    color: #8bc34a;
}

.debug-log-line.type-mod {
    color: #ce93d8;
}

.debug-log-line.type-store {
    color: #ffab40;
}

.debug-empty {
    padding: 16px 0;
    text-align: center;
    color: #8ab6a1;
}

@media (max-width: 768px) {
    .debug-header {
        align-items: flex-start;
    }

    .debug-search {
        min-width: 110px;
        flex: 1 1 110px;
    }
}

.modal-content-narrow {
    max-width: 400px;
    padding: 30px;
    text-align: center;
}

.modal-content-medium {
    max-width: 450px;
    padding: 30px;
    text-align: center;
}

.modal-content-relative {
    position: relative;
}

.modal-front {
    z-index: 10000;
}

.modal-content-padded {
    padding: 30px;
}

.modal-content-padded-sm {
    padding: 25px;
}

.custom-modal-content-xl {
    max-width: 600px;
    padding: 30px;
}

.modal-title-center {
    margin-bottom: 20px;
    text-align: center;
}

.dialog-actions-centered {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.dialog-actions-wrap {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.dialog-flex-fill {
    flex: 1;
}

.helper-text-secondary {
    color: var(--text-secondary);
}

.helper-text-xs {
    font-size: 12px;
}

.helper-text-warning {
    color: var(--warning-color);
}

.helper-text-error {
    color: var(--error-color);
}

.helper-text-top-gap-xs {
    margin-top: 5px;
}

.info-callout-warning {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.modal-info-panel {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.partner-verify-modal-header {
    margin-bottom: 15px;
}

.partner-verify-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.partner-verify-title {
    margin-bottom: 5px;
    font-size: 20px;
}

.partner-verify-discount {
    color: var(--success-color);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.partner-verify-alert {
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.partner-verify-alert.warning {
    background: #fff3cd;
    color: #856404;
}

.partner-verify-alert.error {
    background: #f8d7da;
    color: #721c24;
}

.partner-verify-alert-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.partner-verify-alert-copy {
    font-size: 13px;
}

.partner-verify-alert-footnote {
    font-size: 12px;
    margin-top: 10px;
}

.partner-verify-match {
    font-size: 13px;
    color: var(--success-color);
    margin-bottom: 10px;
}

.partner-verify-code-box {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.partner-verify-code-label,
.partner-verify-code-note,
.partner-verify-help,
.partner-verify-countdown,
.empty-state-note {
    color: var(--text-secondary);
}

.partner-verify-code-label {
    font-size: 12px;
    margin-bottom: 10px;
}

.partner-verify-code-value {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-color);
    font-family: monospace;
}

.partner-verify-code-value.is-refreshing {
    animation: pulse 0.5s ease;
}

.partner-verify-code-note {
    font-size: 11px;
    margin-top: 10px;
}

.partner-verify-help {
    font-size: 13px;
    margin-bottom: 15px;
}

.partner-verify-countdown {
    font-size: 12px;
    margin-bottom: 15px;
}

.faq-admin-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.btn-sm-compact {
    font-size: 12px;
    padding: 6px 12px;
}

.btn-danger-text {
    color: #dc3545;
}

.empty-state-panel {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.empty-state-note {
    font-size: 14px;
}

.readonly-input-soft {
    background: var(--bg-secondary);
}

.theme-var-progress {
    width: var(--progress-width, 0%);
}

.nav-btn-visible {
    display: inline-flex !important;
}

.twofa-modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.twofa-modal-title {
    margin-bottom: 8px;
}

.twofa-modal-text {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
}

.twofa-modal-text-compact {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

.twofa-code-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
}

.twofa-code-input {
    width: 180px;
    text-align: center;
    font-size: 28px;
    letter-spacing: 8px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: monospace;
}

.twofa-code-input.verify-step {
    margin-bottom: 16px;
}

.twofa-error-space {
    margin-bottom: 12px;
}

.twofa-btn-space {
    margin-bottom: 12px;
}

.btn-dimmed {
    opacity: 0.7;
}

.twofa-qr-box {
    margin: 20px auto;
    display: inline-block;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
}

.twofa-qr-image {
    width: 200px;
    height: 200px;
}

.twofa-secret-wrap {
    margin: 16px 0;
}

.twofa-secret-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.twofa-secret-code {
    display: block;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 14px;
    letter-spacing: 2px;
    word-break: break-all;
    margin: 8px 0;
    user-select: all;
}

.twofa-close-top {
    margin-top: 12px;
}

.profile-settings-spaced {
    margin-top: 20px;
}

.btn-block-spacing {
    margin-bottom: 10px;
}

.btn-save-preferences {
    margin-top: 14px;
}

.assigned-cards-section-layout {
    margin-top: 30px;
}

.assigned-cards-title {
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.assigned-cards-list-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shared-savings-summary {
    display: none;
    margin-top: 18px;
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid var(--border-color);
}

.shared-savings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.shared-savings-title {
    margin: 0;
    color: var(--text-primary);
}

.shared-savings-note {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.shared-savings-total-pill {
    background: rgba(76, 175, 80, 0.12);
    color: #2e7d32;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
}

.shared-savings-table-wrap {
    overflow-x: auto;
}

.web-shop-section-panel {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.web-shop-section-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.web-shop-list-layout {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.partners-search-block {
    margin: 16px 0 20px;
}

.partners-search-input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #fff, #fcfcfe);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.partners-search-input:focus {
    outline: none;
    border-color: rgba(233, 30, 99, 0.28);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.no-partners-panel {
    display: none;
    text-align: center;
    padding: 40px 20px;
    grid-column: 1 / -1;
}

.no-partners-text {
    color: var(--text-secondary);
    font-size: 16px;
}

.partner-cards-banner {
    display: none;
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 15px;
}

.partner-cards-title {
    color: #fff;
    margin-bottom: 15px;
    text-align: center;
}

.partner-cards-list-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.partner-cta-benefits {
    text-align: left;
    margin: 15px 0;
}

.contact-info-grid-spaced {
    margin-top: 30px;
}

.how-it-works-top-space {
    margin-top: 20px;
}

.self-verify-helper-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.self-verify-scanner {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 1;
}

.self-verify-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.self-verify-frame {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(76, 175, 80, 0.6);
    border-radius: 12px;
    pointer-events: none;
}

.self-verify-scan-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(76, 175, 80, 0.8);
    animation: selfVerifyScanLine 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes selfVerifyScanLine {
    0%, 100% { top: 30%; opacity: 0.5; }
    50% { top: 70%; opacity: 1; }
}

.self-verify-status {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    color: #fff;
}

.splash-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
    display: inline-block;
    max-width: 200px;
    line-height: 1;
}

.splash-icon img {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    display: block;
    margin: 0 auto;
}

.splash-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
}

.splash-loader {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: calc(var(--nav-height) + var(--safe-area-top));
    padding-bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
}

/* Main Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(var(--nav-height) + var(--safe-area-top));
    padding-top: var(--safe-area-top);
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: max(20px, var(--safe-area-left));
    padding-right: max(20px, var(--safe-area-right));
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    flex-shrink: 0;
}
.brand-icon img {
    height: 28px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.brand-icon {
    font-size: 28px;
}

.brand-text {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
    transition: background var(--transition-fast);
    padding: 0;
    line-height: 0;
    position: relative;
    overflow: visible;
    color: #fff;
}

.nav-btn:hover, .nav-btn:active {
    background: rgba(255,255,255,0.15);
}

.nav-bell-btn {
    position: relative;
}

.nav-favorites-btn {
    position: relative;
}

.nav-menu-btn .nav-action-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.push-bell-dot {
    position: absolute;
    top: 8px;
    right: 6px;
    width: 7px;
    height: 7px;
    background: #ffd54f;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(110, 9, 45, 0.45);
}

.favorites-nav-count {
    position: absolute;
    top: 3px;
    right: 1px;
    min-width: 13px;
    height: 13px;
    padding: 0 2px;
    border-radius: 999px;
    background: #fff;
    color: var(--primary-color);
    font-size: 7.5px;
    font-weight: 800;
    line-height: 13px;
    text-align: center;
}

.hamburger {
    width: 17px;
    height: 2px;
    background: currentColor;
    position: relative;
    display: block;
    border-radius: 999px;
    transform: translateY(0);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 17px;
    height: 2px;
    background: currentColor;
    left: 0;
    top: 0;
    border-radius: 999px;
}

.hamburger::before { transform: translateY(-4.5px); }
.hamburger::after { transform: translateY(4.5px); }

@media (max-width: 480px) {
    .main-nav {
        padding-left: 12px;
        padding-right: 8px;
    }
    .nav-brand {
        gap: 6px;
    }
    .brand-text {
        font-size: 15px;
    }
    .brand-icon {
        font-size: 22px;
    }
    .brand-icon img {
        height: 22px;
    }
    .nav-actions {
        gap: 0;
    }
    .nav-btn {
        width: 36px;
        height: 36px;
    }
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85%;
    height: 100%;
    background: var(--card-bg);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    padding-top: var(--safe-area-top);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.side-menu.open {
    transform: translateX(0);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.menu-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.menu-header {
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.user-avatar.has-image {
    padding: 0;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-info {
    flex: 1;
}

.user-name {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

.user-plan {
    display: block;
    font-size: 13px;
    opacity: 0.9;
}

.menu-items {
    list-style: none;
    padding: 15px 0;
    flex: 1;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    cursor: pointer;
    transition: background var(--transition-fast);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
}

.menu-item:hover, .menu-item:active {
    background: var(--bg-color);
}

.menu-item.active {
    color: var(--primary-color);
    background: rgba(233, 30, 99, 0.08);
    border-right: 3px solid var(--primary-color);
}

.menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    width: 30px;
    min-width: 30px;
    text-align: center;
}

.menu-icon.has-image,
.stat-icon.has-image,
.btn-icon.has-image,
.activity-icon.has-image {
    font-size: 0;
}

.menu-icon img,
.stat-icon img,
.btn-icon img,
.activity-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-icon.has-image img {
    width: 22px;
    height: 22px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: max(10px, var(--safe-area-bottom));
    left: max(12px, var(--safe-area-left));
    right: max(12px, var(--safe-area-right));
    min-height: 68px;
    padding: 8px 10px calc(8px + var(--safe-area-bottom));
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.bottom-nav-item {
    flex: 1;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    padding: 6px 0;
    border-radius: 18px;
}

.bottom-nav-item.active {
    color: var(--primary-color);
    background: linear-gradient(180deg, rgba(233, 30, 99, 0.1), rgba(233, 30, 99, 0.04));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.bottom-nav-item .nav-icon {
    font-size: 24px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.bottom-nav-item .nav-label {
    font-size: 11px;
    font-weight: 700;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
    padding-left: max(20px, var(--safe-area-left));
    padding-right: max(20px, var(--safe-area-right));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Pages */
.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    position: relative;
    overflow: hidden;
    max-width: 680px;
    margin: 0 auto 28px;
    padding: 24px 24px 20px;
    text-align: center;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(233, 30, 99, 0.12), transparent 34%),
        radial-gradient(circle at bottom left, rgba(103, 58, 183, 0.08), transparent 32%),
        linear-gradient(180deg, #ffffff, #fcfcfe);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.page-header h1 {
    font-size: clamp(26px, 4vw, 32px);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
    max-width: 540px;
    margin: 0 auto;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.section-heading h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.section-heading p {
    font-size: 13px;
    color: var(--text-secondary);
}

.home-hero {
    padding: 26px;
    background:
        radial-gradient(circle at top right, rgba(233, 30, 99, 0.18), transparent 34%),
        radial-gradient(circle at bottom left, rgba(103, 58, 183, 0.16), transparent 36%),
        linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92));
}

.home-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.greeting-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(233, 30, 99, 0.08);
    border: 1px solid rgba(233, 30, 99, 0.12);
    border-radius: 999px;
    padding: 8px 14px;
}

.home-hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.18);
}

.hero-badge-soft {
    background: rgba(103, 58, 183, 0.1);
    color: var(--secondary-color);
    box-shadow: none;
}

.home-hero-copy h1 {
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.home-hero-copy p {
    max-width: 560px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.home-hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.home-hero-btn {
    width: auto;
    min-width: 180px;
}

.home-spotlight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    margin-bottom: 24px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, rgba(103, 58, 183, 0.1), rgba(233, 30, 99, 0.08));
    border: 1px solid rgba(103, 58, 183, 0.12);
}

.spotlight-eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--secondary-color);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.home-spotlight h2 {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.home-spotlight p {
    font-size: 14px;
    color: var(--text-secondary);
}

.spotlight-btn {
    width: auto;
    white-space: nowrap;
    padding-left: 18px;
    padding-right: 18px;
}

/* Home Stats */
.home-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 30px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 25px 15px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.action-btn.secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.action-btn.secondary:hover {
    border-color: rgba(233, 30, 99, 0.2);
    box-shadow: var(--shadow-sm);
}

.action-btn:active {
    transform: scale(0.95);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    width: 32px;
    height: 32px;
}

/* Recent Activity */
.activity-list {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.activity-info {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

/* ===================================
   HOW IT WORKS SECTION
   =================================== */
.how-it-works {
    margin-top: 30px;
    padding: 20px 0;
}

.how-it-works h2 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--text-primary);
    text-align: center;
    font-weight: 700;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 25px 20px;
    text-align: center;
    position: relative;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.step-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(156, 39, 176, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.step-number {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.step-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 100%;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-full {
    width: 100%;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--card-bg);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
    display: inline-block;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: var(--transition-fast);
    border-radius: 28px;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition-fast);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    padding: 20px;
}

.modal.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Auth Modal */
.auth-modal-content {
    max-width: 460px;
    padding: 30px 24px 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(233, 30, 99, 0.12), transparent 32%),
        linear-gradient(180deg, #ffffff, #fcfcfe 70%, #faf8fd);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 22px;
}

.auth-icon {
    font-size: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    max-width: 200px;
    line-height: 1;
    padding: 10px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248,250,252,0.92));
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

.auth-icon img {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    display: block;
    margin: 0 auto;
}

.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    padding: 4px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.auth-tab {
    flex: 1;
    padding: 12px 14px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    border-radius: 14px;
    transition: color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.auth-tab.active {
    color: var(--primary-color);
    background: linear-gradient(180deg, #ffffff, #fff6fa);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.auth-tab.active::after {
    display: none;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

.auth-modal-content .form-group {
    margin-bottom: 16px;
}

.auth-modal-content .form-group label {
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #667085;
}

.auth-modal-content .form-group input,
.auth-modal-content .form-group select,
.auth-modal-content .form-group textarea {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #fcfcfe);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.auth-modal-content .form-group input:focus,
.auth-modal-content .form-group select:focus,
.auth-modal-content .form-group textarea:focus {
    border-color: rgba(233, 30, 99, 0.3);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1), 0 10px 22px rgba(15, 23, 42, 0.06);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.form-options a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

/* Subscription Select in Register */
.subscription-select {
    margin: 20px 0;
    padding: 15px;
    background: var(--bg-color);
    border-radius: var(--border-radius-sm);
}

.subscription-select h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.plan-options {
    display: flex;
    gap: 10px;
}

.plan-option {
    flex: 1;
    cursor: pointer;
}

.plan-option input {
    display: none;
}

.plan-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.plan-option input:checked + .plan-box {
    border-color: var(--primary-color);
    background: rgba(233, 30, 99, 0.05);
}

.plan-box .plan-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.plan-box .plan-price {
    font-size: 11px;
    color: var(--text-muted);
}

.plan-box.featured {
    border-color: var(--primary-color);
}

/* Registration Note */
.registration-note {
    margin: 16px 0 18px;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(76, 175, 80, 0.1), rgba(255, 255, 255, 0.92));
    border-radius: 16px;
    border: 1px solid rgba(76, 175, 80, 0.16);
    border-left: 3px solid var(--success-color);
}

.plan-note {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.auth-error {
    background: linear-gradient(180deg, #fff1f2, #fff8f8);
    color: var(--error-color);
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid rgba(244, 67, 54, 0.16);
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

.auth-modal-content .btn-primary.btn-full {
    min-height: 52px;
    border-radius: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 14px 26px rgba(233, 30, 99, 0.18);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom) + 20px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--text-primary);
    color: var(--card-bg);
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease;
    pointer-events: auto;
}

.toast.success {
    background: var(--success-color);
    color: #fff;
}

.toast.error {
    background: var(--error-color);
    color: #fff;
}

.toast.fade-out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

/* Profile Page */
.profile-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 15px;
}

.profile-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.profile-header-note {
    max-width: 540px;
    margin: 10px auto 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.profile-form {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.profile-settings {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 18px;
    position: relative;
    isolation: isolate;
    border: 1px solid rgba(224, 224, 224, 0.78);
    box-shadow: var(--shadow-sm);
}

.profile-settings:last-child {
    margin-bottom: 0;
}

.profile-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.profile-form-head h3 {
    margin-bottom: 6px;
    color: var(--text-primary);
}

.profile-form-head p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.profile-form-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(233, 30, 99, 0.08);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-avatar.has-image {
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.profile-avatar.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-editor {
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.08), rgba(255, 193, 7, 0.08));
    border: 1px solid rgba(233, 30, 99, 0.12);
}

.profile-avatar-options {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.profile-avatar-option {
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(224, 224, 224, 0.9);
    background: rgba(255, 255, 255, 0.92);
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-avatar-option:hover {
    transform: translateY(-1px);
    border-color: rgba(233, 30, 99, 0.35);
}

.profile-avatar-option.active {
    border-color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(233, 30, 99, 0.16);
    background: rgba(255, 255, 255, 1);
}

.form-hint,
.profile-security-note {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
}

.profile-overview {
    margin-bottom: 20px;
    background:
        radial-gradient(circle at top right, rgba(233, 30, 99, 0.14), transparent 30%),
        linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,255,255,0.94));
}

.profile-overview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.profile-overview-label {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-overview h3 {
    font-size: 22px;
    color: var(--text-primary);
}

.profile-plan-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(233, 30, 99, 0.1);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.profile-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.profile-metric-card {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(224, 224, 224, 0.8);
    border-radius: 16px;
    padding: 16px 14px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}

.profile-metric-icon {
    display: block;
    font-size: 22px;
    margin-bottom: 8px;
}

.profile-metric-card strong {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.profile-metric-card span:last-child {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.profile-next-step {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(103, 58, 183, 0.08);
    border: 1px solid rgba(103, 58, 183, 0.1);
}

.profile-next-step-label {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--secondary-color);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-next-step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Legal content spacing for terms and privacy pages */
.legal-content h3 {
    margin-top: 24px;
    margin-bottom: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.legal-content h3:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

    .legal-content .legal-section {
        margin-bottom: 22px;
    }

    .legal-content .legal-section h3 {
        margin-bottom: 8px;
    }

.profile-settings h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.notification-center-list,
.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item,
.achievement-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(224, 224, 224, 0.9);
}

.notification-item.unread {
    border-color: rgba(233, 30, 99, 0.28);
    box-shadow: 0 12px 28px rgba(233, 30, 99, 0.08);
}

.notification-item-content,
.achievement-copy {
    flex: 1;
}

.notification-item h4,
.achievement-item h4 {
    margin: 0 0 4px;
    font-size: 14px;
    color: var(--text-primary);
}

.notification-item p,
.achievement-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.notification-meta,
.achievement-meta {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.notification-action-btn {
    border: none;
    background: rgba(233, 30, 99, 0.08);
    color: var(--primary-color);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.gamification-summary {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.gamification-level-card,
.gamification-progress-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(224, 224, 224, 0.8);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,255,0.94));
}

.gamification-level-card strong {
    display: block;
    margin: 8px 0 4px;
    font-size: 24px;
    color: var(--text-primary);
}

.gamification-level-card span:last-child,
.gamification-progress-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

.progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.progress-head strong {
    color: var(--text-primary);
    font-size: 14px;
}

.progress-track {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 14px;
    padding: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(233, 30, 99, 0.14), rgba(233, 30, 99, 0.06));
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: none;
}

.progress-bar-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.progress-bar-fill {
    display: block;
    height: 100%;
    max-width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffbf69 0%, #ff8a5b 42%, #e91e63 100%);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.22);
    transition: width 0.35s ease;
}

/* ===================================
   ANALYTICS FUNNEL STYLES
   =================================== */
.funnel-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.funnel-step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.funnel-step-icon {
    font-size: 20px;
}
.funnel-step-label {
    font-weight: 600;
    font-size: 14px;
}
.funnel-step-count {
    margin-left: auto;
    font-weight: 700;
    font-size: 18px;
}
.funnel-bar-track {
    background: var(--border-color);
    border-radius: 8px;
    height: 28px;
    overflow: hidden;
    position: relative;
}
.funnel-bar-svg {
    width: 100%;
    height: 100%;
    display: block;
}
.funnel-bar-fill {
    transition: width 0.6s ease;
}
.funnel-bar-label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
}
.funnel-step-meta {
    display: flex;
    justify-content: space-between;
    margin: 6px 0 2px;
    font-size: 11px;
    color: var(--text-secondary);
}
.funnel-step-result {
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-secondary);
}
.funnel-rate-good { color: var(--success-color); }
.funnel-rate-mid { color: #ff9800; }
.funnel-rate-low { color: var(--error-color); }
.funnel-rate-primary { color: var(--primary-color); }

.achievement-item {
    align-items: center;
}

.achievement-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 193, 7, 0.18);
    font-size: 22px;
}

.gamification-level-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.gamification-tier {
    position: relative;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(224, 224, 224, 0.9);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}

.gamification-tier.active {
    border-color: rgba(233, 30, 99, 0.34);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255, 240, 245, 0.94));
    box-shadow: 0 16px 34px rgba(233, 30, 99, 0.12);
}

.gamification-tier.reached:not(.active) {
    border-color: rgba(76, 175, 80, 0.24);
}

.gamification-tier-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.gamification-tier-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(233, 30, 99, 0.08);
    font-size: 18px;
}

.gamification-tier-status {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.gamification-tier strong {
    display: block;
    font-size: 15px;
    color: var(--text-primary);
}

.gamification-tier p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.achievement-item {
    align-items: stretch;
}

.achievement-item.status-unlocked {
    border-color: rgba(76, 175, 80, 0.24);
    box-shadow: 0 14px 30px rgba(76, 175, 80, 0.08);
}

.achievement-item.status-progress {
    border-color: rgba(255, 152, 0, 0.24);
    box-shadow: 0 14px 30px rgba(255, 152, 0, 0.08);
}

.achievement-item.status-locked {
    opacity: 0.86;
}

.achievement-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.achievement-status-badge {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.achievement-status-badge.unlocked {
    background: rgba(76, 175, 80, 0.12);
    color: var(--success-color);
}

.achievement-status-badge.progress {
    background: rgba(255, 152, 0, 0.12);
    color: var(--warning-color);
}

.achievement-status-badge.locked {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-muted);
}

.achievement-progress {
    margin-top: 10px;
}

.achievement-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.achievement-progress-track {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 10px;
    padding: 1px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.09), rgba(15, 23, 42, 0.04));
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.achievement-progress-fill {
    display: block;
    height: 100%;
    max-width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffb54a 0%, #ff8a5b 55%, var(--primary-color) 100%);
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.18);
    transition: width 0.35s ease;
}

.achievement-progress-svg {
    display: block;
    width: 100%;
    height: 8px;
}

.achievement-progress-bar {
    fill: var(--primary-color);
}

.toggle-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-primary);
}

.inline-status {
    margin: 12px 0 0;
    min-height: 18px;
    font-size: 13px;
    color: var(--text-secondary);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item span {
    font-size: 14px;
    color: var(--text-primary);
}

/* Subscription Plans */
.subscription-hero-card {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 18px;
    margin-bottom: 22px;
    background:
        radial-gradient(circle at top left, rgba(255, 122, 89, 0.16), transparent 32%),
        linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,246,241,0.96));
}

.subscription-hero-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c05621;
}

.subscription-hero-card h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.15;
    color: var(--text-primary);
}

.subscription-hero-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.subscription-hero-note {
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
    background: rgba(233, 30, 99, 0.08);
    border: 1px solid rgba(233, 30, 99, 0.12);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.subscription-plans {
    display: grid;
    gap: 20px;
    max-width: 760px;
    margin: 0 auto;
}

.subscription-plans.two-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(253,250,248,0.98));
    border-radius: 24px;
    padding: 28px 24px 24px;
    box-shadow: 0 18px 42px rgba(0,0,0,0.08);
    border: 1px solid rgba(233, 30, 99, 0.08);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

.plan-card.featured {
    border-color: rgba(233, 30, 99, 0.24);
    transform: translateY(-2px);
}

.plan-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    left: auto;
    background: #455a64;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.plan-badge.popular {
    background: linear-gradient(135deg, #ff7043, var(--primary-color));
}

.plan-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding-right: 120px;
}

.plan-audience,
.plan-billing {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.plan-name {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    margin-top: 0;
}

.plan-price {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin-bottom: 12px;
}

.plan-price .price {
    font-size: 44px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.plan-price .currency,
.plan-price .period {
    font-size: 14px;
    color: var(--text-muted);
    padding-bottom: 6px;
}

.plan-summary {
    margin: 0 0 18px;
    min-height: 44px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.plan-features {
    list-style: none;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-features li {
    padding: 0 0 0 22px;
    position: relative;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.plan-features li::before {
    content: '•';
    position: absolute;
    left: 8px;
    top: 0;
    color: var(--primary-color);
    font-size: 18px;
    line-height: 1;
}

.plan-footer-note {
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.plan-btn.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.plan-btn.secondary {
    background: var(--bg-color);
    color: var(--primary-color);
}

.plan-btn.disabled {
    background: var(--bg-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .home-hero {
        padding: 22px 18px;
    }

    .home-hero-top,
    .home-spotlight,
    .profile-overview-head {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero-badges {
        justify-content: flex-start;
    }

    .home-hero-copy h1 {
        font-size: 25px;
    }

    .subscription-hero-card,
    .subscription-plans.two-plans {
        grid-template-columns: 1fr;
    }

    .plan-topline {
        padding-right: 0;
        padding-top: 26px;
    }

    .home-hero-actions {
        flex-direction: column;
    }

    .home-hero-btn,
    .spotlight-btn {
        width: 100%;
    }

    .home-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-buttons,
    .profile-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-form-head {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-avatar-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gamification-summary {
        grid-template-columns: 1fr;
    }

    .gamification-level-track {
        grid-template-columns: 1fr;
    }

    .notification-item,
    .achievement-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stat-card {
        padding: 15px 10px;
    }
    
    .stat-icon {
        font-size: 24px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 10px;
    }
}

@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }
    
    .app-container {
        padding-bottom: 20px;
    }
    
    .main-content {
        max-width: 800px;
        margin: 0 auto;
    }
    
    /* Admin panel - full width on desktop */
    #page-admin .main-content,
    #page-admin.page,
    .admin-page {
        max-width: 100% !important;
        width: 100%;
    }
    
    /* Wider contact form on desktop */
    #page-contact .main-content,
    #page-contact.page {
        max-width: 1000px;
    }
    
    #page-contact .content-card {
        max-width: 900px;
        margin: 0 auto;
    }
    
    #page-contact .contact-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    #page-contact .contact-form .form-group:nth-child(5),
    #page-contact .contact-form .form-group:last-of-type,
    #page-contact .contact-form button {
        grid-column: 1 / -1;
    }
    
    #page-contact .contact-info-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .subscription-plans {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    .app-container {
        min-height: -webkit-fill-available;
    }
}

/* Android specific - remove blue highlight */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Huawei/HarmonyOS - similar to Android */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    input, textarea, select {
        font-size: 16px; /* Prevent zoom on focus */
    }
}
/* ===================================
   INFO PAGES STYLES
   About, Contact, Partners, FAQ, Terms, Privacy
   =================================== */

.info-page {
    padding: 10px;
}

.info-header {
    text-align: center;
    margin-bottom: 30px;
}

.info-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.info-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.info-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.info-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-section h2 span {
    font-size: 24px;
}

.info-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
}

.info-section ul {
    padding-left: 20px;
    color: var(--text-secondary);
}

.info-section ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: var(--bg-color);
    border-radius: var(--border-radius-sm);
}

.feature-item span {
    font-size: 28px;
}

.feature-item h3 {
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.feature-item p {
    font-size: 13px;
    margin: 0;
}

/* FAQ Styles */
.faq-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-question:hover {
    background: var(--bg-color);
}

.faq-question .faq-toggle {
    transition: transform var(--transition-fast);
}

.faq-item.open .faq-question .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 20px 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Contact Card */
.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: var(--border-radius-sm);
    margin-bottom: 12px;
    transition: all var(--transition-fast);
}

.contact-card:hover {
    transform: translateX(5px);
}

.contact-card span {
    font-size: 32px;
}

.contact-card h3 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 400;
}

.contact-card p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.partner-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.partner-card .partner-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.partner-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.partner-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Legal Text */
.legal-text {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.legal-text h2 {
    font-size: 18px;
    margin: 25px 0 12px 0;
    color: var(--text-primary);
}

.legal-text h2:first-child {
    margin-top: 0;
}

.legal-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-text ul {
    padding-left: 25px;
    margin-bottom: 15px;
}

.legal-text ul li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

/* Scanner Access Denied */
.scanner-access-denied,
.access-denied {
    text-align: center;
    padding: 60px 20px;
}

.scanner-access-denied .denied-icon,
.access-denied .access-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.scanner-access-denied h2,
.access-denied h2 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.scanner-access-denied p,
.access-denied p {
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 15px;
}

/* About Page Styles */
.content-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.about-hero {
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.about-hero .about-icon {
    font-size: 64px;
    display: inline-block;
    margin-bottom: 15px;
    min-width: 72px;
    min-height: 72px;
}

.about-hero .about-icon img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.about-hero h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.about-hero .tagline {
    font-size: 16px;
    color: var(--text-secondary);
}

.about-section {
    margin-bottom: 30px;
}

.about-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.about-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    padding: 10px 0;
    color: var(--text-secondary);
    line-height: 1.6;
    border-bottom: 1px solid var(--border-color);
}

.about-list li:last-child {
    border-bottom: none;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.about-stat {
    text-align: center;
    padding: 20px 10px;
    background: var(--bg-color);
    border-radius: var(--border-radius-sm);
}

.about-stat .num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.about-stat .label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Partners Page */
.partners-intro {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
}

.partners-intro p {
    color: var(--text-secondary);
    font-size: 16px;
}

.partner-card {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    transition: all var(--transition-fast);
}

.partner-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.partner-logo {
    font-size: 48px;
    margin-bottom: 15px;
}

.partner-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.partner-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.partner-benefit {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.become-partner {
    text-align: center;
    padding: 30px 20px;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
}

.become-partner h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.become-partner p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Contact Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    text-align: center;
    padding: 25px 15px;
    background: var(--bg-color);
    border-radius: var(--border-radius);
}

.contact-item .contact-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 15px;
}

.contact-item h4 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 400;
}

.contact-item p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Partner Info Bar (Scanner) */
.partner-info-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    color: white;
}

.partner-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
}

.partner-mini-dashboard,
.partner-offer-editor,
.partner-recent-history {
    margin-bottom: 18px;
}

.partner-mini-grid,
.partner-insights-grid,
.partner-offer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.partner-mini-card,
.partner-insight-box {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(224, 224, 224, 0.8);
    box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}

.partner-insights-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 12px;
}

.mini-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.partner-mini-card strong,
.partner-insight-box strong {
    display: block;
    font-size: 24px;
    color: var(--text-primary);
}

.mini-text,
.partner-insight-box p {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.accent-pink { border-top: 4px solid #e91e63; }
.accent-blue { border-top: 4px solid #2196f3; }
.accent-green { border-top: 4px solid #2e7d32; }
.accent-purple { border-top: 4px solid #7e57c2; }

.partner-offer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.partner-recent-scans {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-scan-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(224, 224, 224, 0.9);
}

.recent-scan-copy {
    flex: 1;
}

.recent-scan-item h4 {
    margin: 0 0 4px;
    font-size: 14px;
    color: var(--text-primary);
}

.recent-scan-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.recent-scan-meta {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.recent-scan-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.recent-scan-status.success {
    background: rgba(76, 175, 80, 0.14);
    color: #2e7d32;
}

.recent-scan-status.failed {
    background: rgba(244, 67, 54, 0.12);
    color: #c62828;
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .about-stat {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
    }
    
    .about-stat .num {
        margin-bottom: 0;
    }
}
/* ===== PARTNERS PAGE - Enhanced Display ===== */
.partners-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.filter-btn {
    padding: 9px 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: linear-gradient(180deg, #fff, #fcfcfe);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.filter-btn:hover {
    border-color: rgba(233, 30, 99, 0.22);
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #e91e63, #d81b60);
    border-color: transparent;
    color: white;
    box-shadow: 0 14px 24px rgba(233, 30, 99, 0.18);
}

.partners-utility-bar {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.35fr);
    align-items: stretch;
    gap: 14px;
    margin-bottom: 18px;
}

.partners-filters-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.partners-favorites-shortcut {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 16px 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #fdf7fa);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.partners-favorites-shortcut:hover {
    transform: translateY(-1px);
    border-color: rgba(233, 30, 99, 0.2);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

.partners-favorites-shortcut.active {
    border-color: rgba(233, 30, 99, 0.28);
    background: linear-gradient(180deg, #ffffff, #fceef5);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.partners-favorites-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(233, 30, 99, 0.14);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.partners-favorites-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.partners-favorites-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.partners-favorites-copy strong {
    font-size: 22px;
    line-height: 1;
}

.partners-favorites-copy span {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.partners-favorites-cta {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.partners-category-filter-wrap {
    display: none;
}

.partners-city-filter-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 72px;
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #ffffff);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.partners-city-filter-wrap:hover {
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.partners-city-filter-wrap:focus-within {
    border-color: rgba(233, 30, 99, 0.28);
    box-shadow: 0 12px 24px rgba(233, 30, 99, 0.08);
}

.partners-city-filter-wrap label {
    display: block;
    margin-bottom: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #667085;
}

.partners-city-filter-wrap select {
    width: 100%;
    max-width: 100%;
    border: none;
    border-radius: 0;
    padding: 0 28px 0 0;
    background-color: transparent;
    background-image: linear-gradient(45deg, transparent 50%, #667085 50%), linear-gradient(135deg, #667085 50%, transparent 50%);
    background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    box-shadow: none;
    color: var(--text-primary);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.partners-city-filter-wrap select:focus {
    outline: none;
}

@media (max-width: 1100px) {
    .partners-utility-bar {
        grid-template-columns: 1fr;
    }

    .partners-favorites-shortcut {
        grid-column: auto;
    }

    .partners-filters-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .partners-utility-bar {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .partners-filter {
        display: none;
    }

    .partners-filters-panel {
        grid-template-columns: 1fr;
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .partners-category-filter-wrap {
        display: flex;
    }
}

.partners-grid.enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.partner-card.enhanced {
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.partner-card.enhanced:hover {
    transform: translateY(-4px);
    border-color: rgba(233, 30, 99, 0.12);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
}

.partner-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
}

.partner-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.partner-card.enhanced:hover .partner-image-container img {
    transform: scale(1.05);
}

.partner-discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 6px 14px rgba(76, 175, 80, 0.18);
}

.partner-category-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    backdrop-filter: blur(5px);
}

.partner-content {
    padding: 20px;
}

.partner-card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.partner-favorite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #fff, #f8fafc);
    color: var(--text-secondary);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.partner-favorite-btn:hover {
    border-color: rgba(233, 30, 99, 0.22);
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.partner-favorite-btn.is-active {
    background: linear-gradient(180deg, #fff, #fff1f7);
    border-color: rgba(233, 30, 99, 0.24);
    color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(233, 30, 99, 0.12);
}

.partner-favorite-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.partner-favorite-btn-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.partner-favorite-btn-label {
    line-height: 1;
}

.partner-offer-box {
    margin: 12px 0 14px;
    padding: 13px 15px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(233, 30, 99, 0.05), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(233, 30, 99, 0.1);
}

.partner-offer-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.partner-offer-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.partner-offer-terms {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.partner-card-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark, #5b48b3));
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    margin: 5px 5px 5px 0;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(91, 72, 179, 0.14);
}

.partner-card-link-btn-success {
    background: linear-gradient(135deg, #4caf50, #45a049);
    font-weight: 600;
    margin-left: 0;
}

.partner-card-links-container {
    display: flex;
    flex-wrap: wrap;
    margin: 8px 0;
}

.partner-content h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--text-color);
}

.partner-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
}

.partner-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.partner-description.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.partner-description.expanded {
    display: block;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 13px;
    cursor: pointer;
    padding: 8px 0 0 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.read-more-btn:hover {
    text-decoration: underline;
}

.savings-table-value-success {
    color: var(--success-color);
    font-weight: 700;
}

.assigned-card-item-used {
    opacity: 0.7;
}

.digital-card-relative {
    position: relative;
}

.assigned-card-used-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(244, 67, 54, 0.9);
    color: #fff;
    padding: 10px 25px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    z-index: 10;
}

.assigned-code-hint {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.card-details-section-spaced {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color, rgba(255,255,255,0.2));
}

.card-details-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.card-details-grid-1 {
    grid-template-columns: repeat(1, 1fr);
}

.card-details-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card-details-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card-detail-item-panel {
    background: var(--bg-color, #f5f7fa);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.card-detail-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.card-detail-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-detail-value.is-used-up,
.card-detail-status-used {
    color: #ff6b6b;
}

.card-detail-status-used,
.card-detail-status-reward {
    font-size: 10px;
    margin-top: 2px;
}

.card-detail-status-reward {
    color: #0f766e;
    font-weight: 700;
}

.card-detail-value-sm {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.loyalty-reward-box {
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.18);
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.loyalty-reward-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.loyalty-reward-label {
    font-size: 12px;
    font-weight: 700;
    color: #0f766e;
}

.loyalty-reward-partner,
.loyalty-reward-next,
.loyalty-reward-count {
    color: var(--text-secondary);
}

.loyalty-reward-partner,
.loyalty-reward-count {
    font-size: 11px;
}

.loyalty-reward-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.loyalty-progress-track {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 10px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.18), rgba(15, 118, 110, 0.08));
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    margin-bottom: 8px;
}

.loyalty-progress-svg {
    display: block;
    width: 100%;
    height: 8px;
}

.loyalty-progress-bar {
    display: block;
    height: 100%;
    max-width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%);
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.18);
    transition: width 0.35s ease;
}

.loyalty-reward-next {
    font-size: 12px;
}

.loyalty-reward-count {
    margin-top: 6px;
}

.card-description-box {
    background: var(--bg-color, #f5f7fa);
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color, #667eea);
    margin-bottom: 12px;
}

.card-description-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.card-description-text {
    margin: 0;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-primary);
}

.btn-self-verify-block {
    width: 100%;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Self-Verify Button on Partner Cards */
.btn-verify-self {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-verify-self:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

.btn-verify-self:active {
    transform: translateY(0);
}

.no-partners-message {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

@media (max-width: 480px) {
    .partners-utility-bar {
        gap: 10px;
    }

    .partners-favorites-shortcut {
        min-height: 64px;
        padding: 14px;
        gap: 10px;
        border-radius: 18px;
    }

    .partners-favorites-icon {
        width: 38px;
        height: 38px;
    }

    .partners-favorites-copy strong {
        font-size: 18px;
    }

    .partners-favorites-copy span,
    .partners-favorites-cta {
        font-size: 11px;
    }

    .partners-city-filter-wrap {
        width: 100%;
        min-height: auto;
        padding: 11px 12px;
        border-radius: 16px;
    }

    .partners-city-filter-wrap select {
        font-size: 13px;
    }

    .partners-filter {
        justify-content: center;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .partners-grid.enhanced {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .partner-card.enhanced {
        border-radius: 18px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    }

    .partner-card-header-row {
        align-items: stretch;
    }

    .partner-favorite-btn {
        width: fit-content;
    }

    .partner-mini-grid,
    .partner-insights-grid,
    .partner-offer-grid {
        grid-template-columns: 1fr;
    }

    .partner-offer-actions,
    .recent-scan-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .partner-image-container {
        height: 160px;
    }
}

/* Plan Savings Label */
.plan-savings {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-top: -5px;
    margin-bottom: 15px;
    text-align: center;
}

/* ===================================
   PAYWALL OVERLAY STYLES
   =================================== */
.paywall-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: var(--border-radius);
}

[data-theme="dark"] .paywall-overlay {
    background: rgba(30, 30, 30, 0.98);
}

.paywall-overlay.hidden {
    display: none !important;
}

.paywall-content {
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.paywall-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.paywall-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.paywall-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.paywall-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    text-align: left;
    background: var(--bg-color);
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
}

.paywall-feature {
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.paywall-feature::before {
    content: '';
    display: none;
}

.paywall-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.paywall-price-option {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px 20px;
    text-align: center;
    min-width: 120px;
}

.paywall-price-option.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.05), rgba(233, 30, 99, 0.1));
    position: relative;
}

.price-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.price-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-save {
    display: block;
    font-size: 11px;
    color: var(--success-color);
    font-weight: 600;
    margin-top: 4px;
}

.paywall-price-divider {
    color: var(--text-muted);
    font-size: 14px;
}

.paywall-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.paywall-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.paywall-btn:active {
    transform: translateY(0);
}

/* Card page relative positioning for paywall */
#page-card {
    position: relative;
    min-height: 400px;
}

/* Subscription Status Badge */
.subscription-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.subscription-status-badge.active {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success-color);
}

.subscription-status-badge.inactive {
    background: rgba(244, 67, 54, 0.15);
    color: var(--error-color);
}

.subscription-status-badge.trial {
    background: rgba(255, 152, 0, 0.15);
    color: var(--warning-color);
}

/* ===================================
   SELF-VERIFICATION MODAL STYLES
   =================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-overlay.hidden {
    display: none !important;
}

.verification-modal {
    background: var(--card-bg);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 0;
}

.modal-body {
    padding: 20px;
}

.partner-verify-info {
    text-align: center;
    margin-bottom: 25px;
}

.partner-verify-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin-bottom: 10px;
}

.partner-verify-info h4 {
    margin: 0 0 5px;
    font-size: 18px;
}

.partner-verify-info p {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
}

/* Code Input Styles */
.verification-code-input {
    margin-bottom: 20px;
}

.verification-code-input label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
    text-align: center;
}

.code-inputs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.code-digit {
    width: 45px;
    height: 55px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.code-digit:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.2);
    outline: none;
}

.code-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 10px;
}

.verify-error {
    background: #ffebee;
    color: var(--error-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

.verify-alternatives {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.verify-alternatives p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.alt-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.alt-method {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    background: var(--bg-color);
}

.alt-method.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Success Mode Styles */
.verification-success {
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(76, 175, 80, 0.1) 0%, transparent 50%);
}

.success-animation {
    margin-bottom: 20px;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.checkmark {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    stroke-width: 2;
    stroke: var(--success-color);
    stroke-miterlimit: 10;
    animation: scale 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--success-color);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

@keyframes scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

.verification-success h2 {
    color: var(--success-color);
    margin-bottom: 20px;
    font-size: 22px;
}

.verification-details {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.verify-partner-name-success {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.verify-discount-success {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 5px;
}

.verify-user-success {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Dynamic Timer Ring */
.dynamic-timer {
    margin: 25px 0;
}

.timer-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
}

.timer-ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.timer-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 8;
}

.timer-progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-text span {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.timer-text small {
    font-size: 12px;
    color: var(--text-muted);
}

.timer-hint {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Verification Timestamp */
.verification-timestamp {
    background: var(--bg-color);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.verification-timestamp p {
    margin: 0 0 5px;
    font-size: 13px;
    color: var(--text-secondary);
}

.live-clock {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    letter-spacing: 2px;
}

/* Security Badge */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--success-color) 0%, #2E7D32 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Responsive */
@media (max-width: 400px) {
    .code-digit {
        width: 40px;
        height: 48px;
        font-size: 20px;
    }
    
    .code-inputs {
        gap: 5px;
    }
}

/* Verify at Partner Button on Store Card */
.btn-verify-at-partner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-verify-at-partner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-verify-at-partner:active {
    transform: translateY(0);
}

/* Partner Verify List */
.partner-verify-list {
    margin-top: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.partner-verify-list.hidden {
    display: none;
}

.partner-verify-list h4 {
    margin: 0 0 15px;
    text-align: center;
    color: var(--text-primary);
}

.partner-verify-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.partner-verify-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--bg-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.partner-verify-item:hover {
    border-color: var(--primary-color);
    background: rgba(233, 30, 99, 0.05);
}

.partner-verify-item img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
}

.partner-verify-item .partner-info {
    flex: 1;
}

.partner-verify-item .partner-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.partner-verify-item .partner-discount {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 500;
}

.partner-verify-item .verify-arrow {
    color: var(--text-muted);
    font-size: 18px;
}

/* Skeleton Loading */
@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton-loader {
    padding: 20px;
}
.skeleton-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}
.skeleton-box {
    background: linear-gradient(90deg, var(--bg-color) 25%, #e8e8e8 50%, var(--bg-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
    height: 16px;
}

.skeleton-box-line {
    flex: 1;
    height: 20px;
}
.skeleton-circle {
    background: linear-gradient(90deg, var(--bg-color) 25%, #e8e8e8 50%, var(--bg-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}
.skeleton-card {
    background: linear-gradient(90deg, var(--bg-color) 25%, #e8e8e8 50%, var(--bg-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 12px;
    height: 80px;
    margin-bottom: 12px;
}

/* ===================================
   CREATIVE IMPROVEMENTS
   Premium Visual Effects & Animations
   =================================== */

/* --- Animated Gradient Backgrounds --- */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes shimmerGlow {
    0% { box-shadow: 0 0 5px rgba(233, 30, 99, 0.2), 0 0 10px rgba(233, 30, 99, 0.1); }
    50% { box-shadow: 0 0 15px rgba(233, 30, 99, 0.4), 0 0 30px rgba(233, 30, 99, 0.15); }
    100% { box-shadow: 0 0 5px rgba(233, 30, 99, 0.2), 0 0 10px rgba(233, 30, 99, 0.1); }
}

@keyframes borderGlow {
    0%, 100% { border-color: var(--primary-color); }
    50% { border-color: var(--secondary-color); }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Ripple Effect on Buttons --- */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 10%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.8s;
}

.ripple-effect:active::after {
    transform: scale(0, 0);
    opacity: 0.4;
    transition: 0s;
}

/* Apply ripple to all interactive elements */
.btn-primary, .btn-secondary, .action-btn, .plan-btn,
.card-tab, .filter-btn, .menu-item, .bottom-nav-item {
    position: relative;
    overflow: hidden;
}

.btn-primary::after, .btn-secondary::after, .action-btn::after, .plan-btn::after,
.card-tab::after, .filter-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 10%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.8s;
}

.btn-primary:active::after, .btn-secondary:active::after,
.action-btn:active::after, .plan-btn:active::after,
.card-tab:active::after, .filter-btn:active::after {
    transform: scale(0, 0);
    opacity: 0.4;
    transition: 0s;
}

/* --- Glassmorphism Stat Cards --- */
.stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInUp 0.5s ease backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px 12px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

[data-theme="dark"] .stat-card {
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Animated Stat Values --- */
.stat-value {
    transition: all 0.3s ease;
}

.stat-value.counting {
    animation: countUp 0.4s ease;
}

.stat-icon {
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.15);
}

/* --- Enhanced Page Transitions --- */
.page {
    animation: none;
}

.page.active {
    animation: pageEnter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Home Page Hero Header --- */
.page-header {
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    animation: slideInLeft 0.5s ease backwards;
}

.page-header p {
    animation: slideInLeft 0.5s ease 0.1s backwards;
}

/* --- Floating Quick Action Cards --- */
.action-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: scaleIn 0.4s ease backwards;
}

.action-btn:first-child { animation-delay: 0.2s; }
.action-btn:last-child { animation-delay: 0.3s; }

.action-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.action-btn.primary:hover {
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
}

.action-btn .btn-icon {
    transition: transform 0.3s ease;
}

.action-btn:hover .btn-icon {
    transform: scale(1.15) rotate(-5deg);
}

/* --- Activity Items Staggered Animation --- */
.activity-item {
    animation: slideInRight 0.4s ease backwards;
    transition: all 0.2s ease;
}

.activity-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.activity-item:nth-child(1) { animation-delay: 0.1s; }
.activity-item:nth-child(2) { animation-delay: 0.2s; }
.activity-item:nth-child(3) { animation-delay: 0.3s; }
.activity-item:nth-child(4) { animation-delay: 0.4s; }
.activity-item:nth-child(5) { animation-delay: 0.5s; }

.activity-item:hover {
    background: rgba(233, 30, 99, 0.03);
    transform: translateX(4px);
}

.activity-icon {
    transition: all 0.3s ease;
}

.activity-item:hover .activity-icon {
    transform: scale(1.1);
    background: rgba(233, 30, 99, 0.1);
}

/* --- Enhanced Subscription Plan Cards --- */
.plan-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInUp 0.5s ease backwards;
}

.plan-card:nth-child(1) { animation-delay: 0.1s; }
.plan-card:nth-child(2) { animation-delay: 0.25s; }

.plan-card:hover {
    transform: translateY(-8px);
}

.plan-card.featured {
    position: relative;
}

.plan-card.featured::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), #FF9800, var(--primary-color));
    background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
    z-index: -1;
    opacity: 0.6;
}

/* --- Partners Grid Enhanced --- */
.partners-grid .partner-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: scaleIn 0.4s ease backwards;
}

.partners-grid .partner-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* --- How It Works Steps Animation --- */
.step-card {
    animation: slideInUp 0.5s ease backwards;
}

.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }

.step-number {
    transition: all 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

/* --- Nav & Menu Enhancements --- */
.main-nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(233, 30, 99, 0.95);
}

.bottom-nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .bottom-nav {
    background: rgba(30, 30, 30, 0.9);
}

.bottom-nav-item {
    transition: all 0.3s ease;
}

.bottom-nav-item.active {
    transform: translateY(-1px);
}

.bottom-nav-item.active .nav-icon {
    animation: none;
    background: linear-gradient(135deg, #e91e63, #d81b60);
    color: #fff;
    box-shadow: 0 10px 18px rgba(233, 30, 99, 0.22);
}

.bottom-nav-item .nav-icon {
    transition: transform 0.3s ease;
}

.bottom-nav-item:active .nav-icon {
    transform: scale(0.92);
}

/* --- Confetti Canvas --- */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* --- Verification Result Enhanced --- */
.verification-result.success {
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--success-color);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08), rgba(76, 175, 80, 0.02));
}

.verification-result.success .result-icon {
    animation: floatUp 1.5s ease infinite;
}

/* --- Enhanced Dark Mode Transition --- */
body, .main-content, .main-nav, .bottom-nav,
.side-menu, .stat-card, .content-card,
.digital-card, .modal-content, .activity-list {
    transition: background-color 0.4s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* --- Dark Mode Glow Effects --- */
[data-theme="dark"] .digital-card {
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.1);
}

[data-theme="dark"] .action-btn.primary {
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.25);
}

[data-theme="dark"] .btn-primary {
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.25);
}

[data-theme="dark"] .plan-card.featured {
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.15);
}

/* --- Toast Notification Enhanced --- */
.toast {
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* --- Modal Enhanced --- */
.modal.visible .modal-content {
    animation: modalEnter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalEnter {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* --- Splash Screen Enhanced --- */
.splash-icon {
    animation: pulse 2s infinite;
}

/* --- Menu Items Enhanced --- */
.menu-item {
    transition: all 0.2s ease;
}

.menu-item:hover {
    padding-left: 30px;
}

.menu-item .menu-icon {
    transition: transform 0.2s ease;
}

.menu-item:hover .menu-icon {
    transform: scale(1.15);
}

/* --- Greeting Section --- */
.greeting-section {
    text-align: center;
    margin-bottom: 8px;
}

.greeting-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

.greeting-emoji {
    font-size: 18px;
    vertical-align: middle;
}

/* --- Content Card Enhanced --- */
.content-card {
    animation: slideInUp 0.4s ease backwards;
}

/* --- Filter Buttons Enhanced --- */
.filter-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
    transform: translateY(-2px);
}

.filter-btn.active {
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

/* --- Form Focus Glow --- */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.12);
}

@media (max-width: 480px) {
    .page-header {
        margin-bottom: 22px;
        padding: 20px 18px 17px;
        border-radius: 20px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .page-header p {
        font-size: 14px;
    }

    .auth-modal-content {
        padding: 24px 18px 20px;
        border-radius: 24px;
    }

    .auth-header h2 {
        font-size: 24px;
    }

    .auth-icon {
        margin-bottom: 14px;
        padding: 8px;
        border-radius: 20px;
    }

    .auth-tabs {
        margin-bottom: 20px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .bottom-nav {
        left: max(10px, var(--safe-area-left));
        right: max(10px, var(--safe-area-right));
        bottom: max(8px, var(--safe-area-bottom));
        border-radius: 22px;
        padding: 7px 8px calc(7px + var(--safe-area-bottom));
    }

    .bottom-nav-item .nav-label {
        font-size: 10px;
    }
}

[data-theme="dark"] .page-header {
    border-color: rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(233, 30, 99, 0.14), transparent 34%),
        radial-gradient(circle at bottom left, rgba(103, 58, 183, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(30, 30, 34, 0.96), rgba(22, 22, 26, 0.98));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .auth-modal-content {
    border-color: rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(233, 30, 99, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(29, 29, 34, 0.98), rgba(18, 18, 22, 0.99));
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
}

[data-theme="dark"] .auth-icon {
    background: linear-gradient(180deg, rgba(42, 42, 46, 0.94), rgba(28, 28, 32, 0.96));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .auth-tabs {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(32, 32, 36, 0.92);
}

[data-theme="dark"] .auth-tab.active {
    background: linear-gradient(180deg, rgba(46, 46, 52, 0.96), rgba(58, 30, 44, 0.92));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .auth-modal-content .form-group label {
    color: #c8ced8;
}

[data-theme="dark"] .auth-modal-content .form-group input,
[data-theme="dark"] .auth-modal-content .form-group select,
[data-theme="dark"] .auth-modal-content .form-group textarea {
    background: linear-gradient(180deg, rgba(42, 42, 46, 0.96), rgba(34, 34, 38, 0.98));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .registration-note {
    background: linear-gradient(180deg, rgba(76, 175, 80, 0.12), rgba(28, 32, 30, 0.95));
    border-color: rgba(76, 175, 80, 0.2);
}

[data-theme="dark"] .auth-error {
    background: linear-gradient(180deg, rgba(95, 33, 36, 0.92), rgba(54, 24, 27, 0.96));
    border-color: rgba(244, 67, 54, 0.22);
}

[data-theme="dark"] .bottom-nav {
    background: rgba(22, 22, 26, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .bottom-nav-item.active {
    background: linear-gradient(180deg, rgba(233, 30, 99, 0.18), rgba(233, 30, 99, 0.08));
}

/* --- Become Partner CTA Enhanced --- */
.become-partner {
    position: relative;
    overflow: hidden;
}

.become-partner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: shimmerMove 6s linear infinite;
}

@keyframes shimmerMove {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Scrollbar Custom --- */
.main-content::-webkit-scrollbar {
    width: 4px;
}

.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
    background: rgba(233, 30, 99, 0.2);
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 30, 99, 0.4);
}

/* --- Reduced Motion Accessibility --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Premium Layout Alignment & Home Refresh --- */
.page-header {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: clamp(24px, 3vw, 32px) clamp(22px, 3vw, 34px) clamp(20px, 3vw, 26px);
    border-radius: 28px;
    isolation: isolate;
}

.page-header::before {
    content: '';
    position: absolute;
    right: -84px;
    bottom: -108px;
    width: 248px;
    height: 248px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.16) 0%, rgba(233, 30, 99, 0) 72%);
    z-index: 0;
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.46) 46%, rgba(255, 255, 255, 0) 100%);
    opacity: 0.72;
    z-index: 0;
    pointer-events: none;
}

.page-header > * {
    position: relative;
    z-index: 1;
}

.page-header p {
    max-width: 620px;
}

.home-hero,
.home-spotlight,
.quick-actions,
.recent-activity {
    position: relative;
    overflow: hidden;
}

.home-hero {
    padding: clamp(28px, 3.2vw, 36px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(233, 30, 99, 0.22), transparent 33%),
        radial-gradient(circle at 18% 18%, rgba(255, 193, 7, 0.18), transparent 24%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(255, 247, 251, 0.96) 54%, rgba(247, 250, 255, 0.94) 100%);
    box-shadow: 0 26px 54px rgba(15, 23, 42, 0.12);
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -90px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 72%);
    pointer-events: none;
}

.home-hero::after {
    content: '';
    position: absolute;
    inset: 16px 16px auto auto;
    width: 180px;
    height: 180px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    opacity: 0.52;
    transform: rotate(10deg);
    pointer-events: none;
}

.home-hero > * {
    position: relative;
    z-index: 1;
}

.home-hero-top {
    align-items: center;
}

.home-hero-copy h1 {
    max-width: 660px;
    font-size: clamp(32px, 5vw, 44px);
}

.home-hero-copy p {
    max-width: 620px;
    font-size: 16px;
}

.home-hero-actions {
    flex-wrap: wrap;
    margin-top: 26px;
}

.home-hero-btn {
    min-height: 54px;
    padding-left: 22px;
    padding-right: 22px;
    border-radius: 16px;
}

.home-hero .btn-secondary {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.home-hero .btn-secondary:hover {
    background: #fff;
    border-color: rgba(233, 30, 99, 0.18);
}

.home-spotlight {
    align-items: flex-end;
    padding: 24px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(255, 193, 7, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(103, 58, 183, 0.12), rgba(233, 30, 99, 0.09), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(103, 58, 183, 0.12);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.1);
}

.home-spotlight::before {
    content: '';
    position: absolute;
    inset: auto -48px -72px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 72%);
    pointer-events: none;
}

.home-spotlight-copy,
.spotlight-btn {
    position: relative;
    z-index: 1;
}

.home-spotlight-copy {
    max-width: 560px;
}

.home-spotlight h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.home-spotlight p {
    font-size: 15px;
    line-height: 1.65;
}

.spotlight-btn {
    min-width: 190px;
    border-radius: 16px;
    box-shadow: 0 16px 28px rgba(233, 30, 99, 0.18);
}

.home-stats {
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 22px 18px;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.96));
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.stat-card::before {
    height: 5px;
    background: linear-gradient(90deg, #ffb54a 0%, #e91e63 55%, #7e57c2 100%);
}

.stat-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.14), rgba(103, 58, 183, 0.12));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    font-size: 24px;
}

.stat-value {
    font-size: clamp(24px, 4vw, 30px);
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 12px;
    line-height: 1.5;
}

.quick-actions,
.recent-activity {
    padding: 24px;
    border-radius: 26px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 255, 0.95));
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.08);
}

.quick-actions .section-heading,
.recent-activity .section-heading {
    margin-bottom: 18px;
}

.action-buttons {
    gap: 14px;
}

.action-btn {
    min-height: 158px;
    padding: 26px 18px;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.action-btn.primary {
    background: linear-gradient(135deg, #f3578c 0%, #e91e63 46%, #7e57c2 100%);
    box-shadow: 0 18px 34px rgba(233, 30, 99, 0.24);
}

.action-btn.secondary {
    background: linear-gradient(180deg, #fff, #f7fbff);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.action-btn.secondary:hover {
    border-color: rgba(233, 30, 99, 0.18);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.1);
}

.action-btn .btn-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: rgba(233, 30, 99, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.action-btn.primary .btn-icon {
    background: rgba(255, 255, 255, 0.18);
}

.action-btn span:last-child {
    max-width: 170px;
    line-height: 1.45;
    text-align: center;
}

.activity-list {
    padding: 10px;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 248, 252, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.activity-item {
    align-items: flex-start;
    padding: 16px 18px;
    margin-bottom: 10px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.12), rgba(103, 58, 183, 0.1));
}

.activity-title {
    font-size: 14px;
    font-weight: 700;
}

.activity-time {
    margin-top: 4px;
}

@media (min-width: 769px) {
    .main-content:has(#page-admin.active) {
        max-width: min(100%, 1240px);
    }

    #page-profile .profile-header,
    #page-profile .profile-overview,
    #page-profile .profile-form,
    #page-profile .profile-settings {
        width: min(100%, 760px);
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .home-hero-top,
    .home-spotlight {
        align-items: stretch;
    }

    .quick-actions,
    .recent-activity {
        padding: 20px 18px;
        border-radius: 22px;
    }

    .action-btn {
        min-height: 138px;
    }

    .home-hero-btn,
    .spotlight-btn {
        width: 100%;
    }
}

[data-theme="dark"] .page-header::before {
    background: radial-gradient(circle, rgba(233, 30, 99, 0.22) 0%, rgba(233, 30, 99, 0) 72%);
}

[data-theme="dark"] .page-header::after {
    opacity: 0.24;
}

[data-theme="dark"] .home-hero,
[data-theme="dark"] .home-spotlight,
[data-theme="dark"] .quick-actions,
[data-theme="dark"] .recent-activity {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(30, 30, 34, 0.96), rgba(22, 22, 26, 0.98));
    box-shadow: 0 28px 52px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] .home-hero {
    background:
        radial-gradient(circle at top right, rgba(233, 30, 99, 0.22), transparent 33%),
        radial-gradient(circle at 18% 18%, rgba(255, 193, 7, 0.12), transparent 24%),
        linear-gradient(135deg, rgba(34, 34, 38, 0.98), rgba(28, 24, 34, 0.96) 54%, rgba(22, 26, 34, 0.98) 100%);
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .activity-list,
[data-theme="dark"] .activity-item,
[data-theme="dark"] .action-btn.secondary,
[data-theme="dark"] .home-hero .btn-secondary {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(38, 38, 42, 0.96), rgba(28, 28, 32, 0.98));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .stat-icon,
[data-theme="dark"] .activity-icon,
[data-theme="dark"] .action-btn .btn-icon {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.18), rgba(103, 58, 183, 0.22));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

