@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #8C9666; /* Elegant Olive */
    --primary-light: #A5AF83;
    --primary-dark: #636D43;
    --secondary: #D4AF37; /* Gold Accent */
    --accent: #D4AF37;
    --success: #10b981;
    --danger: #ef4444;
    
    --bg-main: #F2F4E8; /* Light Olive Background */
    --bg-card: rgba(255, 255, 240, 0.7); /* Translucent Ivory */
    --bg-glass: rgba(255, 255, 255, 0.15);
    
    --text-main: #2D3025; /* Deep Charcoal-Olive */
    --text-muted: #6B7280;
    --text-on-primary: #ffffff;
    
    --border-glass: rgba(255, 255, 255, 0.5);
    --border-subtle: rgba(140, 150, 102, 0.15);
    
    --shadow-sm: 0 2px 4px 0 rgba(45, 48, 37, 0.05);
    --shadow-md: 0 8px 16px -2px rgba(45, 48, 37, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(45, 48, 37, 0.15);
    --shadow-xl: 0 25px 50px -12px rgba(45, 48, 37, 0.25);
    --shadow-gold: 0 8px 20px rgba(140, 150, 102, 0.4);
    
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 0% 0%, rgba(140, 150, 102, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(212, 175, 55, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    line-height: 1.6;
}

#app {
    width: 100%;
    max-width: 480px;
    background: transparent;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

main {
    flex-grow: 1;
    padding: 1.25rem;
    padding-bottom: 6rem; /* Space for nav */
}

.screen {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden {
    display: none !important;
}

/* Glassmorphism Card Style */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-lg);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-panel:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Auth Screen */
#auth-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}

.logo-container {
    margin-bottom: 2rem;
}

.logo-v {
    display: none; /* Replaced by SVG */
}

.vizad-logo-img {
    width: 130px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 20px 40px rgba(140, 150, 102, 0.3));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vizad-logo-img:hover {
    transform: scale(1.08) rotate(2deg);
}

.vizad-logo-svg {
    display: none;
}

h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
    color: var(--primary-dark);
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 3rem;
    font-weight: 500;
}

#auth-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    position: relative;
    width: 100%;
}

input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: white;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.2s;
    outline: none;
}

input:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Skeleton Loaders */
.skeleton {
    width: 100%;
    background: linear-gradient(90deg, #E8EAD9 25%, #F5F7EC 50%, #E8EAD9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 2s infinite ease-in-out;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 12px;
    background: #E8EAD9;
    border-radius: 4px;
    margin-bottom: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.btn {
    padding: 1rem 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-gold);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -120%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: sheen 6s infinite;
}

@keyframes sheen {
    0% { left: -120%; }
    15% { left: 120%; }
    100% { left: 120%; }
}

.btn-google {
    background: var(--ivory);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

/* Toast System */
.toast {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--secondary);
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    font-weight: 600;
    pointer-events: auto;
    animation: toastSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    display: flex;
    align-items: center;
    gap: 12px;
}

@keyframes toastSlideIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.toast.removing {
    animation: toastSlideOut 0.4s ease-in forwards;
}

@keyframes toastSlideOut {
    to { transform: scale(0.9); opacity: 0; }
}

.toast-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    flex-shrink: 0;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-on-primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.4);
}

.btn-google {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}

.btn-google:hover {
    background: #fafafa;
}

/* Typography */
h1, h2, h3, h4 {
    letter-spacing: -0.025em;
    font-weight: 700;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Bottom Nav */
#bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    z-index: 100;
    box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.05);
}

#bottom-nav button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
    flex: 1;
}

#bottom-nav button:hover {
    opacity: 1;
}

#bottom-nav button.active {
    color: var(--primary);
    opacity: 1;
}

#bottom-nav button.active svg {
    transform: scale(1.1);
}

/* Dashboard Accordion */
.content-accordion {
    width: 100%;
}

.accordion-item {
    margin-bottom: 15px;
}

