/* App Styles - Common components for all apps */

/* CSS Variables */
:root {
    --card-bg: rgba(255, 255, 255, 0.03);
    --hover-bg: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(0, 0, 0, 0.2);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    --primary-color: var(--accent);
    --success-color: #61c080;
    --warning-color: #e1e483;
    --danger-color: #e1e483;
}

/* App Container */
.app-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* App Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.app-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* App Content */
.app-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
    padding: 40px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-icon svg {
    width: 64px;
    height: 64px;
}

.empty-state h3 {
    color: var(--text-color);
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.empty-state p {
    color: var(--text-muted);
    margin: 0 0 20px;
    max-width: 300px;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    text-align: center;
    padding: 40px;
}

.error-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger-color);
    margin-bottom: 16px;
}

.error-icon svg {
    width: 48px;
    height: 48px;
}

/* Grid Layouts */
.venues-grid,
.screens-grid,
.playlists-grid,
.schedules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Venue Card */
.venue-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.venue-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.venue-card.inactive {
    opacity: 0.6;
}

.venue-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.venue-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(225, 228, 131, 0.15);
    border-radius: 10px;
    color: var(--accent);
    flex-shrink: 0;
}

.venue-icon svg {
    width: 28px;
    height: 28px;
}

.venue-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.venue-info {
    flex: 1;
    min-width: 0;
}

.venue-info h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.venue-location {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.venue-actions {
    display: flex;
    gap: 4px;
}

.venue-card-body {
    padding: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.venue-card-body:hover {
    background: var(--hover-bg);
}

.venue-stats {
    display: flex;
    gap: 24px;
}

.venue-stat {
    text-align: center;
}

.venue-stat .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.venue-stat .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.venue-card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
}

/* Screen Card */
.screen-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.screen-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.screen-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.screen-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 12px;
}

.screen-status.online {
    background: rgba(97, 192, 128, 0.15);
    color: var(--success-color);
}

.screen-status.offline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.screen-actions {
    display: flex;
    gap: 4px;
}

.screen-preview {
    margin-bottom: 16px;
}

.screen-frame {
    background: #0a0a0a;
    border-radius: 8px;
    padding: 6px;
    max-width: 200px;
    margin: 0 auto;
}

.screen-frame.portrait {
    max-width: 100px;
}

.screen-inner {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border-radius: 4px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.screen-frame.portrait .screen-inner {
    aspect-ratio: 9/16;
}

.screen-inner svg {
    width: 32px;
    height: 32px;
    opacity: 0.5;
}

.screen-info {
    text-align: center;
    margin-bottom: 16px;
}

.screen-info h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.screen-info .screen-venue {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 8px;
}

.screen-info .screen-details {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0 0 4px;
}

.screen-info .screen-assignment {
    font-size: 0.8rem;
    color: var(--accent);
    margin: 0;
}

.screen-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--hover-bg);
    border-radius: 8px;
}

.screen-code .code-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.screen-code .code-value {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: #61c080;
    color: white;
}

