/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #151520;
    --neon-purple: #a855f7;
    --neon-magenta: #ec4899;
    --neon-cyan: #06b6d4;
    --text-primary: #ffffff;
    --text-secondary: #b4b4c7;
    --gradient-1: linear-gradient(135deg, var(--neon-purple), var(--neon-magenta));
    --gradient-2: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    --gradient-3: linear-gradient(135deg, var(--neon-magenta), var(--neon-cyan));
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.2);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.logo h1 {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu span {
    font-weight: 600;
    color: var(--text-primary);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(168, 85, 247, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--neon-purple);
    border: 2px solid var(--neon-purple);
}

.btn-outline:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--neon-magenta);
    color: var(--text-primary);
}

.btn-link {
    background: none;
    color: var(--neon-purple);
    padding: 5px 0;
    border: none;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--neon-cyan);
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Main Content */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

/* Auth Forms */
.auth-form {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.auth-container {
    background: rgba(21, 21, 32, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.3);
    width: 100%;
    max-width: 400px;
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(10, 10, 15, 0.5);
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

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

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

.form-group small,
.form-hint {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* OTP Input Styling */
#forgotPasswordOTP {
    text-align: center !important;
    font-size: 1.5rem !important;
    letter-spacing: 0.5rem !important;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

#forgotPasswordOTP::placeholder {
    letter-spacing: normal;
    font-size: 0.9rem;
    color: #999;
}

/* Dashboard */
.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dashboard h2 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-actions {
    text-align: center;
    margin-bottom: 2rem;
}

/* Establishments List */
.establishments-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.establishment-card {
    background: rgba(21, 21, 32, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    word-wrap: break-word;
}

.establishment-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-purple);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.4);
}

.establishment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.establishment-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.establishment-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Establishment ID styling */
.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-item span {
    flex: 1;
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
}

.info-item i {
    color: var(--neon-purple);
    width: 16px;
    flex-shrink: 0;
}

.establishment-info {
    margin-bottom: 1rem;
}

/* Spotify status styling */
.spotify-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.spotify-connected {
    background: #1ed760;
    color: white;
}

.spotify-disconnected {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
}

.provider-status {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1rem;
}

.soundtrack-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.soundtrack-connected {
    background: rgba(36, 138, 64, 0.15);
    border: 1px solid rgba(36, 138, 64, 0.4);
    color: #248A40;
}

.soundtrack-disconnected {
    background: rgba(231, 76, 60, 0.1);
    border: 1px dashed rgba(231, 76, 60, 0.5);
    color: #c0392b;
}

/* Establishment actions styling */
.establishment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.establishment-actions .btn {
    flex-shrink: 0;
    font-size: 0.85rem;
    padding: 8px 12px;
}

.establishment-actions .btn-icon {
    padding: 8px;
    min-width: 36px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .establishments-grid {
        grid-template-columns: 1fr;
    }
    
    .establishment-actions {
        justify-content: center;
    }
    
    .establishment-actions .btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .info-item span {
        font-size: 0.85rem;
    }
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 14px;
}

.spotify-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.spotify-connected {
    background: #1db954;
    color: white;
}

.spotify-disconnected {
    background: rgba(236, 72, 153, 0.2);
    border: 1px solid rgba(236, 72, 153, 0.4);
    color: var(--neon-magenta);
}

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

.btn-icon {
    padding: 8px;
    min-width: auto;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(21, 21, 32, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.3);
}

.modal-large {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.modal-header h3 {
    color: var(--text-primary);
    margin: 0;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--neon-purple);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(21, 21, 32, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.4);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1001;
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.toast.error {
    background: rgba(236, 72, 153, 0.2);
    border-color: var(--neon-magenta);
    color: var(--neon-magenta);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(168, 85, 247, 0.2);
    border-top: 5px solid var(--neon-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Spotify Integration Styles */
.spotify-section {
    background: rgba(10, 10, 15, 0.5);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.spotify-section h4 {
    color: #1db954;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spotify-user-info {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.spotify-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1db954;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.spotify-user-details h5 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.spotify-user-details p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Spotify Tabs Styles */
.spotify-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    color: var(--neon-purple);
}

.tab-btn.active {
    background: rgba(29, 185, 84, 0.2);
    color: #1db954;
    border-bottom: 2px solid #1db954;
}

.tab-btn i {
    font-size: 0.9rem;
}

/* Device Management Styles */
.device-manager {
    max-width: 100%;
}

.device-manager-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(168, 85, 247, 0.2);
}

.device-manager-header h4 {
    color: #1db954;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.device-manager-header p {
    color: var(--text-secondary);
    margin: 0;
}

.devices-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.device-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    background: rgba(21, 21, 32, 0.5);
    transition: all 0.3s ease;
}

.device-card:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.device-card.selected {
    border-color: #1db954;
    background: rgba(29, 185, 84, 0.1);
}

.device-card.inactive {
    opacity: 0.6;
    background: rgba(10, 10, 15, 0.3);
}

.device-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.device-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1db954, #1ed760);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.device-details h5 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.device-type {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.device-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(6, 182, 212, 0.2);
    color: var(--neon-cyan);
    border: 1px solid rgba(6, 182, 212, 0.4);
}

.status-badge.inactive {
    background: rgba(236, 72, 153, 0.2);
    color: var(--neon-magenta);
    border: 1px solid rgba(236, 72, 153, 0.4);
}

.volume-info {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.device-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selected-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #1db954;
    font-weight: 500;
    font-size: 0.9rem;
}

.device-manager-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid rgba(168, 85, 247, 0.2);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .device-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .device-info {
        justify-content: center;
    }
    
    .device-actions {
        justify-content: center;
    }
    
    .device-manager-footer {
        flex-direction: column;
        gap: 1rem;
    }
}

