/* ============================================================
   UPLIFT.SYSTEMS — Main Stylesheet
   ============================================================ */

/* ── Variables ── */
:root {
    --green:        #33AB53;
    --green-gray-icon:  #f5f5f7;
    --green-dark:   #28944A;
    --green-dim:    rgba(51, 171, 83, 0.12);
    --green-glow:   rgba(51, 171, 83, 0.20);
    --red:          #FF3B30;
    --orange:       #FF9500;
    --gray:         #8E8E93;
    --sidebar-bg:   #F5F5F7;
    --content-bg:   #FFFFFF;
    --card-bg:      #FFFFFF;
    --border:       rgba(0, 0, 0, 0.09);
    --border-med:   rgba(0, 0, 0, 0.14);
    --text:         #1D1D1F;
    --text-sec:     #6E6E73;
    --text-ter:     #AEAEB2;
    --header-h:     62px;
    --sidebar-w:    222px;
    --radius:       14px;
    --radius-lg:    20px;
    --shadow-sm:    0 1px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md:    0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-lg:    0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    --shadow-modal: 0 24px 64px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
    --transition:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--content-bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* Unsupported Country Banner */
.unsupported-banner {
    background: linear-gradient(90deg, #c0392b, #e74c3c);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}

/* Main layout row */
.app-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ── Sidebar Overlay (mobile) ── */
.sidebar-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(3px);
    z-index: 900;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

/* ── Sidebar ── */
aside {
    width: var(--sidebar-w);
    height: 100%;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 16px 10px 20px;
    z-index: 1000;
    position: fixed; left: 0; top: 0;
    transform: translateX(-100%);
    transition: transform var(--transition-spring);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
}
aside.active { transform: translateX(0); }

.logo-area-sidebar {
    padding: 8px 10px 4px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 17px;
}

.nav-section-label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-ter);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0 10px;
    margin: 18px 0 5px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 9px 10px;
    text-decoration: none;
    color: var(--text-sec);
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    gap: 11px;
    transition: background var(--transition), color var(--transition);
    margin-bottom: 1px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.nav-item i {
    font-size: 15px;
    width: 20px;
    text-align: center;
    color: var(--gray);
    flex-shrink: 0;
    transition: color var(--transition);
}
.nav-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
}
.nav-item:hover i { color: var(--green); }
.nav-item.active {
    background: var(--green-dim);
    color: var(--green);
    font-weight: 600;
}
.nav-item.active i { color: var(--green); }
.nav-item .nav-badge {
    margin-left: auto;
    background: var(--green);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    line-height: 1.4;
}

/* ── Window Main ── */
.window-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* ── Header ── */
header {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 100;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-btn {
    background: none; border: none;
    font-size: 18px;
    color: var(--text-sec);
    cursor: pointer;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}
.menu-btn:hover { background: rgba(0,0,0,0.06); color: var(--text); }

.app-icon-mini {
    width: 28px; height: 28px;
    background: var(--green);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--green-glow);
}

.brand-name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.brand-name strong { color: var(--green); }

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Search */
.search-wrap {
    position: relative;
}
.search-wrap input {
    background: rgba(0, 0, 0, 0.055);
    border: 1.5px solid transparent;
    padding: 8px 12px 8px 34px;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: width var(--transition), border-color var(--transition), background var(--transition);
    width: 200px;
    color: var(--text);
    display: none;
}
.search-wrap input::placeholder { color: var(--text-ter); }
.search-wrap input:focus {
    border-color: var(--green);
    background: #fff;
    box-shadow: 0 0 0 3px var(--green-dim);
}
.search-wrap .search-icon {
    position: absolute;
    left: 10px; top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 13px;
    pointer-events: none;
    display: none;
}
.search-icon-btn {
    background: none; border: none;
    color: var(--text-sec);
    font-size: 16px;
    cursor: pointer;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}
.search-icon-btn:hover { background: rgba(0,0,0,0.06); color: var(--text); }
.search-wrap.expanded input { display: block; }
.search-wrap.expanded .search-icon { display: block; }

/* User avatar */
.user-pill { position: relative; cursor: pointer; }
.avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--green);
    display: block;
    transition: box-shadow var(--transition);
}
.avatar:hover { box-shadow: 0 0 0 3px var(--green-dim); }

