:root {
    --primary: #0a1c35;
    --secondary: #e66533;
    --black: #111111;
    --white: #ffffff;
    --gray-light: #f3f4f6;
    --gray-border: #d1d5db;
    --gray-text: #6b7280;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--black);
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary);
    font-weight: 700;
}

.text-primary {
    color: var(--primary) !important;
}

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

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

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

.btn-primary:hover {
    background-color: #061224;
    border-color: #061224;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #cf5526;
    border-color: #cf5526;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn-outline-secondary {
    color: var(--secondary);
    border-color: var(--secondary);
}

.btn-outline-secondary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
}

/* Custom Utilities */
.section-padding {
    padding: 80px 0;
}

.auth-left-panel {
    background: linear-gradient(135deg, var(--primary) 0%, #1a3a5f 100%);
    color: var(--white);
}

/* Feature Cards Redesign */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 28, 53, 0.03) 0%, rgba(230, 101, 51, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(230, 101, 51, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    background: rgba(10, 28, 53, 0.05);
    color: var(--primary);
}

.feature-card:hover .icon-wrapper {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.feature-card:hover .icon-wrapper.secondary-icon {
    background: var(--secondary);
}

.feature-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-desc {
    color: var(--gray-text);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #0f2b4d 0%, #0a1c35 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section h2 {
    color: #fff !important;
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 50rem;
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    box-shadow: none;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Footer Redesign */
.footer {
    background-color: #061224;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-logo {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    margin-bottom: 0.8rem;
}

.footer-link:hover {
    color: #fff;
    transform: translateX(5px);
}

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--secondary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    margin-top: 4rem;
}

/* Dashboard Layout Styles */
.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: white;
    border-right: 1px solid #e5e7eb;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.sidebar-toggle-btn:hover {
    color: var(--primary);
}

.sidebar-menu {
    padding: 0.75rem 0;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.sidebar>.p-3 {
    flex-shrink: 0;
}

.sidebar>.border-top {
    flex-shrink: 0;
}

.nav-link {
    color: #6b7280;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    transition: all 0.2s;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background-color: #f3f4f6;
    border-right: 3px solid var(--primary);
}

.nav-link i {
    font-size: 1rem;
}

.main-content {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: var(--primary);
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.mobile-menu-toggle:hover {
    background: #f3f4f6;
    transform: scale(1.05);
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

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

    .sidebar-toggle-btn {
        display: block;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .sidebar-overlay {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 4.5rem;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
        padding-top: 1rem;
    }

    .top-bar>div:last-child {
        width: 100%;
        justify-content: space-between;
    }

    /* Sidebar subscription card responsive */
    .subscription-premium {
        font-size: 0.9rem;
    }

    .plan-name {
        font-size: 1rem;
    }

    .btn-premium-cta {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .main-content {
        padding: 0.75rem;
        padding-top: 4rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .stat-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .stat-trend {
        top: 1rem;
        right: 1rem;
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    .chart-card {
        padding: 1rem;
    }

    .chart-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Chart canvas responsive */
    .chart-card canvas {
        max-width: 100%;
        height: auto !important;
    }

    .scanner-info-bar {
        padding: 1rem;
    }

    .scanner-info-bar .row {
        text-align: center;
    }

    .scanner-info-bar .d-flex {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .scanner-qr-code {
        margin-top: 1rem;
        width: 100px;
        height: 100px;
    }

    .scanner-info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    /* Topbar responsive */
    .top-bar {
        padding: 1rem 0;
    }

    .top-bar h4 {
        font-size: 1.25rem;
    }

    .top-bar .d-flex.gap-2 {
        flex-wrap: wrap;
    }

    .top-bar .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    /* Subscription card responsive */
    .subscription-premium {
        padding: 1rem;
    }

    .plan-name {
        font-size: 1rem;
    }

    .premium-details {
        font-size: 0.8rem;
    }

    /* User profile dropdown responsive */
    .user-profile .d-none.d-sm-block {
        display: none !important;
    }

    /* Dashboard grid responsive */
    .row.g-4 {
        --bs-gutter-y: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 575.98px) {
    .mobile-menu-toggle {
        top: 0.5rem;
        left: 0.5rem;
        padding: 0.4rem 0.6rem;
        font-size: 1.1rem;
    }

    .main-content {
        padding: 0.5rem;
        padding-top: 3.5rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

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

    .top-bar h4 {
        font-size: 1.1rem;
    }

    .top-bar .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

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

/* Dashboard Stats & Charts */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-trend {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.stat-trend.positive {
    background-color: #dcfce7;
    color: #166534;
}

.stat-trend.negative {
    background-color: #fee2e2;
    color: #991b1b;
}

.chart-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    height: 100%;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

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

.chart-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.btn-action {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-action:hover {
    background-color: #1d4ed8;
    color: white;
    transform: translateY(-1px);
}

/* Wizard Styles (Create Card) */
.wizard-container {
    display: flex;
    flex-grow: 1;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    align-items: flex-start;
}

.wizard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e5e7eb;
    min-height: 0;
    min-width: 0;
    /* Fix for horizontal scroll with wide content */
}

.wizard-preview {
    width: 400px;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: sticky;
    top: 20px;
}

/* Scoped styles for preview card stats */
.preview-card-stats .stat-label {
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: #6b7280;
    margin-bottom: 0.1rem;
}

.preview-card-stats .stat-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111;
}

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

.wizard-steps {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.wizard-step {
    color: #9ca3af;
    font-size: 0.875rem;
    position: relative;
    cursor: pointer;
    font-weight: 500;
}

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

.wizard-step.active::after {
    content: '';
    position: absolute;
    bottom: -1.6rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.wizard-content {
    padding: 2rem;
    flex-grow: 1;
}

.card-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card-type-option {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-type-option:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-type-option.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.card-type-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card-type-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    margin-top: 0.5rem;
    display: inline-block;
}

.badge-retention {
    background: #dcfce7;
    color: #166534;
}

.badge-acquisition {
    background: #dbeafe;
    color: #1e40af;
}

.card-type-option.selected .badge-retention {
    background: #22c55e;
    color: white;
}

.card-type-option.selected .badge-acquisition {
    background: #60a5fa;
    color: white;
}

.card-type-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f8f9fa;
}

.card-type-option.disabled:hover {
    border-color: #e5e7eb;
    box-shadow: none;
}

.badge-coming-soon {
    background: #e9ecef;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.reward-program-option {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reward-program-option:hover {
    border-color: var(--primary);
    background: #f8f9fa;
}

.reward-program-option.selected {
    border-color: var(--primary);
    background: #f0f7ff;
    position: relative;
}

.reward-program-option.selected::after {
    content: '\F26E';
    /* bi-check-circle-fill */
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--primary);
    font-size: 1.2rem;
}

.btn-check:checked+.reward-program-option {
    border-color: var(--primary);
    background: #f0f7ff;
    position: relative;
}

.btn-check:checked+.reward-program-option::after {
    content: '\F26E';
    /* bi-check-circle-fill */
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--primary);
    font-size: 1.2rem;
}

.preview-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.preview-toggles {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding-top: 0;
}

.preview-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: none;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.2s;
}

.preview-toggle-btn:hover {
    background: #d1d5db;
}

.preview-toggle-btn.active {
    background: #4f46e5;
    color: white;
}

.preview-toggle-btn.active.android {
    background: #3ddc84;
    color: white;
}

.preview-phone {
    width: 300px;
    height: 600px;
    background-image: url('../img/iphone_frame.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    transition: background-image 0.3s ease;
}

.preview-screen {
    position: absolute;
    top: 11%;
    left: 7%;
    width: 86%;
    height: 78%;
    background: #f3f4f6;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}

.preview-phone.android {
    background-image: url('../img/android_frame.svg');
}

.preview-phone.android .preview-screen {
    top: 8%;
    left: 6%;
    width: 88%;
    height: 84%;
    border-radius: 15px;
}

.preview-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.preview-card-header {
    padding: 1rem 1.25rem;
    background: white;
}

.preview-header-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: #111;
    text-align: left;
}

.preview-card-stamps {
    background: #f3f4f6;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    justify-items: center;
}

.stamp-slot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #d1d5db;
}

.stamp-slot.filled {
    background: transparent;
    border-color: #111;
    color: #111;
}

.preview-card-points {
    background: #f3f4f6;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.points-display {
    text-align: center;
}

.points-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.points-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.points-progress {
    width: 100%;
    max-width: 200px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0a1c35 0%, #1a3a5f 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.points-progress-text {
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.preview-card-stats {
    padding: 0.75rem 1rem;
    background: white;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f3f4f6;
}

.preview-card-qr {
    padding: 1.5rem;
    background: white;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-code {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: block;
}

.qr-area {
    text-align: center;
    margin-top: auto;
    padding-top: 1rem;
}

.reward-details-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.form-label-custom {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control-custom,
.form-select-custom {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #111;
    transition: border-color 0.2s;
}

.form-control-custom:focus,
.form-select-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 28, 53, 0.1);
    outline: none;
}

.input-group-text-custom {
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 0.5rem 0 0 0.5rem;
    color: #6b7280;
}

.form-control-custom.with-prefix {
    border-left: none;
    border-radius: 0 0.5rem 0.5rem 0;
}

.btn-delete-reward {
    color: #9ca3af;
    background: transparent;
    border: 1px solid #e5e7eb;
    width: 42px;
    height: 42px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-delete-reward:hover {
    color: #ef4444;
    border-color: #ef4444;
    background: #fef2f2;
}

.border-dashed {
    border-style: dashed !important;
}

.cursor-pointer {
    cursor: pointer;
}

.card-checkbox .form-check-input:checked+label {
    border-color: var(--primary) !important;
    background-color: #f0f9ff;
}

.wizard-footer {
    padding: 1rem 2rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    background: white;
}

/* Profile Page Styles */
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notification-item {
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #f0f7ff;
}

.notification-item.unread:hover {
    background-color: #e6f2ff;
}

.notification-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
}

/* Global Utilities */
.hover-lift {
    transition: transform 0.2s;
}

.hover-lift:hover {
    transform: translateY(-3px);
}

.hover-primary:hover {
    color: var(--primary) !important;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Topbar Redesign Styles */
.btn-ghost {
    background: transparent;
    border: none;
    color: #6b7280;
    transition: all 0.2s;
}

.btn-ghost:hover,
.btn-ghost:focus {
    background-color: #f3f4f6;
    color: var(--primary);
}

.notification-badge {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

.hover-bg-light:hover {
    background-color: #f8f9fa;
}

/* Profile Dropdown Specifics */
.user-profile .avatar {
    width: 38px;
    height: 38px;
    font-size: 1rem;
}

/* Subscription Card Styles */
.subscription-card {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
}

.subscription-card .progress {
    background-color: #e5e7eb;
    border-radius: 10px;
}

.subscription-card .progress-bar {
    border-radius: 10px;
}

/* Upgrade Page Styles */
.focus-within-border:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(10, 28, 53, 0.1);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-period {
    font-size: 1rem;
    color: #6b7280;
}

/* Pricing Toggle */
#btn-monthly.active,
#btn-yearly.active {
    background-color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

#btn-monthly,
#btn-yearly {
    border: none;
}

/* Locked Feature Styles */
.locked-feature {
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    /* Enforce minimum height for empty states */
    display: flex;
    /* Ensure flex behavior can fill space if needed */
    flex-direction: column;
}

.locked-feature .locked-content {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    flex-grow: 1;
    /* Allow content to take up space */
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    /* Additional glass effect on overlay */
}

.locked-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    /* Responsive width */
}

.locked-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.locked-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #212529;
}

.locked-desc {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Premium Subscription Card Styles */
.subscription-premium {
    border-radius: 16px;
    padding: 1.25rem;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.subscription-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Gradients for Plans */
.subscription-premium.starter {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.subscription-premium.plus {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.subscription-premium.pro {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.subscription-premium.enterprise {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.subscription-premium.free {
    background: #f3f4f6;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}

/* Glass effect overlay */
.premium-glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    pointer-events: none;
}

/* Header Section */
.premium-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.plan-badge-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    backdrop-filter: blur(4px);
}

.subscription-premium.free .plan-icon {
    background: rgba(0, 0, 0, 0.05);
    color: #4b5563;
}

.plan-name {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

/* Status Indicator Pulse */
.status-pulse {
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    /* Green */
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 rgba(74, 222, 128, 0.7);
    animation: pulse-green 2s infinite;
}

.subscription-premium.free .status-pulse {
    background-color: #9ca3af;
    /* Gray */
    animation: none;
    box-shadow: none;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

/* Dates Section */
.premium-details {
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    opacity: 0.8;
}

.detail-value {
    font-weight: 600;
}

/* Countdown Pill */
.days-left-pill {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* CTA Button */
.btn-premium-cta {
    width: 100%;
    background: white;
    color: var(--primary);
    border: none;
    padding: 0.6rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 1;
}

.btn-premium-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Free Plan Specific Overrides */
.subscription-premium.free .btn-premium-cta {
    background: var(--primary);
    color: white;
}

/* Scanner Info Bar */
.scanner-info-bar {
    background: linear-gradient(135deg, rgba(10, 28, 53, 0.05) 0%, rgba(230, 101, 51, 0.05) 100%);
    border: 1px solid rgba(10, 28, 53, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.scanner-info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, #1a3a5f 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.scanner-qr-code {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 2px solid rgba(10, 28, 53, 0.1);
    padding: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991.98px) {
    .scanner-info-bar {
        text-align: center;
    }

    .scanner-info-bar .d-flex {
        justify-content: center;
    }

    .scanner-qr-code {
        margin: 0 auto;
    }
}

/* Card Issuing Form Styles */
.card-issuing-form-section {
    margin-top: 2rem;
}

.card-issuing-form-table {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
}

.form-table-header {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr 60px;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
}

.form-field-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr 60px;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    align-items: center;
    transition: background-color 0.2s;
}

.form-field-row:hover {
    background-color: #f9fafb;
}

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

.form-table-col {
    display: flex;
    align-items: center;
}

.form-table-col-type,
.form-table-col-name {
    min-width: 0;
}

.form-table-col-required,
.form-table-col-unique {
    justify-content: center;
}

.form-table-col-action {
    justify-content: center;
}

.btn-delete-field {
    color: #9ca3af;
    background: transparent;
    border: 1px solid #e5e7eb;
    width: 38px;
    height: 38px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.btn-delete-field:hover {
    color: #ef4444;
    border-color: #ef4444;
    background: #fef2f2;
}

.btn-delete-field:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-delete-field:disabled:hover {
    color: #9ca3af;
    border-color: #e5e7eb;
    background: transparent;
}

/* Tier Row Styles */
.tier-row {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    align-items: center;
    transition: background-color 0.2s;
}

.tier-row:hover {
    background-color: #f9fafb;
}

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

.tier-row .form-table-col {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tier-row .form-table-col .text-danger {
    font-size: 0.875rem;
}

.cardholder-status-table {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
}

.cardholder-status-table .form-table-header {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
}

/* Form Switch Custom Styling */
.form-check-input:checked {
    background-color: #22c55e;
    border-color: #22c55e;
}

.form-check-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 0.25rem rgba(34, 197, 94, 0.25);
}

.form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
    cursor: pointer;
}

@media (max-width: 768px) {

    .form-table-header,
    .form-field-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .form-table-header {
        display: none;
    }

    .form-field-row {
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        margin-bottom: 0.75rem;
        padding: 1rem;
    }

    .form-table-col::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.75rem;
        color: #6b7280;
        margin-bottom: 0.25rem;
        display: block;
    }
}

/* UTM Section Styles */
.utm-section {
    margin-top: 2rem;
}

.utm-form {
    max-width: 100%;
}

#btn-add-utm-link {
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #6b7280;
    transition: all 0.2s;
}

#btn-add-utm-link:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #374151;
}

#btn-add-utm-link:focus {
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

/* Privacy Policy Section Styles */
.privacy-policy-section {
    margin-top: 2rem;
}

.privacy-policy-main,
.consent-section,
.privacy-policy-full-text {
    margin-bottom: 2rem;
}

.privacy-policy-textarea-wrapper {
    position: relative;
}

.privacy-policy-textarea,
.privacy-policy-textarea-full {
    resize: vertical;
    min-height: 80px;
}

.privacy-policy-textarea-full {
    min-height: 150px;
}

.privacy-policy-asterisk {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    color: #ef4444;
    font-size: 1rem;
    font-weight: 600;
    pointer-events: none;
}

.privacy-policy-toggle,
.consent-toggle {
    width: 2.5em;
    height: 1.25em;
    cursor: pointer;
}

.privacy-policy-toggle:checked,
.consent-toggle:checked {
    background-color: #22c55e;
    border-color: #22c55e;
}

.privacy-policy-toggle:focus,
.consent-toggle:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 0.25rem rgba(34, 197, 94, 0.25);
}

/* Apple Wallet Card Custom Design */
.aw-card {
    background-color: #1C1C1E;
    /* Default Apple dark gray/black */
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    min-height: 480px;
    /* Approximate ratio */
}

/* Header: Logo + Brand Name + Main Value (e.g. Points) */
.aw-card-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.aw-header-branding {
    display: flex;
    align-items: center;
    gap: 8px;
}

.aw-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 16px;
    overflow: hidden;
}

.aw-brand-name {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.aw-header-value {
    text-align: right;
}

.aw-value-number {
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
}

.aw-value-label {
    font-size: 10px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
    font-weight: 500;
}

/* Strip Image (Optional, good for visual impact) */
.aw-strip {
    height: 120px;
    background: linear-gradient(135deg, #0a1c35 0%, #1a3a5f 100%);
    /* Fallback or brand gradient */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.aw-strip i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.2);
}

/* Body: Fields + Stamps */
.aw-body {
    padding: 12px 16px;
    /* Reduced vertical padding */
    flex: 1;
    background-color: transparent;
    transition: all 0.3s ease;
}

.aw-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    /* Reduced margin */
}

/* Collapsed State Styles */
.aw-card.collapsed {
    min-height: auto;
    cursor: pointer;
}

.aw-card.collapsed .aw-body,
.aw-card.collapsed .aw-barcode-section {
    display: none;
}

.aw-card.collapsed .aw-strip {
    height: 60px !important;
    /* Smaller strip in collapsed mode */
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

/* Hide stamp visuals in collapsed strip if desired, or scale them down. 
   Usually collapsed passes show just the branding and maybe a strip hint. */
.aw-card.collapsed .aw-strip>* {
    opacity: 0;
    /* Hide strip content in collapsed mode for cleaner look */
}

.aw-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.aw-field-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    margin-bottom: 2px;
    font-weight: 500;
}

.aw-field-value {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
}

/* Stamps Grid Customization for Wallet Look */
.aw-stamps-container {
    background: rgba(255, 255, 255, 0.08);
    /* Slight contrast background */
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
}

.aw-stamps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    justify-items: center;
}

.aw-stamp {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.aw-stamp.filled {
    background-color: #E66533;
    /* Brand secondary color or Gold */
    border: none;
    color: white;
    box-shadow: 0 2px 8px rgba(230, 101, 51, 0.4);
}

/* Barcode Section */
.aw-barcode-section {
    background-color: #fff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    min-height: 100px;
}

.aw-barcode-img {
    width: 80%;
    height: 50px;
    /* Simulate barcode with simple gradient or SVG */
    background: repeating-linear-gradient(90deg,
            #000,
            #000 2px,
            #fff 2px,
            #fff 4px);
    margin-bottom: 4px;
}

.aw-barcode-number {
    color: #000;
    font-family: monospace;
    font-size: 12px;
}

/* Template Gallery Styles */
.template-gallery {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 1rem;
    padding-top: 0.5rem;
    /* Add some space for hover effects */
}

/* Hide scrollbar but keep functionality */
.template-gallery::-webkit-scrollbar {
    height: 8px;
}

.template-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.template-gallery::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.template-gallery::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.template-item {
    flex: 0 0 140px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 12px;
}

.template-item:hover {
    transform: translateY(-5px);
}

.template-item.selected .template-preview {
    box-shadow: 0 0 0 3px var(--primary);
    transform: scale(1.02);
}

.template-preview {
    height: 200px;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.template-preview-strip {
    height: 60px;
    width: 100%;
    margin-top: 35px;
    background: rgba(255, 255, 255, 0.2);
}

.template-preview-stamps {
    position: absolute;
    bottom: 20px;
    left: 10px;
    right: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.template-preview-stamps span {
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.template-name {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-text);
}

.template-item.selected .template-name {
    color: var(--primary);
    font-weight: 600;
}

/* Chevron Rotation Logic */
.create-card-chevron {
    transition: transform 0.3s ease;
}

[aria-expanded="true"] .create-card-chevron {
    transform: rotate(180deg);
}