.accordion-header {
    background: var(--ivory);
    border: 1.5px solid var(--primary-light);
    border-radius: 20px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.accordion-header:hover {
    border-color: var(--primary);
    background: white;
}

.accordion-item.active .accordion-header {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: white;
}

.accordion-content {
    background: white;
    border: 1.5px solid var(--primary-light);
    border-top: none;
    border-radius: 0 0 20px 20px;
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 800px;
    padding: 1.25rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 1rem;
}

.mini-stat {
    padding: 10px;
    background: var(--bg-main);
    border-radius: 12px;
    text-align: center;
}

.mini-stat-val {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-dark);
}

.mini-stat-label {
    display: block;
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

/* Profile Screen */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    padding: 0.5rem;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-lg);
    border: 3px solid white;
}

.profile-info h3 {
    margin: 0;
    font-size: 1.25rem;
}

.profile-info p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.profile-settings {
    margin-bottom: 2.5rem;
}

.toggle-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    cursor: pointer;
    background: white;
}

.toggle-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toggle-title {
    font-size: 0.9375rem;
    font-weight: 700;
}

.toggle-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.toggle-control input {
    display: none;
}

.switch {
    width: 44px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 99px;
    position: relative;
    transition: all 0.3s ease;
}

.switch::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

input:checked + .switch {
    background: var(--primary);
}

input:checked + .switch::before {
    left: 23px;
}

.dashboard-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

.action-sidebar {
    position: absolute;
    bottom: 1.5rem;
    right: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    z-index: 200; /* Higher than content & video */
    pointer-events: none; /* Allow clicks through to video controls */
}

.action-sidebar > * {
    pointer-events: auto; /* Re-enable for buttons */
}

.feed-action {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.feed-action:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.feed-action.saved {
    color: var(--secondary);
    background: rgba(236, 72, 153, 0.15);
    border-color: rgba(236, 72, 153, 0.4);
}

/* Attention Unlock States */
.claim-voucher-btn.locked {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.claim-voucher-btn.locked svg {
    filter: grayscale(1);
}

.claim-voucher-btn.unlocked {
    background: var(--success);
    color: white;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
    animation: pulse-success 1.5s infinite;
    border: none;
    opacity: 1 !important;
}

@keyframes pulse-success {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.claim-voucher-btn.claimed {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #10B981 !important;
    pointer-events: none;
    animation: none !important;
    box-shadow: none;
}

.claim-voucher-btn.claimed svg {
    filter: none;
}

/* Success Shimmer Effect */
.success-shimmer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    transform: translate(-50%, -50%) rotate(0deg);
    animation: shimmer-burst 0.8s ease-out forwards;
    pointer-events: none;
    z-index: 10;
}

@keyframes shimmer-burst {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(-50%, -50%) rotate(180deg) scale(2); opacity: 0; }
}

.watch-progress-ring {
    position: absolute;
    inset: -2px;
    pointer-events: none;
    z-index: 1;
}

.watch-progress-ring circle {
    fill: none;
    stroke: var(--success);
    stroke-width: 3;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 0.3s ease;
    filter: drop-shadow(0 0 2px var(--success));
}

.reward-status-label {
    position: absolute;
    top: 120px;
    right: 75px; /* Offset from trigger */
    background: rgba(16, 185, 129, 0.95);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    z-index: 210;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.reward-status-label.show {
    opacity: 1;
    transform: translateX(0);
}

/* Premium Offer Sticker */
.offer-sticker {
    position: absolute;
    top: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 250; /* Above everything when shown */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9) translateY(-10px);
    transform-origin: top right;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 200px;
}

.offer-sticker.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

.offer-sticker::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.5), transparent, rgba(99, 102, 241, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.offer-sticker-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.offer-sticker-title {
    font-size: 16px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.offer-sticker-icon {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    border: 2px solid white;
}

@keyframes sticker-pop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.offer-sticker:hover {
    max-width: 250px;
    background: rgba(255, 255, 255, 0.25);
}

.offer-sticker .offer-details {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.offer-sticker:hover .offer-details {
    max-height: 100px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fullscreen-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 200;
    transition: all 0.2s ease;
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.share-biz-btn {
    background: #25D366;
    border: none;
}

.shared-tag {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: var(--primary);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-lg);
    z-index: 180;
}

.volume-toggle {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Auth Divider */
.auth-divider {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-divider::before, .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.auth-divider span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Business Card View */
#biz-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.biz-card-container {
    width: 100%;
    max-width: 440px;
    min-height: calc(100vh - 2rem);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.biz-card-header {
    text-align: center;
    margin-bottom: 2rem;
    z-index: 2;
}

.biz-card-logo {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    background: white;
    margin: 0 auto 1.25rem;
    padding: 4px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.biz-card-logo img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.biz-card-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: inherit;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.biz-card-category {
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: inherit;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Tabs */
.biz-nav-tabs {
    display: flex;
    gap: 8px;
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    z-index: 2;
}

.biz-tab {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Actions Grid */
.biz-action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 2rem;
    z-index: 2;
}

.biz-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.biz-action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.biz-action-btn svg {
    width: 22px;
    height: 22px;
}

.biz-action-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: inherit;
}

/* Offers */
.biz-section-title {
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.offer-card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    border-left: 6px solid;
    position: relative;
    overflow: hidden;
}

.offer-title {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 6px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.offer-desc {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Close Button */
#close-biz-detail {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s ease;
}

#close-biz-detail:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1) rotate(90deg);
}

/* Ad Grid */
#biz-ad-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.biz-ad-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.biz-ad-thumb {
    aspect-ratio: 9/16;
    background: #000;
}

.biz-ad-info {
    padding: 10px;
}

/* Home Feed Video Styles */
.video-container {
    width: 100%;
    height: 100%;
    position: absolute; /* Changed from relative to absolute to fill the parent card */
    top: 0;
    left: 0;
    background: #000;
    overflow: hidden;
    z-index: 1; /* Below all overlays */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: auto;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
    z-index: 10; /* Above video, below UI */
}

.content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 150; /* Above video overlay */
    color: white;
    padding-bottom: 2rem;
    pointer-events: none; /* Allow clicks through to video controls */
}

.content-overlay > * {
    pointer-events: auto; /* Re-enable for text/info */
}

.feed-card {
    height: 75vh;
    border-radius: var(--radius-xl);
    border: none;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xl);
    position: relative; /* CRITICAL FIX: Stacking Context */
    overflow: hidden;
    background: #000;
}

.biz-info-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    cursor: pointer;
}

.biz-logo-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.3);
    background: white;
}

