/* ── Specialized Page Styles ── */

.login-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; width: 100vw; background: var(--bg-base); }
.login-card { background: var(--bg-card); border-radius: var(--radius); padding: 48px 40px; text-align: center; width: 100%; max-width: 420px; border: 1px solid var(--border); }
.login-card h1 { color: var(--glow); font-size: 2rem; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.5px; }
.login-card p { color: var(--text-muted); margin: 0 0 32px; font-size: 0.95rem; }
.google-btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 28px; background: #fff; color: #333; font-weight: 600; font-size: 1rem; border-radius: 8px; border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; }
.google-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.google-btn svg { width: 20px; height: 20px; }

.connect-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; width: 100vw; background: var(--bg-base); padding: 20px; }
.connect-card { background: var(--bg-card); border-radius: var(--radius); padding: 40px; width: 100%; max-width: 520px; border: 1px solid var(--border); }
.connect-card h1 { color: var(--glow); font-size: 1.8rem; font-weight: 800; margin: 0 0 8px; }

.review-card { position: relative; z-index: 2; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 32px; width: 100%; max-width: 480px; text-align: center; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7), 0 0 45px -15px rgba(255,82,82,0.25); animation: popIn 0.4s cubic-bezier(0.16,1,0.3,1) forwards; }
.review-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #ff5252, transparent); border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }

.expired-badge { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: rgba(255,82,82,0.1); color: #ff5252; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid rgba(255,82,82,0.2); margin-bottom: 12px; white-space: nowrap; }

/* ── Specific Components ── */
.summary-box { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; text-align: left; font-size: 0.85rem; }
.summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.summary-label { color: var(--text-muted); }
.summary-row span.val { color: var(--text); font-weight: 500; font-family: monospace; font-size: 0.95rem; }
.summary-row.total { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }

.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat-card h4 { color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 6px; font-weight: 600; }
.stat-card .stat-value { color: #fff; font-size: 1.5rem; font-weight: 700; }
.notification-badge { background: #ff5252; color: #fff; font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: 10px; margin-left: 8px; }

.dashboard-sheets-card { padding: 12px 16px !important; }
.sheets-connected-row { display: flex; align-items: center; gap: 10px; }
.sheets-connected-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(var(--glow-rgb),0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sheets-icon-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.sheet-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: none; background: rgba(255,255,255,0.06); color: var(--text-muted); cursor: pointer; transition: background 0.2s, color 0.2s; }
.sheet-icon-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.sheet-icon-btn--danger:hover { background: rgba(255,82,82,0.15); color: #ff5252; }
.icon-external-link { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: none; background: rgba(var(--glow-rgb), 0.08); color: var(--glow); cursor: pointer; transition: background 0.2s, transform 0.15s; }
.icon-external-link:hover { background: rgba(var(--glow-rgb), 0.18); transform: scale(1.08); }

.sub-plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-content: start; }
.sub-plan-card { padding: 28px !important; display: flex; flex-direction: column; gap: 0; }
.sub-plan-tier { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.sub-plan-price { font-size: 2.2rem; font-weight: 800; color: var(--glow); display: flex; align-items: center; gap: 4px; margin-bottom: 24px; }
.sub-plan-price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.sub-plan-features { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.sub-plan-features li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--text-muted); }
.sub-plan-buy { width: 100%; padding: 13px; font-size: 0.95rem; margin-top: auto; }
.sub-plan-locked { opacity: 0.4; filter: grayscale(0.8); pointer-events: none; }

.sub-pending-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sub-pending-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sub-pending-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.sub-pending-detail { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.92rem; }
.sub-pending-tier { font-weight: 600; color: var(--text-primary); }
.sub-pending-dot { color: var(--text-muted); }
.sub-pending-badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 20px; background: rgba(255,171,64,0.12); border: 1px solid rgba(255,171,64,0.3); color: #ffab40; font-size: 0.78rem; font-weight: 600; }
.sub-pending-cancel { flex-shrink: 0; margin-left: auto; }
.sub-popup-error { display: none; margin-bottom: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 82, 82, 0.1); border: 1px solid rgba(255, 82, 82, 0.25); color: #ff8a80; font-size: 0.85rem; }
.sub-popup-error.show { display: block; }

/* ── Inventory Styles ── */
.inventory-header { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.inventory-search-wrap { width: 260px; max-width: 100%; display: flex; align-items: center; margin-bottom: 0; border-radius: 12px; outline: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(var(--glow-rgb), 0.12); }
.inventory-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); z-index: 2; pointer-events: none; }
.inventory-search-wrap input { padding-left: 40px !important; }

/* ── Locked Gates ── */
.tab-section.tab-with-sub-gate.active { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.analytics-locked-gate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 10; margin: 0; border: none; background: transparent; padding: 20px; }
.analytics-locked-inner { text-align: center; max-width: 400px; display: flex; flex-direction: column; align-items: center; }
.analytics-locked-icon { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,82,82,0.1); color: #ff5252; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; position: relative; animation: pulseRed 2s infinite; }
.analytics-locked-icon svg { stroke: #ff5252; width: 36px; height: 36px; }
.analytics-locked-title { font-size: 1.5rem; font-weight: 800; color: #fff; margin: 0 0 10px; }
.analytics-locked-text { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 24px; line-height: 1.5; }
@keyframes pulseRed { 0% { box-shadow: 0 0 0 0 rgba(255,82,82,0.4); } 70% { box-shadow: 0 0 0 20px rgba(255,82,82,0); } 100% { box-shadow: 0 0 0 0 rgba(255,82,82,0); } }