.playlists-section {
    margin-top: 1rem;
}

.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.playlist-card {
    background: rgba(21, 21, 32, 0.5);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.1);
    transition: all 0.3s ease;
}

.playlist-card:hover {
    transform: translateY(-2px);
    border-color: var(--neon-purple);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.playlist-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.playlist-info {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        width: 100%;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .establishments-list {
        grid-template-columns: 1fr;
    }
    
    .establishment-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .toast {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* ===== BLACKLIST STYLES ===== */
.blacklist-section {
  padding: 20px 0;
}

.blacklist-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.blacklist-header h4 {
  margin: 0 0 15px 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.blacklist-config {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.config-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.status-enabled {
  color: var(--neon-cyan);
  font-weight: 600;
}

.status-disabled {
  color: var(--neon-magenta);
  font-weight: 600;
}

.blacklist-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.stat-card {
  background: rgba(21, 21, 32, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.stat-card h5 {
  margin: 0 0 5px 0;
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: bold;
}

.stat-card span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.blacklist-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.tab-btn {
  padding: 10px 15px;
  border: none;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.tab-btn:hover {
  color: var(--neon-purple);
  background: rgba(168, 85, 247, 0.1);
}

.tab-btn.active {
  color: var(--neon-purple);
  border-bottom-color: var(--neon-purple);
  background: rgba(168, 85, 247, 0.1);
}

.blacklist-content {
  min-height: 200px;
  margin-bottom: 20px;
}

.blacklist-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blacklist-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.blacklist-item .item-info {
  flex: 1;
}

.blacklist-item .item-info h5 {
  margin: 0 0 5px 0;
  color: #2c3e50;
  font-size: 1rem;
}

.blacklist-item .item-info p {
  margin: 0 0 5px 0;
  color: #6c757d;
  font-size: 0.9rem;
}

.blacklist-item .item-info small {
  color: #adb5bd;
  font-size: 0.8rem;
}

.blacklist-item .item-actions {
  margin-left: 15px;
}

.blacklist-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid rgba(168, 85, 247, 0.2);
}

/* ===== QR CODE STYLES ===== */
.qr-section {
  padding: 20px 0;
}

.qr-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.qr-header h4 {
  margin: 0 0 10px 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.qr-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.qr-display {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 25px;
}

.qr-image-container {
  position: relative;
  background: rgba(21, 21, 32, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-image {
  max-width: 300px;
  height: auto;
  border-radius: 8px;
}

.qr-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.qr-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.qr-info .info-item {
  padding: 10px 0;
  border-bottom: 1px solid #f8f9fa;
}

.qr-info .info-item strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 5px;
}

.qr-info code {
  background: rgba(10, 10, 15, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  word-break: break-all;
  color: var(--neon-cyan);
}

.qr-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.qr-usage {
  background: rgba(21, 21, 32, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 20px;
  border-radius: 8px;
}

.qr-usage h5 {
  margin: 0 0 15px 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.qr-usage ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
}

.qr-usage li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ===== RESPONSIVE ADJUSTMENTS FOR NEW FEATURES ===== */
@media (max-width: 768px) {
  .qr-display {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .qr-image-container {
    justify-self: center;
  }
  
  .qr-actions {
    flex-direction: column;
  }
  
  .blacklist-config {
    flex-direction: column;
    gap: 10px;
  }
  
  .blacklist-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blacklist-tabs {
    flex-wrap: wrap;
  }
  
  .blacklist-item {
    flex-direction: column;
    gap: 10px;
  }
  
  .blacklist-item .item-actions {
    margin-left: 0;
    align-self: flex-end;
  }
}
