:root {
    --snap-yellow: #FFFC00;
    --snap-ghost: #FFFFFF;
    --text-dark: #000000;
    --text-grey: #666666;
    --bg-grey: #F3F3F3;
    --blue-accent: #0096FF;
    --red-accent: #FF3B30;
    --msg-out: #E6E6E6; /* Light grey for received */
    --msg-in: #0096FF; /* Blue for sent, or maybe Red/Purple depending on preference. Let's go Blue/Red like snapchat status */
    --msg-in-text: #FFFFFF;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: var(--font-stack);
    overflow: hidden; /* Prevent scrolling on body, handle in views */
    background-color: #000; /* Frame background */
}

#app {
    width: 100%;
    height: 100%;
    position: relative;
    background: white;
    overflow: hidden;
}

/* --- VIEWS --- */
.view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Hidden by default */
    flex-direction: column;
    background: white;
    transition: transform 0.3s ease-in-out;
}

.view.active {
    display: flex;
    z-index: 10;
    animation: viewFadeIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes viewFadeIn {
    0% { opacity: 0; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- LOGIN VIEW --- */
#view-login {
    background-color: var(--snap-yellow);
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative; /* Context for slideshow */
}

/* Ensure login content is above slideshow */
#view-login > *:not(#login-slideshow) {
    z-index: 5;
    position: relative;
}

#login-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

#login-slideshow::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3); /* Dark overlay for readability */
    z-index: 2;
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide-img.active {
    opacity: 1;
}

.ghost-logo {
    font-size: 100px;
    margin-bottom: 20px;
    filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.1));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

#view-login h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-grey);
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.input-group {
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
    position: relative;
}

#username-input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 25px; /* Pill shape */
    background: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: var(--text-dark);
    outline: none;
    transition: background 0.2s;
}

#username-input:focus {
    background: rgba(255, 255, 255, 0.9);
}

#username-input::placeholder {
    color: rgba(0,0,0,0.4);
}

.btn-primary {
    background-color: var(--red-accent); /* Red button for contrast on yellow */
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: scale(1);
    transition: transform 0.1s;
}

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

/* --- HEADER --- */
.app-header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
    z-index: 20;
}

.app-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.icon-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    color: var(--text-dark);
}

/* --- CHAT LIST (ADMIN) --- */
.chat-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-item:active {
    background-color: #f9f9f9;
}

.avatar {
    width: 45px;
    height: 45px;
    background-color: #eee;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.chat-info {
    flex: 1;
}

.chat-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.chat-preview {
    font-size: 14px;
    color: var(--text-grey);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- CHAT ROOM --- */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: white;
}

.message {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 16px;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}

.message.received {
    align-self: flex-start;
    background-color: var(--msg-out); /* Grey */
    color: black;
    border-bottom-left-radius: 4px;
}

.message.sent {
    align-self: flex-end;
    background-color: var(--blue-accent); /* Blue */
    color: white;
    border-bottom-right-radius: 4px;
}
.message-time {
    font-size: 11px;
    margin-left: 8px;
    opacity: 0.7;
    vertical-align: bottom;
    display: inline-block;
}

.message.sent .message-time { color: rgba(255,255,255,0.8); }
.message.received .message-time { color: rgba(0,0,0,0.5); }
.chat-input-area {
    padding: 10px 15px;
    background: white;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    z-index: 20;
}

#message-input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid #eee;
    background: #f9f9f9;
    font-size: 16px;
    outline: none;
}

#message-input:focus {
    border-color: #ddd;
    background: #fff;
}

#send-btn {
    background: none;
    border: none;
    color: var(--blue-accent);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
}

#send-btn:disabled {
    color: #ccc;
}

/* Utility */
.icon-btn-small {
    background: none;
    border: none;
    font-size: 20px;
    padding: 5px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.icon-btn-small:hover {
    background-color: #f0f0f0;
}

.message-img {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 5px;
    display: block;
}

.hidden {
    display: none !important;
}

/* --- VIDEO DIRECTORY --- */
#view-video-directory {
    background-color: #111;
    color: white;
    padding: 20px;
    overflow-y: auto;
}

.directory-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.directory-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--snap-yellow);
    flex: 1;
}

.video-file {
    background: #000;
    padding: 15px 10px;
    margin-bottom: 0;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: "Courier New", Courier, monospace;
    transition: background 0.2s;
}

.video-file:first-of-type {
    border-top: 1px solid #333;
}

.video-file:hover {
    background: #1a1a1a;
}

.video-icon {
    font-size: 14px;
    margin-right: 10px;
    color: #666;
    font-weight: bold;
    min-width: 45px;
}

.video-name {
    font-size: 15px;
    font-weight: 400;
    color: #ccc;
    flex: 1;
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-duration {
    font-size: 14px;
    color: var(--snap-yellow);
    margin-left: 10px;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
}

.dir-buy-all {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--snap-yellow);
    border-radius: 4px;
    color: black;
    font-weight: 800;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
    font-family: "Courier New", Courier, monospace;
    border: 2px solid #FFD700;
    transition: transform 0.1s;
    text-transform: uppercase;
}