.login-btn {
    background: var(--green);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
    letter-spacing: 0.01em;
}
.login-btn:hover {
    background: var(--green-dark);
    box-shadow: 0 4px 12px var(--green-glow);
}

/* User dropdown */
.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px); right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 190px;
    z-index: 500;
    padding: 6px;
    animation: dropdownIn 0.18s ease;
}
@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.user-dropdown.active { display: block; }

.dropdown-name {
    padding: 9px 12px 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-sec);
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

.menu-item {
    padding: 9px 12px;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 9px;
}
.menu-item:hover { background: rgba(0, 0, 0, 0.05); }
.menu-item.danger { color: var(--red); }
.menu-item i { width: 16px; text-align: center; }

/* ── Content Scroll Area ── */
.content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 22px 18px 0;
    scroll-behavior: smooth;
}

/* ── Intro Banner ── */
.intro-banner {
    background: linear-gradient(135deg, #1e8c40 0%, #33AB53 60%, #4DC96A 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.intro-banner::before {
    content: '';
    position: absolute;
    right: -40px; top: -50px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}
.intro-banner::after {
    content: '';
    position: absolute;
    right: 60px; bottom: -60px;
    width: 140px; height: 140px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.intro-banner-inner { position: relative; z-index: 1; }
.intro-banner h1 {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 7px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.intro-banner p {
    font-size: 13.5px;
    opacity: 0.88;
    line-height: 1.55;
    max-width: 380px;
}
.close-banner {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(255,255,255,0.18);
    border: none;
    width: 26px; height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: background var(--transition);
    z-index: 2;
}
.close-banner:hover { background: rgba(255,255,255,0.28); }

/* ── Active Apps Carousel ── */
.carousel-section { margin-bottom: 24px; }

.section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-ter);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 11px;
}

.carousel-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-card {
    flex-shrink: 0;
    scroll-snap-align: start;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 12px;
    width: 130px;
    text-decoration: none;
    color: var(--text);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}
.carousel-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--green);
}
.carousel-card img {
    width: 48px; height: 48px;
    border-radius: 12px;
    object-fit: cover;
}
.carousel-card .cc-name {
    font-size: 11.5px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    color: var(--text);
}
.carousel-card .cc-open {
    font-size: 11px;
    color: var(--green);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Section Header ── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.section-header .app-count {
    font-size: 12px;
    color: var(--text-ter);
    background: rgba(0,0,0,0.05);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* ── App Grid ── */
.app-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.app-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    cursor: default;

}
.app-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0,0,0,0.14);
}

.app-icon {
    width: 58px; height: 58px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    box-shadow: var(--shadow-sm);
    display: block;
}

/* Icon wrapper — holds icon + premium badge */
.app-icon-wrap {
    position: relative;
    flex-shrink: 0;
    width: 58px;
    height: 58px;
}

/* Premium star badge on app icon */
.app-premium-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #999, #666);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.22);
    border: 1.5px solid var(--card-bg);
}

.app-details { flex: 1; min-width: 0; }

.app-name {
    font-size: 17px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}