.btn-primary:hover {
    background: #4ea86a;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

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

.btn-danger:hover {
    background: #f0f3a0;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 6px 10px;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    min-height: 16px;
    flex-shrink: 0;
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

/* Form Elements */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

/* Logo Upload Section */
.logo-upload-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-preview {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
}

.logo-placeholder svg {
    width: 32px;
    height: 32px;
    opacity: 0.5;
}

.logo-placeholder span {
    font-size: 0.7rem;
}

.logo-upload-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.logo-upload-controls .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.logo-upload-controls .btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.form-select {
    padding: 8px 12px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.85rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
}

/* Modal */
.app-modal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Nested modal appears above parent */
.app-modal.nested-modal {
    z-index: 1100;
}

.app-modal.nested-modal .app-modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.app-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.app-modal-content {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Larger modal for slide create/edit with asset picker */
.app-modal-content.slide-modal {
    max-width: 700px;
}

.app-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.app-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.app-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.app-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.modal-error {
    background: rgba(225, 228, 131, 0.15);
    color: var(--danger-color);
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-top: 12px;
}

/* Confirm Delete */
.confirm-delete {
    text-align: center;
    padding: 20px 0;
}

.confirm-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border-radius: 50%;
}

.confirm-icon.delete {
    background: rgba(225, 228, 131, 0.15);
    color: var(--danger-color);
}

.confirm-icon svg {
    width: 32px;
    height: 32px;
}

.confirm-delete p {
    margin: 0 0 8px;
}

.confirm-delete .warning {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Icon Button */
.icon-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.icon-btn svg {
    width: 18px;
    height: 18px;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.icon-btn.edit:hover {
    color: var(--warning-color);
}

.icon-btn.delete:hover {
    color: var(--danger-color);
}

.icon-btn.refresh:hover {
    color: var(--primary-color, #4fc3f7);
}

.icon-btn.refresh.spinning svg {
    animation: iconSpin 0.8s linear infinite;
}

.icon-btn.refresh.success {
    color: var(--success-color, #66bb6a);
}

.icon-btn.refresh.error {
    color: var(--danger-color, #ef5350);
}

@keyframes iconSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Status Icons */
.status-icon {
    width: 10px;
    height: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.status-icon svg {
    width: 10px;
    height: 10px;
}

.status-icon.online {
    color: var(--success-color);
}

.status-icon.offline {
    color: var(--text-muted);
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.media-item {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.media-item:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}

.media-item-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.media-item-icon svg {
    width: 36px;
    height: 36px;
}

.folder-icon {
    background: rgba(100, 149, 237, 0.15);
    color: #6495ed;
}

.image-icon {
    background: rgba(97, 192, 128, 0.15);
    color: var(--success-color);
}

.video-icon {
    background: rgba(225, 228, 131, 0.15);
    color: var(--warning-color);
}

.media-item-preview {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-item-name {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.media-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.media-item-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.media-item:hover .media-item-actions {
    opacity: 1;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
}

.crumb {
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.crumb:hover {
    color: var(--text-color);
}

.crumb.active {
    color: var(--text-color);
    font-weight: 500;
    cursor: default;
}

.crumb-sep {
    color: var(--text-muted);
    margin: 0 4px;
}

/* Upload Area */
.upload-area {
    padding: 20px;
}

.upload-drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-drop-zone:hover {
    border-color: var(--accent);
    background: rgba(225, 228, 131, 0.05);
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--text-muted);
}

.upload-icon svg {
    width: 48px;
    height: 48px;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Settings */
.settings-container {
    max-width: 600px;
}

.settings-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.section-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(225, 228, 131, 0.15);
    border-radius: 8px;
    color: var(--accent);
}

.section-icon svg {
    width: 20px;
    height: 20px;
}

.section-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.form-success {
    color: var(--success-color);
    font-size: 0.9rem;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(97, 192, 128, 0.1);
    border-radius: 6px;
}

.form-error {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(225, 228, 131, 0.1);
    border-radius: 6px;
}

.account-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--hover-bg);
    border-radius: 8px;
}

.stat-row .stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-row .stat-value {
    font-weight: 500;
}

/* Pairing Form Styles */
.pair-instructions {
    background: rgba(97, 192, 128, 0.1);
    border: 1px solid rgba(97, 192, 128, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.pair-instructions p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.pair-link {
    color: #61c080;
    font-weight: 600;
    text-decoration: none;
}

.pair-link:hover {
    text-decoration: underline;
}

.pairing-code-input {
    font-size: 2rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5em !important;
    text-align: center !important;
    font-family: 'Inter', monospace !important;
    color: #61c080 !important;
    padding: 16px !important;
}

.pairing-code-input::placeholder {
    color: rgba(97, 192, 128, 0.3);
    letter-spacing: 0.3em;
}

/* Dropdown Menu */
.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-container.inline {
    display: inline-flex;
}

.btn-dropdown-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}

.btn-dropdown-icon svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px;
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    color: var(--text-color);
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--hover-bg);
}

.dropdown-item-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(97, 192, 128, 0.15);
    border-radius: 8px;
    color: var(--success-color);
    flex-shrink: 0;
}

.dropdown-item-icon svg {
    width: 20px;
    height: 20px;
}

.dropdown-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-item-name {
    font-weight: 500;
    font-size: 0.9rem;
}

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

/* Slides Grid */
.slides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.slide-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    position: relative;
}

.slide-card:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}

.slide-card.inactive {
    opacity: 0.5;
}

.slide-preview {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg-tertiary);
    cursor: pointer;
    overflow: hidden;
}

.slide-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.slide-preview-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.slide-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.slide-type-badge svg {
    width: 16px;
    height: 16px;
}

.slide-info {
    padding: 12px 14px;
}

.slide-name {
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.slide-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.slide-type {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.slide-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.slide-card:hover .slide-actions {
    opacity: 1;
}

.slide-actions .icon-btn {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
}

.slide-actions .icon-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slide-actions .icon-btn.delete:hover {
    color: #ff6464;
}

/* Asset Picker */
.asset-picker-container {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.asset-picker-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--hover-bg);
    border-bottom: 1px solid var(--border-color);
}

.asset-picker-nav .btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
}

.asset-picker-nav .btn-back:hover {
    background: rgba(255, 255, 255, 0.15);
}

.asset-picker-nav .btn-back:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.asset-picker-nav .btn-back svg {
    width: 16px;
    height: 16px;
}

.asset-picker-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex: 1;
    overflow: hidden;
}

.asset-picker-breadcrumbs .crumb {
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s;
}

.asset-picker-breadcrumbs .crumb:hover {
    color: var(--text-color);
}

.asset-picker-breadcrumbs .crumb.active {
    color: var(--text-color);
    cursor: default;
}

.asset-picker-breadcrumbs .crumb-sep {
    color: var(--text-muted);
}

.asset-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding: 12px;
}

.asset-picker-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.asset-picker-empty svg {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.asset-picker .folder-item {
    cursor: pointer;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.asset-picker .folder-item:hover {
    background: var(--hover-bg);
}

.asset-picker .folder-item-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 149, 237, 0.15);
    border-radius: 8px;
    color: #6495ed;
}

.asset-picker .folder-item-icon svg {
    width: 24px;
    height: 24px;
}

.asset-picker .folder-item-name {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-option {
    cursor: pointer;
    position: relative;
}

.asset-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.asset-option-preview {
    aspect-ratio: 1;
    width: 54px;
    height: 54px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.asset-option-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asset-option-icon {
    color: var(--text-muted);
}

.asset-option-icon svg {
    width: 22px;
    height: 22px;
}

.asset-option input:checked + .asset-option-preview {
    border-color: var(--success-color);
    box-shadow: 0 0 0 2px rgba(97, 192, 128, 0.3);
}

.asset-option:hover .asset-option-preview {
    border-color: var(--border-color);
}

.asset-option-name {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-help {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-help.warning {
    color: var(--warning-color);
    background: rgba(225, 228, 131, 0.1);
    padding: 12px;
    border-radius: 8px;
}

/* Drag and Drop */
.drop-zone {
    position: relative;
}

.drop-zone.drag-active {
    background: rgba(97, 192, 128, 0.05);
}

.drop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 30, 46, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    border: 2px dashed var(--success-color);
    border-radius: 8px;
    margin: 8px;
}

.drop-zone.drag-active .drop-overlay {
    display: flex;
}

.drop-overlay-content {
    text-align: center;
    color: var(--success-color);
}

.drop-overlay-content svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.drop-overlay-content p {
    font-size: 1.1rem;
    font-weight: 500;
}

.upload-drop-zone.drag-hover {
    border-color: var(--success-color);
    background: rgba(97, 192, 128, 0.1);
}

/* Upload Progress */
.upload-progress {
    padding: 20px;
    text-align: center;
}

.upload-progress-text {
    font-weight: 500;
    margin-bottom: 16px;
}

.upload-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.upload-progress-fill {
    height: 100%;
    background: var(--success-color);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.upload-progress-status {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.upload-progress-status.has-errors {
    color: var(--warning-color);
}

/* ========== Playlist Editor Styles ========== */

/* Playlist Card */
.playlist-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.playlist-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.playlist-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.playlist-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(225, 228, 131, 0.15);
    border-radius: 10px;
    color: var(--accent);
}

.playlist-icon svg {
    width: 24px;
    height: 24px;
}

.playlist-actions {
    display: flex;
    gap: 4px;
}

.playlist-card-body {
    padding: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.playlist-card-body:hover {
    background: var(--hover-bg);
}

.playlist-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.playlist-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.playlist-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.playlist-stat svg {
    width: 14px;
    height: 14px;
}

.playlist-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
}

/* Playlist Editor Layout */
.playlist-editor .app-header {
    flex-wrap: wrap;
    gap: 12px;
}

.playlist-editor-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 10px;
    background: var(--hover-bg);
    border-radius: 12px;
}

.editor-content {
    display: flex;
    gap: 20px;
    height: 100%;
}

.editor-main {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.editor-sidebar {
    width: 280px;
    flex-shrink: 0;
    overflow-y: auto;
}

.editor-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
    padding: 40px;
}

.editor-empty .empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    color: var(--text-muted);
    opacity: 0.5;
}

.editor-empty h3 {
    margin: 0 0 8px;
}

.editor-empty p {
    color: var(--text-muted);
    margin: 0 0 20px;
}

/* Playlist Items List */
.playlist-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.playlist-item:hover {
    background: var(--hover-bg);
}

.playlist-item.inactive {
    opacity: 0.5;
}

.playlist-item.dragging {
    opacity: 0.5;
    background: var(--hover-bg);
}

.playlist-item.drag-over {
    border-color: var(--success-color);
    background: rgba(97, 192, 128, 0.1);
}

.playlist-item-handle {
    cursor: grab;
    color: var(--text-muted);
    padding: 4px;
}

.playlist-item-handle:active {
    cursor: grabbing;
}

.playlist-item-handle svg {
    width: 18px;
    height: 18px;
}

.playlist-item-position {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hover-bg);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}

.playlist-item-thumb {
    width: 64px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.playlist-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-item-thumb .thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.playlist-item-thumb .thumb-placeholder svg {
    width: 20px;
    height: 20px;
}

.playlist-item-info {
    flex: 1;
    min-width: 0;
}

.playlist-item-name {
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.playlist-item-meta {
    display: flex;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.playlist-item-meta .item-type {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: capitalize;
}

.playlist-item-meta .item-inactive {
    color: var(--warning-color);
}

.playlist-item-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.playlist-item:hover .playlist-item-actions {
    opacity: 1;
}

/* Editor Sidebar */
.sidebar-section {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.sidebar-section h4 {
    margin: 0 0 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.info-row .info-label {
    color: var(--text-muted);
}

.info-row .info-value {
    font-weight: 500;
}

/* Available Slides List */
.available-slides-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.no-slides-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    padding: 20px 10px;
}

.available-slide {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.available-slide:hover {
    background: var(--hover-bg);
}

.available-slide-thumb {
    width: 48px;
    height: 27px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.available-slide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.available-slide-thumb .thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.available-slide-thumb .thumb-placeholder svg {
    width: 16px;
    height: 16px;
}

.available-slide-info {
    flex: 1;
    min-width: 0;
}

.available-slide-name {
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.available-slide-type {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.available-slide-add {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(97, 192, 128, 0.15);
    border-radius: 6px;
    color: var(--success-color);
    opacity: 0;
    transition: opacity 0.2s;
}

.available-slide:hover .available-slide-add {
    opacity: 1;
}

.available-slide-add svg {
    width: 14px;
    height: 14px;
}

/* Slide Picker in Modal */
.slide-picker {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.slide-option {
    display: block;
    cursor: pointer;
}

.slide-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.slide-option-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.2s;
}

.slide-option:hover .slide-option-content {
    background: var(--hover-bg);
}

.slide-option input:checked + .slide-option-content {
    border-color: var(--success-color);
    background: rgba(97, 192, 128, 0.1);
}

.slide-option-thumb {
    width: 64px;
    height: 36px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.slide-option-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-option-thumb .thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.slide-option-thumb .thumb-placeholder svg {
    width: 24px;
    height: 24px;
}

.slide-option-info {
    flex: 1;
}

.slide-option-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.slide-option-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========== Schedule Editor Styles ========== */

/* Schedule Card */
.schedule-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.schedule-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.schedule-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.schedule-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 149, 237, 0.15);
    border-radius: 10px;
    color: #6495ed;
}

.schedule-icon svg {
    width: 24px;
    height: 24px;
}

.schedule-actions {
    display: flex;
    gap: 4px;
}

.schedule-card-body {
    padding: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.schedule-card-body:hover {
    background: var(--hover-bg);
}

.schedule-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.schedule-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.schedule-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.schedule-stat svg {
    width: 14px;
    height: 14px;
}

.schedule-timezone {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--hover-bg);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.schedule-card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
}

/* Schedule Editor */
.schedule-editor .app-header {
    flex-wrap: wrap;
    gap: 12px;
}

.schedule-editor-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 10px;
    background: var(--hover-bg);
    border-radius: 12px;
}

.schedule-info-bar {
    display: flex;
    gap: 24px;
    padding: 12px 16px;
    background: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 20px;
}

.schedule-info-bar .info-item {
    font-size: 0.85rem;
}

.schedule-info-bar .info-label {
    color: var(--text-muted);
    margin-right: 8px;
}

.schedule-info-bar .info-value {
    color: var(--text-color);
    font-weight: 500;
}

/* Week Grid */
.schedule-grid-container {
    margin-bottom: 24px;
    overflow-x: auto;
}

.schedule-week-grid {
    min-width: 800px;
}

.grid-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.grid-time-column {
    width: 60px;
    flex-shrink: 0;
}

.grid-day-header {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-color);
}

.grid-body {
    display: flex;
}

.grid-time-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: right;
    padding-right: 8px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.grid-day-column {
    flex: 1;
    position: relative;
    border-left: 1px solid var(--border-color);
}

.grid-day-slots {
    position: relative;
}

.grid-slot {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background 0.2s;
}

.grid-slot:hover {
    background: rgba(97, 192, 128, 0.1);
}

.grid-day-blocks {
    position: absolute;
    top: 0;
    left: 4px;
    right: 4px;
    pointer-events: none;
}

.grid-block {
    position: absolute;
    left: 0;
    right: 0;
    border-radius: 4px;
    overflow: hidden;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.grid-block:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.grid-block-content {
    padding: 4px 6px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grid-block-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grid-block-time {
    font-size: 0.6rem;
    color: rgba(0, 0, 0, 0.6);
}

/* Blocks List */
.schedule-blocks-list {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
}

.schedule-blocks-list h3 {
    margin: 0 0 16px;
    font-size: 1rem;
}

.blocks-by-day {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.day-blocks h4 {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.block-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--hover-bg);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.block-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.block-color {
    width: 6px;
    height: 36px;
    border-radius: 3px;
    flex-shrink: 0;
}

.block-info {
    flex: 1;
    min-width: 0;
}

.block-time {
    font-size: 0.85rem;
    font-weight: 500;
}

.block-playlist {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.block-item .icon-btn {
    opacity: 0;
    transition: opacity 0.2s;
}

.block-item:hover .icon-btn {
    opacity: 1;
}

/* Weather Slide Styles */
.weather-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #4a90d9, #67b8de);
    color: white;
}

.weather-placeholder svg {
    width: 48px;
    height: 48px;
}

.weather-placeholder .weather-location {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Location Search */
.location-search-container {
    position: relative;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 12px;
}

.search-input-wrapper svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 0.95rem;
    color: var(--text-color);
}

.search-input-wrapper input:focus {
    outline: none;
}

.location-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.location-result {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.location-result:hover {
    background: var(--hover-bg);
}

.location-result .location-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.location-result .location-region {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.no-results {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.selected-location {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(97, 192, 128, 0.15);
    border: 1px solid rgba(97, 192, 128, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 8px;
}

.selected-location span {
    font-weight: 500;
}

.btn-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.btn-clear:hover {
    color: var(--danger-color);
}

/* Weather Preview */
.weather-preview {
    text-align: center;
    padding: 20px;
}

.weather-preview-icon {
    margin-bottom: 16px;
}

.weather-preview-icon svg {
    width: 64px;
    height: 64px;
    color: #4a90d9;
}

.weather-preview-location {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Weather modal adjustments */
.weather-modal .app-modal-content {
    max-width: 480px;
}

/* ============================================
   Sports Slide Styles
   ============================================ */

/* Sports Type Selection Grid */
.sports-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.sport-option {
    cursor: pointer;
}

.sport-option input {
    display: none;
}

.sport-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.2s;
}

.sport-option:hover .sport-option-content {
    background: var(--hover-bg);
    border-color: var(--border-light);
}

.sport-option input:checked + .sport-option-content {
    border-color: var(--sport-color, var(--primary-color));
    background: rgba(97, 192, 128, 0.1);
}

.sport-option .sport-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.sport-option .sport-name {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Soccer leagues dropdown */
.soccer-leagues-group {
    margin-top: 16px;
}

/* Sports slide card placeholder */
.sports-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.sports-placeholder .sports-icon {
    font-size: 2.5rem;
}

.sports-placeholder .sports-name {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Sports Preview Modal */
.sports-preview {
    text-align: center;
    padding: 20px;
}

.sports-preview-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.sports-preview-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Sports modal adjustments */
.sports-modal .app-modal-content {
    max-width: 500px;
}

/* ========================================
   Sports Deep Dive Styles - Admin Panel
   ======================================== */

/* Deep Dive city selection grid */
.deep-dive-city-grid {
    max-height: 300px;
    overflow-y: auto;
}

.deep-dive-city-content {
    text-align: left;
    padding: 8px 12px;
}

.deep-dive-city-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.deep-dive-city-teams {
    font-size: 0.8rem;
    opacity: 0.7;
}

.deep-dive-city-teams .team-count {
    margin-left: 4px;
    opacity: 0.6;
    font-size: 0.75rem;
}

/* Team preview list */
.deep-dive-team-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.deep-dive-team-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg-secondary, #1a1a2e);
    border-radius: 6px;
    font-size: 0.85rem;
}

.deep-dive-team-badge .team-icon {
    font-size: 1.1rem;
}

.deep-dive-team-badge .team-name {
    flex: 1;
    font-weight: 500;
}

.deep-dive-team-badge .team-sport {
    font-size: 0.7rem;
    opacity: 0.5;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Deep Dive modal adjustments */
.deep-dive-modal .app-modal-content {
    max-width: 560px;
}

/* Sport selection checkboxes in deep-dive modals */
.dd-sport-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 8px 0 4px;
}
.dd-sport-check {
    font-size: 0.9rem;
}

/* ========================================
   Trivia Slide Styles - Admin Panel
   ======================================== */

/* Trivia placeholder in slide card */
.trivia-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    width: 100%;
    height: 100%;
}

.trivia-placeholder .trivia-icon {
    font-size: 3rem;
}

.trivia-placeholder .trivia-theme {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: capitalize;
}

/* Theme variations for placeholder */
.trivia-placeholder.trivia-theme-classy {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    color: #daa520;
}

.trivia-placeholder.trivia-theme-chalkboard {
    background: #2d4a3e;
    color: #ffd93d;
}

.trivia-placeholder.trivia-theme-arcade {
    background: linear-gradient(180deg, #0a0a0a, #1a0a2e);
    color: #00ffff;
}

/* Trivia theme grid in modal */
.trivia-theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.theme-option {
    cursor: pointer;
}

.theme-option input[type="radio"] {
    display: none;
}

.theme-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.2s ease;
}

.theme-preview .theme-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.theme-preview .theme-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.theme-preview .theme-desc {
    font-size: 0.75rem;
    opacity: 0.7;
    text-align: center;
}

.theme-option input:checked + .theme-preview {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(225, 228, 131, 0.2);
}

/* Classy theme preview */
.theme-preview.classy {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    color: #f8f8f2;
}
.theme-preview.classy .theme-icon { color: #daa520; }
.theme-preview.classy .theme-name { color: #daa520; }

/* Chalkboard theme preview */
.theme-preview.chalkboard {
    background: #2d4a3e;
    color: #e8e8e8;
    font-family: 'Comic Sans MS', cursive;
}
.theme-preview.chalkboard .theme-icon { color: #ffd93d; }
.theme-preview.chalkboard .theme-name { color: #ffd93d; }

/* Arcade theme preview */
.theme-preview.arcade {
    background: linear-gradient(180deg, #0a0a0a, #1a0a2e);
    color: #00ffff;
}
.theme-preview.arcade .theme-icon { 
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}
.theme-preview.arcade .theme-name { 
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
}

/* Difficulty checkboxes */
.difficulty-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.difficulty-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--card-bg);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.difficulty-option:hover {
    background: var(--hover-bg);
}

.difficulty-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.difficulty-option .difficulty-label {
    flex: 1;
    font-weight: 500;
}

.difficulty-option .difficulty-count {
    font-size: 0.8rem;
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Trivia stats summary */
.trivia-stats-summary {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: 8px;
    margin-top: 8px;
}

.trivia-stats-summary .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trivia-stats-summary .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.trivia-stats-summary .stat-label {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Trivia warning */
.trivia-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    margin-top: 8px;
}

.trivia-warning .warning-icon {
    font-size: 1.5rem;
}

.trivia-warning .warning-text strong {
    display: block;
    margin-bottom: 4px;
    color: #ffc107;
}

.trivia-warning .warning-text p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 8px;
}

/* Trivia preview in modal */
.trivia-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.trivia-preview-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.trivia-preview-theme {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.trivia-preview.trivia-theme-classy {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    color: #daa520;
}

.trivia-preview.trivia-theme-chalkboard {
    background: #2d4a3e;
    color: #ffd93d;
}

.trivia-preview.trivia-theme-arcade {
    background: linear-gradient(180deg, #0a0a0a, #1a0a2e);
    color: #00ffff;
}

/* Trivia modal adjustments */
.trivia-modal .app-modal-content {
    max-width: 550px;
}

.trivia-import-modal .app-modal-content {
    max-width: 500px;
}

/* Trivia import info */
.trivia-import-info {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.trivia-import-info h4 {
    margin-bottom: 8px;
    color: var(--primary-color);
}

.trivia-import-info ul {
    list-style: none;
    margin-top: 8px;
}

.trivia-import-info li {
    padding: 4px 0;
    font-size: 0.85rem;
}

.trivia-import-info li strong {
    color: var(--primary-color);
}

/* Import progress */
.import-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: 8px;
    margin-top: 16px;
}

/* Import result */
.import-result {
    margin-top: 16px;
}

.import-success {
    text-align: center;
    padding: 20px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 8px;
}

.import-success .success-icon {
    font-size: 2rem;
    color: #2ecc71;
    margin-bottom: 8px;
}

.import-success details {
    margin-top: 12px;
    text-align: left;
}

.import-success details summary {
    cursor: pointer;
    color: #e74c3c;
}

.import-success details ul {
    margin-top: 8px;
    padding-left: 20px;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Trivia manager modal */
.trivia-manager-modal .app-modal-content {
    max-width: 700px;
    max-height: 80vh;
}

.trivia-manager-modal .app-modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.trivia-manager-header {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.trivia-questions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trivia-question-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--card-bg);
    border-radius: 8px;
    transition: background 0.2s;
}

.trivia-question-item:hover {
    background: var(--hover-bg);
}

.trivia-question-item .question-difficulty {
    color: #daa520;
    font-size: 0.8rem;
    white-space: nowrap;
}

.trivia-question-item .question-text {
    flex: 1;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trivia-question-item .question-answer {
    font-size: 0.8rem;
    opacity: 0.7;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trivia-question-item .question-actions {
    display: flex;
    gap: 4px;
}

/* Question modal */
.question-modal .app-modal-content {
    max-width: 550px;
}

.question-modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.question-modal input[type="range"] {
    width: 100%;
    accent-color: var(--primary-color);
}

.question-modal .range-value {
    display: inline-block;
    margin-left: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.trivia-manage-link {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.question-preview {
    font-style: italic;
    opacity: 0.8;
    margin-top: 8px;
}


/* ========================================
   YouTube Slide Styles
   ======================================== */

/* YouTube modal adjustments */
.youtube-modal .app-modal-content {
    max-width: 550px;
}

.youtube-url-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.youtube-parse-status {
    font-size: 0.85rem;
}

.youtube-parse-status .parsing {
    color: var(--text-secondary);
}

.youtube-parse-status .success {
    color: #2ecc71;
}

.youtube-parse-status .error {
    color: #e74c3c;
}

.youtube-preview {
    margin: 16px 0;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.youtube-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

.youtube-preview .youtube-video-id {
    padding: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.2);
}

/* YouTube slide card in grid */
.slide-card .youtube-placeholder {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.slide-card .youtube-placeholder .youtube-icon {
    font-size: 3rem;
}

/* YouTube preview modal */
.youtube-preview-modal {
    text-align: center;
}


/* Beer Menu Styles */
.beer-menu-modal .app-modal-content,
.beer-menu-manager-modal .app-modal-content {
    max-width: 600px;
}

.beer-menu-manager-modal .app-modal-content {
    max-width: 900px;
    max-height: 85vh;
}

.beer-menu-warning {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.beer-menu-warning .warning-icon {
    font-size: 2rem;
}

.beer-menu-warning .warning-icon svg {
    width: 48px;
    height: 48px;
    color: var(--accent);
}

.beer-menu-warning .warning-text strong {
    display: block;
    margin-bottom: 8px;
}

.beer-menu-warning .warning-text p {
    margin: 0 0 12px;
    color: var(--text-muted);
}

.price-labels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.price-labels-grid input {
    padding: 8px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.85rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.beer-menu-manager {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.beer-menu-header-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.beer-menu-header-info h4 {
    margin: 0;
}

.menu-settings {
    display: flex;
    gap: 8px;
}

.menu-settings .badge {
    padding: 4px 8px;
    background: rgba(225, 228, 131, 0.15);
    color: var(--accent);
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: capitalize;
}

.beer-menu-add-section {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.beer-add-row {
    display: flex;
    gap: 12px;
}

.beer-name-input {
    flex: 1;
    padding: 10px 12px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.9rem;
}

.beer-menu-table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.beer-menu-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.beer-menu-table th {
    position: sticky;
    top: 0;
    background: var(--card-bg);
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.beer-menu-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.beer-menu-table tr:last-child td {
    border-bottom: none;
}

.beer-menu-table .col-name {
    min-width: 180px;
}

.beer-menu-table .col-style,
.beer-menu-table .col-abv,
.beer-menu-table .col-ibu {
    width: 60px;
    text-align: center;
}

.beer-menu-table .col-price {
    width: 70px;
    text-align: right;
}

.beer-menu-table .col-status {
    width: 50px;
    text-align: center;
}

.beer-menu-table .col-actions {
    width: 100px;
    text-align: right;
}

.beer-name-cell {
    display: flex;
    flex-direction: column;
}

.beer-name-cell strong {
    color: var(--text-color);
}

.beer-name-cell small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.status-badge {
    display: inline-block;
    font-size: 1rem;
}

.status-badge.status-loading {
    animation: spin 1s linear infinite;
}

.beer-unavailable {
    opacity: 0.5;
}

.beer-menu-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.empty-state-small {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

.empty-state-small svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
    margin-bottom: 12px;
}

.empty-state-small p {
    margin: 0;
}

.price-inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.price-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-input-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.price-input-group input {
    padding: 8px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
}

.beer-edit-modal .app-modal-content {
    max-width: 550px;
}


/* Beer Entry Modal */
.beer-entry-modal .app-modal-content {
    max-width: 650px;
    max-height: 85vh;
}

.beer-entry-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.beer-entry-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.beer-entry-input {
    display: flex;
    gap: 8px;
}

.beer-entry-input .beer-name-input {
    flex: 1;
}

.beer-entry-input .btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 16px;
}

.beer-entry-input .btn svg {
    width: 14px;
    height: 14px;
}

/* Compact checkbox grid for display options */
.checkbox-grid.compact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.checkbox-grid.compact .checkbox-label {
    flex: 0 0 auto;
}

.beer-list-container {
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
}

.beer-list-empty {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

.beer-list {
    display: flex;
    flex-direction: column;
}

.beer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.beer-card:last-child {
    border-bottom: none;
}

.beer-card:hover {
    background: var(--hover-bg);
}

.beer-card.loading {
    opacity: 0.7;
}

.beer-card-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.beer-card-info {
    flex: 1;
    min-width: 0;
}

.beer-card-name {
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.beer-card-details {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.beer-card-details .brewery {
    color: var(--accent);
}

.beer-card-details .style {
    font-style: italic;
}

.beer-card-status {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.beer-card-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.beer-card:hover .beer-card-actions {
    opacity: 1;
}

/* Beer theme grid */
.beer-theme-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.beer-theme-grid .theme-option {
    cursor: pointer;
}

.beer-theme-grid .theme-option input {
    display: none;
}

.beer-theme-grid .theme-preview {
    padding: 12px 8px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.2s;
}

.beer-theme-grid .theme-option input:checked + .theme-preview {
    border-color: var(--accent);
    background: rgba(225, 228, 131, 0.1);
}

.beer-theme-grid .theme-name {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Theme previews */
.beer-theme-chalkboard {
    background: #2d3a2d;
    color: #fff;
}

.beer-theme-modern {
    background: #1a1a2e;
    color: #fff;
}

.beer-theme-classic {
    background: #4a3728;
    color: #f5deb3;
}

.beer-theme-neon {
    background: #0a0a1a;
    color: #0ff;
}

.beer-theme-wooden {
    background: #5c4033;
    color: #fff;
}

/* Beer menu edit container */
.beer-menu-edit-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.beer-menu-edit-settings {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

/* ═══════════════════════════════════════════════════════════════════════
   Upgrade / Thursti Pro App
   ═══════════════════════════════════════════════════════════════════════ */

.upgrade-app {
    background: linear-gradient(180deg, rgba(30, 35, 50, 0.6) 0%, rgba(20, 22, 30, 0.9) 100%);
}

.upgrade-app .app-content {
    overflow-y: auto;
    padding: 24px 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
}

/* ── Limit Banner (contextual) ─────────────────────────────────────── */
.upgrade-limit-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 140, 50, 0.12);
    border: 1px solid rgba(255, 140, 50, 0.35);
    border-radius: 10px;
    padding: 14px 20px;
    width: 100%;
    max-width: 580px;
    animation: banner-slide-in 0.35s ease-out;
}

@keyframes banner-slide-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.limit-banner-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 140, 50, 0.2);
    border-radius: 8px;
    color: #ffaa55;
}

.limit-banner-icon svg {
    width: 20px;
    height: 20px;
}

.limit-banner-text strong {
    display: block;
    font-size: 0.95rem;
    color: #ffcc88;
    margin-bottom: 2px;
}

.limit-banner-text p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.35;
}

/* ── Hero Section ──────────────────────────────────────────────────── */
.upgrade-hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.upgrade-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.upgrade-hero h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.upgrade-subline {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    max-width: 440px;
    line-height: 1.4;
}

.upgrade-subline strong {
    color: rgba(255,255,255,0.85);
}

/* ── Pricing Cards ─────────────────────────────────────────────────── */
.upgrade-pricing {
    display: flex;
    gap: 18px;
    width: 100%;
    max-width: 580px;
    justify-content: center;
}

.pricing-card {
    position: relative;
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 22px 18px 24px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pricing-card.current {
    border-color: rgba(255,255,255,0.15);
}

.pricing-card.pro {
    background: linear-gradient(160deg, rgba(100, 140, 255, 0.12) 0%, rgba(80, 60, 200, 0.10) 100%);
    border-color: rgba(100, 140, 255, 0.3);
    box-shadow: 0 0 24px rgba(100, 140, 255, 0.08);
}

.pricing-card.pro:hover {
    border-color: rgba(100, 140, 255, 0.5);
    box-shadow: 0 0 32px rgba(100, 140, 255, 0.12);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 20px;
}

.pricing-badge.pro-badge {
    background: linear-gradient(135deg, #648cff, #7c4dff);
    border-color: rgba(100, 140, 255, 0.5);
    color: #fff;
}

.pricing-card h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 4px;
}

.pricing-amount .price {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.pricing-amount .period {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.pricing-desc {
    margin: 0 0 14px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.35;
}

.pricing-desc strong {
    color: rgba(255,255,255,0.7);
}

/* ── Feature List ──────────────────────────────────────────────────── */
.pricing-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    line-height: 1.3;
}

.pricing-features li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.pricing-features li.included {
    color: rgba(255,255,255,0.8);
}

.pricing-features li.included svg {
    color: #61c080;
}

.pricing-features li.excluded {
    color: rgba(255,255,255,0.3);
}

.pricing-features li.excluded svg {
    color: rgba(255,80,80,0.5);
}

/* ── Upgrade CTA Button ───────────────────────────────────────────── */
.btn-upgrade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #648cff, #7c4dff);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, filter 0.15s;
    box-shadow: 0 2px 12px rgba(100, 140, 255, 0.25);
}

.btn-upgrade:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(100, 140, 255, 0.4);
    filter: brightness(1.08);
}

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

.btn-upgrade.btn-lg {
    padding: 13px 32px;
    font-size: 0.95rem;
    border-radius: 10px;
}

/* ── Ghost Button ──────────────────────────────────────────────────── */
.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.5);
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.btn-ghost:hover {
    border-color: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.75);
}

/* ── Pricing Example Table ─────────────────────────────────────────── */
.upgrade-example {
    width: 100%;
    max-width: 380px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 18px 20px;
}

.upgrade-example h4 {
    margin: 0 0 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}

.example-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.example-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
}

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

.example-price {
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

.example-note {
    margin: 10px 0 0;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    text-align: center;
}

/* ── Usage Bars ────────────────────────────────────────────────────── */
.upgrade-usage {
    width: 100%;
    max-width: 380px;
}

.upgrade-usage h4 {
    margin: 0 0 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}

.usage-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.usage-bar-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.usage-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
}

.usage-bar-label .usage-full {
    color: #ff7a7a;
    font-weight: 600;
}

.usage-bar-track {
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}

.usage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #648cff, #7c4dff);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.usage-bar-fill.full {
    background: linear-gradient(90deg, #ff6b6b, #ff4757);
}

/* ── Footer Actions ────────────────────────────────────────────────── */
.upgrade-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
}

/* ── Coming Soon / Contact CTA ─────────────────────────────────────── */
.upgrade-coming-soon {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: banner-slide-in 0.3s ease-out;
}

.upgrade-thanks {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #61c080;
}

.upgrade-soon-text {
    margin: 0;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.5);
    max-width: 380px;
    line-height: 1.4;
}

.upgrade-coming-soon .btn-upgrade {
    margin-top: 6px;
    text-decoration: none;
}

.upgrade-coming-soon .btn-upgrade svg {
    width: 16px;
    height: 16px;
}

/* ── Upgrade button icon sizing ────────────────────────────────────── */
.btn-upgrade svg {
    width: 16px;
    height: 16px;
}

/* ── Paid-user Summary Stats ───────────────────────────────────────── */
.paid-summary {
    display: flex;
    gap: 24px;
    justify-content: center;
    width: 100%;
    max-width: 420px;
}

.paid-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    padding: 14px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
}

.paid-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.paid-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ===== Google Place Picker ===== */

.place-search-container {
    position: relative;
}

.place-search-input {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0 12px;
}
.place-search-input svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    flex-shrink: 0;
}
.place-search-input input {
    flex: 1;
    border: none;
    background: none;
    padding: 10px 0;
    color: var(--text-color);
    font-size: 0.9rem;
    outline: none;
}

.place-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e1e2e;
    border: 1px solid var(--border-color);
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
}
.place-result {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.place-result:hover { background: rgba(255,255,255,0.06); }
.place-main {
    font-weight: 500;
    color: #fff;
    font-size: 0.9rem;
}
.place-secondary {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
}

.selected-place {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(66, 133, 244, 0.1);
    border: 1px solid rgba(66, 133, 244, 0.3);
    border-radius: 6px;
    padding: 10px 12px;
    color: #fff;
    font-size: 0.9rem;
}
.selected-place .place-badge svg {
    width: 18px;
    height: 18px;
}
.selected-place .btn-clear {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
}
.selected-place .btn-clear:hover { color: #fff; }

/* Venue card Google badge */
.venue-google-place {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 0.78rem;
}
.venue-google-place .google-badge svg {
    width: 14px;
    height: 14px;
}
.venue-google-place .google-rating {
    color: #fbbc05;
    font-weight: 600;
}
.venue-google-place .google-count {
    color: rgba(255,255,255,0.4);
}

/* ===== Reviews Slide ===== */

.reviews-placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.reviews-placeholder .reviews-icon {
    font-size: 2rem;
    color: #fbbc05;
}
.reviews-placeholder .reviews-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

.reviews-preview {
    text-align: center;
    padding: 24px;
}
.reviews-preview-icon {
    font-size: 3rem;
    color: #fbbc05;
}
.reviews-preview-venue {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-top: 8px;
}

.reviews-info-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    background: rgba(66, 133, 244, 0.15);
    border-radius: 12px;
    font-size: 0.78rem;
    color: rgba(66, 133, 244, 0.9);
}

.reviews-actions-row {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}
.reviews-actions-row .btn svg {
    width: 14px;
    height: 14px;
    margin-right: 4px;
}