.dir-buy-all:active {
    transform: scale(0.98);
}

.video-payment-expand {
    background: #111;
    padding: 15px;
    border-bottom: 1px solid #333;
    margin-top: 0;
    margin-bottom: 0;
    display: none;
    animation: slideDown 0.2s ease-out;
}

.video-payment-expand.active {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Cleaned up garbage lines */

.directory-category {
    background: #222;
    color: var(--snap-yellow);
    padding: 12px 15px;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    border-top: 1px solid #333;
    margin-top: 0;
    position: sticky;
    top: 0;
    z-index: 5;
}

/* --- INDICATORS --- */
.typing-indicator {
    font-size: 12px;
    color: #999;
    margin-left: 15px;
    margin-bottom: 5px;
    height: 20px;
    font-style: italic;
    opacity: 0;
    transition: opacity 0.3s;
}
.typing-indicator.visible {
    opacity: 1;
}

.eyeball-icon {
    font-size: 16px;
    margin-left: 8px;
    display: none;
    vertical-align: middle;
}
.eyeball-icon.visible {
    display: inline-block;
}

/* --- VIDEO CALL VIEW --- */
#view-video-call {
    background-color: #000 !important;
    z-index: 100; /* Above everything */
}

.video-call-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.remote-feed-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: white;
    flex-direction: column;
    padding: 20px;
    text-align: center;
}

.code-entry-container {
    width: 100%;
    max-width: 300px;
}

.code-entry-container h3 {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--snap-yellow);
}

.code-entry-container p {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 20px;
}

.code-entry-container input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #333;
    color: white;
    text-align: center;
    font-size: 18px;
    outline: none;
    letter-spacing: 2px;
    transition: border-color 0.2s;
}

.code-entry-container input:focus {
    border-color: var(--snap-yellow);
}

.error-msg {
    color: var(--red-accent);
    margin-top: 15px;
    height: 20px;
    font-size: 14px;
    font-weight: 600;
}

.video-pay-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #333;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--snap-yellow);
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

#local-video-feed {
    position: absolute;
    bottom: 120px;
    right: 20px;
    width: 100px;
    height: 150px;
    background: #000;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transform: scaleX(-1); /* Mirror effect */
}

.video-controls {
    position: absolute;
    bottom: 80px; /* Moved up to avoid cutoff on mobile */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
    z-index: 60; /* Ensure above permission layer */
    pointer-events: none; /* Allow clicks to pass through empty space */
}

.video-controls > * {
    pointer-events: auto;
}

.btn-hangup {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: var(--red-accent);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.1s;
}

.btn-hangup:active {
    transform: scale(0.9);
}
.permission-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50; /* Above everything except controls if we want controls visible, but let's cover all */
    padding: 30px;
    text-align: center;
}

.permission-layer h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 15px;
}

.permission-layer p {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
}

.btn-grant {
    background-color: var(--snap-yellow);
    color: black;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 252, 0, 0.3);
}

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

/* --- SETTINGS VIEW --- */
#view-settings {
    background-color: #fff;
}

.settings-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.avatar-large {
    font-size: 80px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

#settings-username {
    margin-bottom: 40px;
    font-size: 24px;
    color: var(--text-dark);
}

.btn-secondary {
    background-color: #eee;
    color: var(--text-dark);
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.1s;
    width: 100%;
    max-width: 300px;
}

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

.btn-spacer {
    height: 15px;
}

/* --- PAYMENT REQUESTS --- */
.pay-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
    min-width: 180px;
}

.btn-pay-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 15px;
    border-radius: 20px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.1s, opacity 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: white !important;
}

.btn-pay-link:active {
    transform: scale(0.96);
}

.pay-paypal {
    background-color: #0070BA; /* PayPal Blue */
}

.pay-bmc {
    background-color: #FFDD00; /* BMC Yellow */
    color: black !important;
}
.pay-subtext {
    font-size: 11px;
    color: #888;
    text-align: center;
    margin-top: 4px;
    font-weight: 500;
}

/* Admin Tools in Input Area */
/* Admin Tools in Input Area */
#admin-tools {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-right: 10px;
    margin-right: 5px;
    border-right: 1px solid #eee;
}

#admin-tools.hidden {
    display: none;
}
/* --- HOMECAMS VIEW --- */
#view-homecams {
    background-color: #050505;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

#view-homecams.active {
    display: flex;
}

/* Header */
.cams-header {
    height: 50px;
    background: #111;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    padding: 0 15px;
    flex-shrink: 0;
    z-index: 20;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.cams-title {
    color: var(--red-accent);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1px;
    flex: 1;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 59, 48, 0.5);
}

/* Scrollable Camera Rack */
.cams-rack {
    flex: 1;
    overflow-y: auto;
    padding: 10px 10px 160px 10px; /* Extra padding for overlay controls */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: #000;
    align-content: start;
}