.app-sub {
    font-size: 12px;
    color: var(--text-sec);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.app-sub i { font-size: 10px; }
.app-desc {
    font-size: 12px;
    color: var(--text-sec);
    margin-top: 4px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Activate / Open buttons */
.btn-get {
    flex-shrink: 0;
    background: rgba(0,0,0,0.055);
    color: var(--text-sec);
    border: none;
    padding: 8px 17px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.btn-get:hover {
    background: var(--green);
    color: #fff;
    box-shadow: 0 4px 12px var(--green-glow);
}
.btn-get.open {
    
    background: var(--green-dim);
    color: var(--green);
    font-weight: 600;
}
.btn-get.open:hover {
    background: rgba(0,0,0,0.1);
    color: var(--text);
    box-shadow: none;
}
.btn-get:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Empty State ── */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 24px;
    color: var(--text-ter);
}
.empty-state i { font-size: 44px; margin-bottom: 14px; display: block; }
.empty-state p { font-size: 14px; }

/* ── Skeleton Loader ── */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e6e6e6 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite;
    border-radius: 6px;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Footer ── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 13px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: var(--sidebar-bg);
}
.site-footer span {padding-right: 10px; padding-left: 10px; font-size: 10px; color: var(--text-ter); }

/* ── Spinner ── */
.spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
    flex-shrink: 0;
}
.spinner-dark {
    border-color: rgba(0,0,0,0.12);
    border-top-color: var(--green);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Google Sign-In Button ── */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--border-med);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
    font-family: inherit;
    margin-bottom: 4px;
}
.btn-google:hover {
    background: #f8f8f8;
    border-color: rgba(0,0,0,0.2);
    box-shadow: var(--shadow-sm);
}
.btn-google:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    color: var(--text-ter);
    font-size: 12px;
    font-weight: 500;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Modals ── */
.modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-overlay.active { display: flex; }

.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-modal);
    width: 100%;
    max-width: 420px;
    max-height: 92vh;
    overflow-y: auto;
    animation: modalIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
    from { transform: scale(0.93) translateY(12px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 0;
}
.modal-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.modal-close {
    background: rgba(0,0,0,0.06); border: none;
    width: 30px; height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray);
    transition: background var(--transition);
    flex-shrink: 0;
}
.modal-close:hover { background: rgba(0,0,0,0.12); }
.modal-body { padding: 20px 24px 26px; }