.biz-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.biz-text-wrapper h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.biz-text-wrapper p {
    font-size: 0.75rem;
    opacity: 0.8;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.item-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.item-caption {
    font-size: 0.9375rem;
    line-height: 1.4;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.volume-toggle {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
}

.volume-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Location and Social Badges */
.shared-tag {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 180;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.distance-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 180;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
}

.cloud-verified-badge {
    position: absolute;
    top: 1.25rem;
    left: 8.2rem;
    z-index: 185;
    padding: 0.4rem 0.8rem;
    height: 30px; /* Same as buttons for alignment */
    background: rgba(16, 185, 129, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10B981;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.shared-tag + .distance-badge {
    top: 4rem;
}

/* BYO Safety Valve */
.safety-valve {
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.safety-valve:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.safety-valve:active {
    transform: scale(0.95);
}

/* Video Loading & Play Controls Refinement */
.video-container {
    position: relative;
    background: #000;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #D4AF37; /* Gold secondary color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 50;
    pointer-events: none;
    display: none;
}

.video-container.loading .loading-spinner {
    display: block;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.video-controls-bar {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-container:hover .video-controls-bar,
.video-container.paused .video-controls-bar {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Premium Range Inputs (Seek & Volume) */
.seek-bar, .volume-bar {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    outline: none;
}

.seek-bar::-webkit-slider-thumb, .volume-bar-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 3px solid var(--secondary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    z-index: 10;
}

.seek-bar::-moz-range-thumb, .volume-bar-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 3px solid var(--secondary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Auto-hide Immersion Mode */
.v-ui-hidden .video-controls-bar,
.v-ui-hidden .volume-bar-vertical,
.v-ui-hidden .content-overlay,
.v-ui-hidden .action-sidebar,
.v-ui-hidden .nearby-badge,
.v-ui-hidden .distance-badge,
.v-ui-hidden .offer-sticker,
.v-ui-hidden .reward-status-label {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(0.95);
    filter: blur(4px);
}

.video-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 100;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