.cam-feed {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cam-feed:hover {
    border-color: var(--snap-yellow);
    box-shadow: 0 0 10px rgba(255, 252, 0, 0.2);
}

/* Maximize Logic */
.cam-feed.maximized {
    position: fixed;
    top: 50px; /* Below header */
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    z-index: 100;
    border: none;
    border-radius: 0;
    background: #000;
}

/* Static Noise Effect */
.cam-feed::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjMjIyIi8+CjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiMzMzMiLz4KPC9zdmc+');
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
    animation: staticNoise 0.2s steps(4) infinite;
}

@keyframes staticNoise {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 10%); }
    80% { transform: translate(-15%, 0); }
    90% { transform: translate(10%, 5%); }
    100% { transform: translate(5%, 0); }
}

.cam-feed::after {
    content: 'NO SIGNAL';
    color: #444;
    font-family: monospace;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
    transform: rotate(-15deg);
    pointer-events: none;
}

.cam-label {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 2px 5px;
    font-size: 9px;
    font-weight: 700;
    border-radius: 2px;
    text-transform: uppercase;
    z-index: 5;
    pointer-events: none;
}

.cam-overlay {
    position: absolute;
    bottom: 5px;
    right: 5px;
    color: rgba(0, 255, 0, 0.7);
    font-family: "Courier New", monospace;
    font-size: 9px;
    z-index: 5;
    pointer-events: none;
}

/* Control Panel (Bottom Frame) */
/* Control Panel (Overlay) */
.homecams-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding-bottom: 20px; /* Safe area */
    background: rgba(10, 10, 10, 0.85); /* Dark Glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 252, 0, 0.4);
    display: flex;
    flex-direction: column;
    z-index: 120; /* Above maximized feeds */
    box-shadow: 0 -10px 40px rgba(0,0,0,0.9);
}

.controls-header {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--snap-yellow);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.interactive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px;
    background: transparent;
    border-bottom: none;
}

.interact-btn {
    background: #222;
    border: 1px solid #444;
    color: #ccc;
    padding: 10px 2px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s;
    height: 60px;
}

.interact-btn:active {
    background: var(--snap-yellow);
    color: black;
    border-color: var(--snap-yellow);
    transform: scale(0.95);
}

.interact-btn.success {
    background: #32CD32 !important; /* Lime Green */
    color: black !important;
    border-color: #32CD32 !important;
}

.interact-btn.error {
    background: var(--red-accent) !important;
    color: white !important;
    border-color: var(--red-accent) !important;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.interact-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

/* Chat Area in Controls */
.homecams-chat-wrapper {
    flex: 1;
    background: #000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.homecams-chat-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.homecams-chat-list .message {
    background: #222;
    border: none;
    padding: 4px 10px;
    font-size: 12px;
    max-width: 100%;
    border-radius: 4px;
    color: #aaa;
    font-family: monospace;
}

.homecams-chat-list .message.sent {
    background: #333;
    color: var(--snap-yellow);
    align-self: flex-start;
}

.chat-input-area.console {
    background: #111;
    border-top: 1px solid #333;
    padding: 8px;
    height: 50px;
    display: flex;
    gap: 10px;
}

#homecams-input {
    flex: 1;
    background: #000;
    border: 1px solid #333;
    color: var(--snap-yellow);
    font-family: monospace;
    padding: 5px 10px;
    border-radius: 4px;
    outline: none;
}

#homecams-send-btn {
    background: #333;
    color: white;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 0 15px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
#homecams-send-btn {
    background: #333;
    color: white;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 0 15px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
}

/* --- HOMECAMS PAYWALL --- */
.cams-rack-wrapper {
    position: relative;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #000;
}

/* --- HOMECAMS PAYWALL & OVERLAYS --- */
.payment-modal {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 200; /* Above controls */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    animation: fadeIn 0.3s ease-out;
}

.payment-modal.hidden {
    display: none !important;
}

.pm-content {
    width: 100%;
    max-width: 350px;
    text-align: center;
    color: white;
    position: relative;
}

.pm-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #666;
    font-size: 30px;
    cursor: pointer;
}

.pm-icon {
    font-size: 50px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.pm-title {
    color: var(--red-accent);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 59, 48, 0.4);
}

.pm-desc {
    color: #ccc;
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.pm-sub {
    color: #666;
    font-size: 13px;
    margin-bottom: 30px;
    font-family: monospace;
}

.pm-price {
    font-size: 42px;
    color: var(--snap-yellow);
    font-family: "Courier New", monospace;
    font-weight: 800;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 252, 0, 0.3);
}

.feed-lock {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: rgba(255,255,255,0.3);
    z-index: 10;
    pointer-events: none;
    text-shadow: 0 2px 5px black;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- APPROVAL UI --- */
.approval-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
    color: black;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.approval-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.approval-actions {
    display: flex;
    gap: 10px;
}

.btn-approve, .btn-deny {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.1s;
}

.btn-approve:active, .btn-deny:active {
    transform: scale(0.95);
}

.btn-approve {
    background: #32CD32;
    color: white;
}

.btn-deny {
    background: var(--red-accent);
    color: white;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 5px;
    text-align: center;
}

.status-pending { background: #eee; color: #666; }
.status-approved { background: #e6fffa; color: #00a86b; border: 1px solid #00a86b; }
.status-denied { background: #fff5f5; color: #e53e3e; border: 1px solid #e53e3e; }