/* Tabs */
.modal-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.055);
    border-radius: 11px;
    padding: 3px;
    margin-bottom: 22px;
}
.tab-btn {
    flex: 1;
    padding: 9px;
    border: none;
    background: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-sec);
}
.tab-btn.active {
    background: #fff;
    color: var(--text);
    font-weight: 600;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* Form */
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-sec);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border-med);
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: #fff;
    color: var(--text);
    appearance: none;
    -webkit-appearance: none;
}
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238E8E93' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.form-group input:focus,
.form-group select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-dim);
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: var(--green);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition), transform 0.1s;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.01em;
}
.btn-primary:hover:not(:disabled) {
    background: var(--green-dark);
    box-shadow: 0 6px 18px var(--green-glow);
}
.btn-primary:active:not(:disabled) { transform: scale(0.99); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-secondary {
    width: 100%;
    background: rgba(0,0,0,0.055);
    color: var(--text);
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-secondary:hover { background: rgba(0,0,0,0.09); }

/* Alerts */
.alert {
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 14px;
    display: none;
    line-height: 1.45;
}
.alert.show { display: flex; align-items: flex-start; gap: 8px; }
.alert i { flex-shrink: 0; margin-top: 1px; }
.alert-error  { background: #FFF1F0; color: #cf1322; border: 1px solid rgba(255,59,48,0.18); }
.alert-success { background: #F0FFF4; color: #389e0d; border: 1px solid rgba(51,171,83,0.2); }

/* Business list */
.biz-scroll { max-height: 220px; overflow-y: auto; margin-bottom: 12px; }
.business-list { display: flex; flex-direction: column; gap: 7px; }
.business-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 13px;
    border: 1.5px solid var(--border-med);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.business-item:hover { border-color: var(--green); background: rgba(51,171,83,0.04); }
.business-item.selected { border-color: var(--green); background: var(--green-dim); }
.biz-name { font-size: 14px; font-weight: 600; }
.biz-meta { font-size: 11.5px; color: var(--text-sec); margin-top: 2px; }
.check-icon { color: var(--green); font-size: 16px; display: none; flex-shrink: 0; }
.business-item.selected .check-icon { display: block; }

.no-business-msg {
    text-align: center;
    padding: 24px 16px;
    color: var(--text-sec);
    font-size: 14px;
    border: 1.5px dashed var(--border-med);
    border-radius: 10px;
    margin-bottom: 12px;
}
.no-business-msg i { font-size: 28px; opacity: 0.25; display: block; margin-bottom: 8px; }

.divider-or {
    text-align: center;
    color: var(--text-ter);
    font-size: 12px;
    font-weight: 500;
    margin: 14px 0;
    position: relative;
}
.divider-or::before,
.divider-or::after {
    content: '';
    position: absolute;
    top: 50%; width: 44%; height: 1px;
    background: var(--border);
}
.divider-or::before { left: 0; }
.divider-or::after { right: 0; }

/* Add biz form inline */
.add-biz-form {
    display: none;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.add-biz-form.open { display: block; }

/* Info modal (staff/unsupported) */
.modal-info-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}
.modal-info-icon.orange { background: rgba(255,149,0,0.12); color: var(--orange); }
.modal-info-icon.blue   { background: rgba(0, 122,255,0.1); color: #007AFF; }
.modal-info-title { font-size: 19px; font-weight: 700; margin-bottom: 8px; text-align: center; letter-spacing: -0.01em; }
.modal-info-body  { font-size: 14px; color: var(--text-sec); line-height: 1.6; text-align: center; margin-bottom: 22px; }

/* Success modal */
.success-icon-wrap {
    width: 68px; height: 68px;
    background: var(--green-dim);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.success-icon-wrap i { font-size: 32px; color: var(--green); }

/* App page (coming soon) */
.app-page {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}
.coming-soon-card {
    background: #fff;
    border-radius: 24px;
    border: 0px solid var(--border);
    padding: 44px 36px;
    max-width: 440px;
    width: 100%;
}
.app-big-icon {
    width: 90px; height: 90px;
    border-radius: 22px;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    box-shadow: 0 8px 24px var(--green-glow);
}
.cs-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,149,0,0.1);
    color: var(--orange);
    font-size: 11.5px; font-weight: 700;
    padding: 5px 13px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.app-page h1 { font-size: 25px; font-weight: 800; margin-bottom: 7px; letter-spacing: -0.02em; }
.app-page .app-cat { font-size: 13px; color: var(--text-sec); margin-bottom: 14px; }
.app-page .app-desc-text { color: var(--text-sec); line-height: 1.6; margin-bottom: 22px; font-size: 14px; }
.progress-bar { background: rgba(0,0,0,0.06); height: 5px; border-radius: 20px; margin-bottom: 22px; overflow: hidden; }
.progress-fill {
    height: 100%; width: 65%;
    background: linear-gradient(90deg, var(--green), #5FD080);
    border-radius: 20px;
    animation: progPulse 2.5s ease-in-out infinite alternate;
}
@keyframes progPulse { from { width: 55%; } to { width: 76%; } }
.no-access-alert {
    background: rgba(255,59,48,0.07);
    border: 1px solid rgba(255,59,48,0.18);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
    color: var(--red);
    font-size: 13px;
    text-align: left;
    display: flex; align-items: flex-start; gap: 8px;
}
.no-access-alert a { color: var(--red); font-weight: 700; text-decoration: underline; }

.nav-section-label--biz {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 4px;
}
.nav-section-add-btn {
    width: 20px; height: 20px;
    border-radius: 6px;
    border: none;
    background: none;
    color: var(--text-ter);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
}
.nav-section-add-btn:hover {
    background: var(--green-dim);
    color: var(--green);
}

/* ── Sidebar Business Items ── */
.nav-biz-item {
    position: relative;
}
.nav-biz-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-biz-flag {
    font-size: 13px;
    flex-shrink: 0;
    margin-left: auto;
}
.nav-biz-empty {
    font-size: 12px;
    color: var(--text-ter);
    padding: 6px 10px 4px;
    font-style: italic;
}

/* ── Payment Method Rows ── */
.pm-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    margin-bottom: 8px;
    background: var(--card-bg);
    transition: border-color var(--transition);
}
.pm-row:hover { border-color: var(--border-med); }
.pm-info { flex: 1; min-width: 0; }
.pm-name {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pm-instr {
    display: block;
    font-size: 12px;
    color: var(--text-sec);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pm-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.pm-btn {
    width: 30px; height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all var(--transition);
    color: var(--text-sec);
}
.pm-btn-edit:hover  { background: var(--green-dim); border-color: var(--green); color: var(--green); }
.pm-btn-delete:hover { background: rgba(255,59,48,0.08); border-color: var(--red); color: var(--red); }

.pm-empty {
    text-align: center;
    padding: 20px 16px;
    color: var(--text-ter);
    font-size: 13px;
    border: 1.5px dashed var(--border-med);
    border-radius: 10px;
    margin-bottom: 14px;
}
.pm-empty i { display: block; font-size: 24px; opacity: 0.25; margin-bottom: 7px; }


/* ── Sidebar Footer ── */
.sidebar-footer {
    margin-top: auto;
    padding: 14px 10px 4px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.sidebar-footer-link {
    background: none;
    border: none;
    font-size: 11.5px;
    color: var(--green);
    cursor: pointer;
    padding: 2px 3px;
    border-radius: 4px;
    transition: color var(--transition);
    font-family: inherit;
}
.sidebar-footer-link:hover { color: var(--green); }
.sidebar-footer-dot {
    font-size: 11px;
    color: var(--border-med);
    user-select: none;
}

/* ── Privacy Modal Sections ── */
.privacy-section {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.privacy-section h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.privacy-section h4 i {
    color: var(--green);
    font-size: 12px;
    width: 14px;
    text-align: center;
}
.privacy-section p {
    font-size: 13px;
    color: var(--text-sec);
    line-height: 1.65;
}

/* ── WhatsApp Button ── */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #25D366;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
    box-shadow: 0 4px 16px rgba(37,211,102,0.30);
    letter-spacing: 0.01em;
}
.whatsapp-btn i { font-size: 20px; }
.whatsapp-btn:hover {
    background: #1ebe5d;
    box-shadow: 0 6px 22px rgba(37,211,102,0.40);
    transform: translateY(-1px);
}


/* ════════════════════════════════════════════════════════════
   APP-LEVEL SHARED STYLES
   Reusable across all Uplift apps (Note Taker, Invoice Creator, etc.)
   ════════════════════════════════════════════════════════════ */

/* ── App Root ── */
.app-root {
    position: relative;
    height: calc(100vh - var(--header-h));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--sidebar-bg);
}

/* ── App Views (one active at a time) ── */
.app-view {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}
.app-view.active { display: flex; }

/* ── App View Header bar ── */
.app-view-head {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--content-bg);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.app-view-head h1 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
}

/* ── Scrollable content area inside a view ── */
.app-scroll {
    flex: 1;
    overflow-y: auto;
    background: var(--content-bg);
}
.app-scroll::-webkit-scrollbar { width: 5px; }
.app-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }

/* ── Back button ── */
.app-back-btn {
    width: 32px; height: 32px;
    border: 1px solid var(--border);
    background: var(--sidebar-bg);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text-sec);
    font-size: 13px;
    transition: all var(--transition);
    flex-shrink: 0;
}
.app-back-btn:hover { border-color: var(--green); color: var(--green); background: var(--green-dim); }

/* ── Toolbar button ── */
.app-tool-btn {
    width: 32px; height: 32px;
    border: 1px solid var(--border);
    background: var(--content-bg);
    border-radius: 7px;
    cursor: pointer;
    font-size: 12.5px;
    color: var(--text-sec);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}
.app-tool-btn:hover         { border-color: var(--green); color: var(--green); background: var(--green-dim); }
.app-tool-btn.active        { border-color: var(--green); color: var(--green); background: var(--green-dim); }
.app-tool-divider           { width: 1px; height: 20px; background: var(--border); margin: 0 2px; flex-shrink: 0; }

/* ── Save status indicator ── */
.app-save-status {
    margin-left: auto;
    font-size: 11.5px;
    color: var(--text-ter);
    display: flex; align-items: center; gap: 5px;
    flex-shrink: 0;
}
.app-save-status .save-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
    transition: background 0.3s;
}
.app-save-status.saving .save-dot { background: #f59e0b; animation: saveDotPulse 0.9s infinite; }
.app-save-status.error  .save-dot { background: var(--red); }
@keyframes saveDotPulse { 0%,100%{opacity:1} 50%{opacity:0.25} }

/* ── App empty state ── */
.app-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    color: var(--text-ter);
    gap: 10px;
}
.app-empty-state i  { font-size: 48px; opacity: 0.2; }
.app-empty-state h3 { font-size: 17px; font-weight: 700; color: var(--text-sec); margin: 0; }
.app-empty-state p  { font-size: 13.5px; margin: 0; max-width: 260px; line-height: 1.55; color: var(--text-sec); }

/* ── App access gate ── */
.app-gate {
    flex: 1; display: flex; align-items: center;
    justify-content: center; padding: 40px;
}
.app-gate-card { text-align: center; max-width: 300px; }
.app-gate-card i  { font-size: 52px; color: var(--green); opacity: 0.3; margin-bottom: 18px; display: block; }
.app-gate-card h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.app-gate-card p  { color: var(--text-sec); font-size: 13.5px; line-height: 1.6; }

/* ── Skeleton loader ── */
.skel { animation: skelPulse 1.4s ease infinite; }
@keyframes skelPulse { 0%,100%{opacity:1} 50%{opacity:0.45} }
.skel-card {
    background: var(--content-bg);
    border-radius: 14px;
    padding: 16px;
    border: 1.5px solid var(--border);
}
.skel-line {
    background: var(--border);
    border-radius: 6px;
    height: 12px;
    margin-bottom: 8px;
}

/* ── App search bar ── */
.app-search-bar { position: relative; }
.app-search-bar input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: var(--content-bg);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sm);
    font-family: inherit;
}
.app-search-bar input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-dim);
}
.app-search-bar input::placeholder { color: var(--text-ter); }
.app-search-bar .search-icon {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-ter);
    font-size: 13px;
    pointer-events: none;
}

/* ════════════════════════════════════════════════════════════
   FAB  — Floating Action Button
   Standard reusable pattern for all apps
   ════════════════════════════════════════════════════════════ */
.fab-wrap {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.fab-btn {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    box-shadow: 0 6px 20px rgba(51,171,83,0.4), 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1),
                background var(--transition),
                box-shadow var(--transition);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.fab-btn:hover  { background: var(--green-dark); box-shadow: 0 8px 28px rgba(51,171,83,0.5); }
.fab-btn:active { transform: scale(0.92) !important; }
.fab-btn.open   { transform: rotate(45deg); background: #3a3a3c; box-shadow: 0 6px 20px rgba(0,0,0,0.25); }

.fab-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.16,1,0.3,1);
}
.fab-actions.open { pointer-events: all; opacity: 1; transform: translateY(0); }

.fab-action {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.fab-action-label {
    background: #1D1D1F;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.fab-action-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
    transition: transform 0.15s;
    flex-shrink: 0;
}
.fab-action:hover .fab-action-icon { transform: scale(1.1); }
.fab-action-icon.green  { background: var(--green); }
.fab-action-icon.blue   { background: #3b82f6; }
.fab-action-icon.red    { background: var(--red); }
.fab-action-icon.orange { background: var(--orange); }

.fab-backdrop {
    display: none;
    position: fixed; inset: 0;
    z-index: 499;
}
.fab-backdrop.show { display: block; }

@media (max-width: 520px) { .fab-wrap { bottom: 20px; right: 16px; } }

/* ════════════════════════════════════════════════════════════
   QUILL EDITOR — shared theming
   ════════════════════════════════════════════════════════════ */
.ql-toolbar.ql-snow {
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    background: var(--sidebar-bg);
    padding: 8px 12px !important;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.ql-container.ql-snow {
    border: none !important;
    flex: 1;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
}
.ql-editor {
    padding: 28px 32px 80px !important;
    max-width: 740px;
    margin: 0 auto;
    min-height: 100%;
    line-height: 1.78;
    color: var(--text);
    caret-color: var(--green);
}
.ql-editor.ql-blank::before {
    color: var(--text-ter) !important;
    font-style: italic;
    left: 32px !important;
}
.ql-editor h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.ql-editor h2 { font-size: 20px; font-weight: 700; }
.ql-editor h3 { font-size: 16px; font-weight: 700; }
.ql-editor blockquote {
    border-left: 3px solid var(--green) !important;
    margin: 10px 0 !important;
    padding: 6px 16px !important;
    color: var(--text-sec);
    background: rgba(51,171,83,0.05);
    border-radius: 0 8px 8px 0;
}
.ql-editor a { color: var(--green); }
.ql-editor pre.ql-syntax {
    background: #1d1d1f;
    color: #e5e7eb;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 13px;
    line-height: 1.6;
}
.ql-snow .ql-stroke { stroke: var(--text-sec) !important; }
.ql-snow .ql-fill   { fill: var(--text-sec) !important; }
.ql-snow .ql-picker  { color: var(--text-sec) !important; }
.ql-snow .ql-picker-options { background: var(--content-bg) !important; border-color: var(--border) !important; border-radius: 10px; box-shadow: var(--shadow-md) !important; }
.ql-snow .ql-tooltip { border-color: var(--border) !important; border-radius: 10px !important; box-shadow: var(--shadow-md) !important; color: var(--text) !important; background: var(--content-bg) !important; }
.ql-snow .ql-tooltip input[type=text] { border-color: var(--border) !important; border-radius: 6px !important; color: var(--text) !important; outline: none !important; }
.ql-toolbar.ql-snow .ql-formats button:hover .ql-stroke,
.ql-toolbar.ql-snow .ql-formats button.ql-active .ql-stroke { stroke: var(--green) !important; }
.ql-toolbar.ql-snow .ql-formats button:hover .ql-fill,
.ql-toolbar.ql-snow .ql-formats button.ql-active .ql-fill   { fill: var(--green) !important; }
.ql-toolbar.ql-snow .ql-formats button:hover,
.ql-toolbar.ql-snow .ql-formats button.ql-active            { color: var(--green) !important; }
.ql-snow .ql-picker.ql-header .ql-picker-label:hover,
.ql-snow .ql-picker.ql-header .ql-picker-item:hover { color: var(--green) !important; }

@media (max-width: 520px) {
    .ql-editor { padding: 20px 16px 80px !important; }
    .ql-editor.ql-blank::before { left: 16px !important; }
    .ql-toolbar.ql-snow { padding: 6px 8px !important; }
}

/* ── Desktop breakpoint ── */
@media (min-width: 768px) {
    body { flex-direction: row; }
    .app-layout { flex: 1; overflow: hidden; }

    aside {
        position: relative;
        transform: none !important;
        box-shadow: none;
        padding-top: 22px;
        height: 100%;
        flex-shrink: 0;
    }
    .logo-area-sidebar { display: none; }
    .menu-btn { display: none; }

    .search-wrap input { display: block; width: 200px; }
    .search-wrap .search-icon { display: block; }
    .search-icon-btn { display: none; }

    .content-scroll { padding: 30px 40px 0; }

    .app-grid { grid-template-columns: repeat(auto-fill, minmax(370px, 1fr)); gap: 12px; }

    .intro-banner h1 { font-size: 26px; }
    .intro-banner p   { font-size: 14px; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

/* ── Toast Notifications ── */
#toastContainer {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    background: #1D1D1F;
    color: #fff;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    min-width: 260px;
    max-width: 340px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.12);
    pointer-events: all;
    cursor: pointer;
    animation: toastIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border-left: 3px solid transparent;
}
.toast.removing {
    animation: toastOut 0.28s ease forwards;
}
.toast-icon {
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}
.toast-body { flex: 1; }
.toast-title {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 2px;
    display: block;
}
.toast-msg {
    font-size: 12.5px;
    opacity: 0.82;
}

/* Variants */
.toast.success { border-left-color: var(--green); }
.toast.success .toast-icon { color: #4ade80; }

.toast.error { border-left-color: var(--red); }
.toast.error .toast-icon { color: #ff6b6b; }

.toast.info { border-left-color: #60a5fa; }
.toast.info .toast-icon { color: #60a5fa; }

.toast.warning { border-left-color: var(--orange); }
.toast.warning .toast-icon { color: #fbbf24; }

/* Progress bar that shrinks over toast lifetime */
.toast-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 2px;
    background: rgba(255,255,255,0.25);
    border-radius: 0 0 12px 12px;
    transition: width linear;
}

.toast { position: relative; overflow: hidden; }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(24px) scale(0.95); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0) scale(1); max-height: 100px; margin-bottom: 0; }
    to   { opacity: 0; transform: translateX(24px) scale(0.95); max-height: 0; padding: 0; margin-bottom: 0; }
}

@media (max-width: 480px) {
    .app-card {
        max-width: 330px;
    }
    #toastContainer {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
    .toast { min-width: unset; max-width: unset; width: 100%; }
}

.grecaptcha-badge { visibility: hidden; }

/* ── Global print reset ──
   Fixes body { height:100dvh; overflow:hidden } which causes blank print.
   Works for all pages on the platform. */
@media print {
    html, body {
        height: auto !important;
        overflow: visible !important;
        background: #fff !important;
    }
    aside, header, .site-footer, .sidebar-overlay,
    .fab-wrap, #toastContainer, #pwaInstallBanner { display: none !important; }
}
/* ── Business Hub Modal ── */
.biz-hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.biz-hub-card {
    background: var(--sidebar-bg);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 18px 14px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.biz-hub-card:hover {
    border-color: var(--green);
    background: rgba(51,171,83,0.04);
    transform: translateY(-2px);
}
.biz-hub-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 2px;
}
.biz-hub-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-pri);
    line-height: 1.2;
}
.biz-hub-sub {
    font-size: 11.5px;
    color: var(--text-ter);
    line-height: 1.3;
}

/* ── Modal back button ── */
.modal-back-btn {
    background: none;
    border: none;
    color: var(--text-sec);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 4px;
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition);
}
.modal-back-btn:hover {
    background: var(--sidebar-bg);
    color: var(--text-pri);
}

/* ── Subscription Plans ── */
.sub-plans-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sub-plan-card {
    background: var(--sidebar-bg);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 16px 16px 14px;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    position: relative;
    overflow: hidden;
}
.sub-plan-card:hover {
    border-color: var(--green);
    background: rgba(51,171,83,0.04);
}
.sub-plan-card.sub-plan-current {
    border-color: var(--green);
    background: rgba(51,171,83,0.06);
    cursor: default;
    pointer-events: none;
}
.sub-plan-card.sub-plan-current::after {
    content: 'Current';
    position: absolute;
    top: 10px;
    right: 12px;
    background: var(--green);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.04em;
}
.sub-plan-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    background: #2196F3;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.04em;
}
.sub-plan-card.sub-plan-current .sub-plan-badge { display: none; }
.sub-plan-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.sub-plan-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.sub-plan-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-pri);
    line-height: 1.1;
}
.sub-plan-price {
    font-size: 12.5px;
    color: var(--text-sec);
    font-weight: 500;
    margin-top: 2px;
}
.sub-plan-features {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sub-plan-feat {
    font-size: 12.5px;
    color: var(--text-sec);
    display: flex;
    align-items: center;
    gap: 7px;
}
.sub-plan-feat i { font-size: 11px; color: var(--green); flex-shrink: 0; }
.sub-plan-feat--no i { color: var(--text-ter); }

/* ── Business Users ── */
.biz-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    transition: opacity var(--transition);
}
.biz-user-row:last-child { border-bottom: none; }
.biz-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    flex-shrink: 0;
}
.biz-user-info { flex: 1; min-width: 0; }
.biz-user-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-pri);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.biz-user-meta {
    font-size: 12px;
    color: var(--text-ter);
    margin-top: 2px;
    text-transform: capitalize;
}

/* ── Add User: Existing User Search ── */
.au-search-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition);
    margin-bottom: 2px;
}
.au-search-result:hover {
    background: rgba(51,171,83,0.07);
}
.au-search-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(51,171,83,0.12);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}
.au-search-info { flex: 1; min-width: 0; }
.au-search-name  { font-size: 13.5px; font-weight: 700; color: var(--text-pri); }
.au-search-email { font-size: 11.5px; color: var(--text-ter); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Business item: already-active state in activate modal ── */
.biz-item--active {
    border-color: rgba(51,171,83,0.35) !important;
    background: rgba(51,171,83,0.03);
}