/* Reset og base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', Roboto, sans-serif;
    background: linear-gradient(135deg, #4A148C 0%, #764ba2 100%);
    background-image: url('bg.webp');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    padding: clamp(16px, 4vw, 40px);
    position: relative;
    font-weight: 400;
    line-height: 1.6;
    color: #2c3e50;
    letter-spacing: -0.01em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: clamp(16px, 3vw, 24px);
    box-shadow:
        0 32px 64px rgba(74, 20, 140, 0.15),
        0 16px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    pointer-events: none;
}

.container:hover {
    transform: translateY(-2px);
    box-shadow:
        0 40px 80px rgba(74, 20, 140, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Header */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: clamp(32px, 6vw, 56px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #ffd700 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: 0.85;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.info-btn, .admin-btn {
    position: absolute;
    top: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-btn {
    right: 20px;
}

.admin-btn {
    right: 70px;
}

.info-btn:hover, .admin-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Legend */
.legend {
    padding: 20px 40px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.legend h4 {
    margin-bottom: 15px;
    color: #495057;
}

.legend-item {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    margin-right: 15px;
    font-size: 0.9em;
    font-weight: 600;
}

.legend-item.green {
    background: #28a745;
    color: white;
}

.legend-item.yellow {
    background: #ffc107;
    color: #212529;
}

.legend-item.red {
    background: #dc3545;
    color: white;
}

/* Search section */
.search-section {
    padding: 40px;
}

.search-bar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.digit-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
}

.digit-box {
    width: 60px;
    height: 70px;
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    background: white;
}

.digit-box:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

.digit-box:hover {
    border-color: #007bff;
}

.search-info {
    text-align: center;
    font-weight: 500;
    color: #495057;
    font-size: 0.95em;
    width: 100%;
}

button {
    padding: 15px 30px;
    font-size: 1em;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#searchBtn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

#searchBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.help-text {
    color: #6c757d;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Info Box */
.info-box {
    padding: 20px 40px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-top: 1px solid #e9ecef;
}

.info-box p {
    margin: 0;
    color: #856404;
    font-size: 0.95em;
}

/* Check section */
.check-section {
    padding: 30px 40px;
    background: #e3f2fd;
    border-top: 1px solid #e9ecef;
}

.check-section h4 {
    margin-bottom: 10px;
    color: #1976d2;
}

.check-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    margin-top: 15px;
}

.check-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Progress */
.progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 25px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 15px;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-weight: 500;
    color: #495057;
}

/* Results */
.results {
    padding: 40px;
}

.category-controls {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.result-category {
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 0;
    border-left: 5px solid #007bff;
    overflow: hidden;
}

.result-category h3 {
    color: #007bff;
    margin: 0;
    padding: 20px 25px;
    font-size: 1.3em;
    cursor: pointer;
    background: #f8f9fa;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-category h3:hover {
    background: #e9ecef;
}

.result-category h3::after {
    content: '▼';
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.result-category.collapsed h3::after {
    transform: rotate(-90deg);
}

.result-category-content {
    padding: 0 25px 25px 25px;
    transition: all 0.3s ease;
}

.result-category.collapsed .result-category-content {
    display: none;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.number {
    padding: 20px 16px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

/* Tekst skifter ved hover */
.number .number-text {
    display: block;
    white-space: nowrap;
}

.number .hover-text {
    display: none;
    font-size: 0.8em;
    font-family: Arial, sans-serif;
}

.number:hover .number-text {
    display: none;
}

.number:hover .hover-text {
    display: block;
}

.number.green .hover-text::after {
    content: 'Ledig';
}

.number.yellow .hover-text::after {
    content: 'Måske ledig';
}

.number.red .hover-text::after {
    content: 'Optaget';
}

.number:not(.green):not(.yellow):not(.red) .hover-text::after {
    content: 'Tilføj';
}

/* Removed - using status badges now */

/* Removed - using status badges now */

/* Removed - using status badges now */

/* Removed - using status badges now */

/* Removed - using status badges now */

.number.occupied .hover-text::after {
    content: 'Optaget (cached)';
}

.number.checking {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border-color: #495057;
}

.number.checking::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

.button-loading {
    position: relative;
    pointer-events: none;
}

.button-loading::before {
    content: '⟳';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    animation: button-spin 1s linear infinite;
    font-size: 1.2em;
}

/* Selected numbers styling */
.number.selected {
    border: 3px solid #007bff !important;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5) !important;
    transform: scale(1.05);
}

/* Floating Selected Numbers */
.floating-selected {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
}

.floating-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.floating-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.6);
}

.floating-icon {
    font-size: 24px;
    color: white;
}

.floating-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}

.floating-modal {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideUp 0.3s ease;
    overflow: hidden;
}

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

.floating-modal-header {
    padding: 20px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.floating-modal-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.floating-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.floating-modal-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
}

.floating-modal-content::-webkit-scrollbar {
    width: 6px;
}

.floating-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.floating-modal-content::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 3px;
}

.selected-number-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.selected-number-item:hover {
    background: #e9ecef;
}

.selected-number-text {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1em;
    color: #495057;
}

.remove-number-btn {
    background: #dc3545;
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.remove-number-btn:hover {
    background: #c82333;
}

.selected-category {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
    margin-right: 8px;
}

.floating-modal-actions {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn {
    background: #28a745;
    color: white;
}

.copy-btn:hover {
    background: #218838;
}

.clear-btn {
    background: #dc3545;
    color: white;
}

.clear-btn:hover {
    background: #c82333;
}

.empty-message {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    margin: 20px 0;
}

/* Floating Selected Numbers */
.floating-selected {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
}

.floating-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.floating-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.6);
}

.floating-icon {
    font-size: 24px;
    color: white;
}

.floating-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}

.floating-modal {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideUp 0.3s ease;
    overflow: hidden;
}

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

.floating-modal-header {
    padding: 20px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.floating-modal-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.floating-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.floating-modal-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
}

.floating-modal-content::-webkit-scrollbar {
    width: 6px;
}

.floating-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.floating-modal-content::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 3px;
}

.selected-number-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.selected-number-item:hover {
    background: #e9ecef;
}

.selected-number-text {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1em;
    color: #495057;
}

.remove-number-btn {
    background: #dc3545;
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.remove-number-btn:hover {
    background: #c82333;
}

.selected-category {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
    margin-right: 8px;
}

.floating-modal-actions {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn {
    background: #28a745;
    color: white;
}

.copy-btn:hover {
    background: #218838;
}

.clear-btn {
    background: #dc3545;
    color: white;
}

.clear-btn:hover {
    background: #c82333;
}

.empty-message {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    margin: 20px 0;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #000;
}

/* Loading spinner */
.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Status table */
.status-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.status-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
}

.status-table td:first-child {
    font-weight: 600;
    color: #495057;
    width: 40%;
}

/* No results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-size: 1.1em;
}

.no-results::before {
    content: '🔍';
    display: block;
    font-size: 4em;
    margin-bottom: 20px;
}

/* Stats */
.stats {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.stats h3 {
    color: #1976d2;
    margin-bottom: 10px;
}

/* Mobile and Tablet Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        margin: 10px;
    }
    
    .number-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
    
    .floating-modal {
        width: 320px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    body {
        padding: 5px;
    }
    
    header {
        padding: 25px 20px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .search-section,
    .results {
        padding: 20px 15px;
    }
    
    .digit-inputs {
        gap: 6px;
        margin-bottom: 10px;
    }
    
    .digit-box {
        width: 55px;
        height: 65px;
        font-size: 1.6em;
    }
    
    button {
        padding: 12px 24px;
        font-size: 0.95em;
    }

    .number-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .number {
        padding: 18px 14px;
        font-size: 1.1em;
        min-height: 65px;
    }
    
    /* Floating modal adjustments for tablets */
    .floating-selected {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-modal {
        width: 300px;
        max-height: 60vh;
        bottom: 70px;
    }
    
    .category-controls {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .category-controls button {
        font-size: 0.85em;
        padding: 5px 10px;
    }
    
    .modal-content {
        margin: 5% auto;
        padding: 25px 15px;
        width: 95%;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    body {
        padding: 0;
    }
    
    .container {
        margin: 0;
        border-radius: 0;
    }
    
    header {
        padding: 20px 15px;
        border-radius: 0;
    }
    
    .info-btn {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    .search-section,
    .results {
        padding: 15px 10px;
    }
    
    .digit-inputs {
        gap: 4px;
        margin-bottom: 10px;
    }
    
    .digit-box {
        width: 48px;
        height: 60px;
        font-size: 1.4em;
    }
    
    button {
        padding: 10px 20px;
        font-size: 0.9em;
        min-height: 44px; /* Touch-friendly */
    }
    
    .help-text {
        font-size: 0.85em;
        line-height: 1.4;
    }
    
    /* Mobile help text buttons */
    .help-text button {
        float: none !important;
        display: block;
        margin: 8px 0 0 0;
        width: 100%;
        font-size: 0.85em;
        padding: 8px 12px;
    }
    
    /* Mobile search info */
    .search-info {
        text-align: left !important;
        font-size: 0.9em;
        margin: 8px 0;
    }
    
    /* Mobile number grid */
    .number-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .number {
        padding: 16px 12px;
        font-size: 1.0em;
        min-height: 60px; /* Touch-friendly */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile category controls */
    .category-controls {
        text-align: left;
        padding: 10px;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .category-controls > div {
        display: block !important;
        margin: 0 !important;
    }
    
    .category-controls span {
        display: block;
        margin-bottom: 5px;
        font-size: 0.9em;
    }
    
    .category-controls button {
        margin: 2px;
        padding: 8px 12px;
        font-size: 0.8em;
        min-height: 36px;
    }
    
    /* Mobile floating elements */
    .floating-selected {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-button {
        width: 50px;
        height: 50px;
        box-shadow: 0 2px 15px rgba(0, 123, 255, 0.4);
    }
    
    .floating-icon {
        font-size: 20px;
    }
    
    .floating-count {
        width: 20px;
        height: 20px;
        font-size: 11px;
        top: -6px;
        right: -6px;
    }
    
    /* Mobile modal - full width */
    .floating-modal {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: 80vh;
        border-radius: 15px 15px 0 0;
        animation: modalSlideUpMobile 0.3s ease;
    }
    
    @keyframes modalSlideUpMobile {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
    
    .floating-modal-header {
        padding: 15px;
    }
    
    .floating-modal-content {
        max-height: 50vh;
        padding: 10px 15px;
    }
    
    .selected-number-item {
        padding: 12px 10px;
        margin-bottom: 8px;
    }
    
    .selected-number-text {
        font-size: 1em;
    }
    
    .remove-number-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .floating-modal-actions {
        padding: 15px;
        gap: 8px;
    }
    
    .action-btn {
        padding: 12px;
        font-size: 0.9em;
        min-height: 44px; /* Touch-friendly */
    }
    
    /* Mobile progress bar */
    .progress-bar {
        height: 20px;
    }
    
    .progress-text {
        font-size: 0.9em;
    }
    
    /* Mobile result categories */
    .result-category {
        margin-bottom: 20px;
    }
    
    .result-category h3 {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    
    .result-category-content {
        padding: 0 15px 20px 15px;
    }
    
    /* Mobile loading modal */
    .modal-content {
        margin: 10% auto;
        padding: 20px 15px;
        width: 90%;
        max-width: 400px;
    }
    
    .spinner {
        width: 40px;
        height: 40px;
        border-width: 4px;
    }
}

/* Series modal styles */
.series-modal-content {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #007bff;
    font-size: 1.5em;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #495057;
}

.series-category {
    margin-bottom: 20px;
}

.series-category h4 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1.1em;
    padding-bottom: 5px;
    border-bottom: 1px solid #dee2e6;
}

.series-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

/* Special styling for gold series */
#goldSeries.series-list {
    max-height: 500px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.series-list::-webkit-scrollbar {
    width: 6px;
}

.series-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.series-list::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 3px;
}

.series-item {
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #495057;
    border-left: 3px solid #007bff;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    user-select: text;
}

/* Special styling for gold series items */
#goldSeries .series-item {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-left: 3px solid #FFD700;
    font-weight: 600;
    color: #B8860B;
    box-shadow: 0 1px 3px rgba(255, 215, 0, 0.2);
}

#goldSeries .series-item:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 255, 255, 0.8) 100%);
    transform: translateX(2px);
    border-left: 4px solid #FFD700;
}

.series-item:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

.modal-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.series-note {
    color: #6c757d;
    font-size: 0.9em;
    font-style: italic;
    margin: 0;
    text-align: center;
}

/* Mobile series modal adjustments */
@media (max-width: 480px) {
    .series-modal-content {
        max-height: 70vh;
    }
    
    .series-list {
        max-height: 150px;
    }
    
    .series-item {
        font-size: 0.8em;
        padding: 5px 8px;
    }
    
    .modal-header h3 {
        font-size: 1.2em;
    }
    
    .series-category h4 {
        font-size: 1em;
        margin-bottom: 8px;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    header h1 {
        font-size: 1.6em;
    }
    
    .digit-inputs {
        gap: 3px;
    }
    
    .digit-box {
        width: 45px;
        height: 58px;
        font-size: 1.3em;
    }
    
    .number-grid {
        grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
        gap: 8px;
    }

    .number {
        padding: 14px 10px;
        font-size: 0.9em;
        min-height: 55px;
    }
    
    .floating-button {
        width: 45px;
        height: 45px;
    }
    
    .floating-icon {
        font-size: 18px;
    }

    .number-price {
        font-size: 0.6em;
    }
}

/* Number prices */
.number-price {
    position: absolute;
    top: 2px;
    right: 4px;
    background: #ffc107;
    color: #212529;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.7em;
    font-weight: bold;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    z-index: 2;
}

/* Status badges for sold/reserved - top left */
.number-sold-badge,
.number-reserved-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    font-size: 0.6em;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
    line-height: 1;
    white-space: nowrap;
    z-index: 4;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.number-sold-badge {
    background: #dc3545;
    color: white;
}

.number-reserved-badge {
    background: #28a745;
    color: white;
}

/* SOLGT diagonal stripe overlay */
.number-sold-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
    border-radius: inherit;
}

.number-sold-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20%;
    right: -20%;
    height: 6px;
    background: #dc3545;
    transform: translateY(-50%) rotate(-45deg);
    box-shadow:
        0 0 0 1px rgba(220, 53, 69, 0.3),
        0 2px 4px rgba(220, 53, 69, 0.5);
}

/* Modern Homepage Styles */
.modern-homepage {
    padding: 0;
    background: white;
    min-height: 60vh;
    border-radius: 0;
}

/* Category Overview */
.category-overview {
    background: white;
    padding: 80px 40px;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 60px;
    color: #2c3e50;
    font-weight: 600;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--category-gradient);
}

.category-card.category-diamond {
    --category-gradient: linear-gradient(90deg, #b0e0e6, #4169e1, #0000cd);
}

.category-card.category-gold {
    --category-gradient: linear-gradient(90deg, #ffd700, #daa520);
}

.category-card.category-silver {
    --category-gradient: linear-gradient(90deg, #c0c0c0, #808080);
}

.category-card.category-bronze {
    --category-gradient: linear-gradient(90deg, #cd7f32, #8b4513);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.category-header {
    text-align: center;
    margin-bottom: 25px;
}

.category-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
}

.category-name {
    font-size: 1.5em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.category-desc {
    color: #7f8c8d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.category-count {
    background: #f8f9fa;
    color: #495057;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    display: inline-block;
}

.category-examples {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.example-number {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid var(--category-gradient);
}

.example-number:last-child {
    margin-bottom: 0;
}

.example-number:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.number-display {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 1.1em;
    color: #2c3e50;
    white-space: nowrap;
}

.number-price-tag {
    background: var(--category-gradient);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 600;
}

.category-cta {
    width: 100%;
    background: var(--category-gradient);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Featured Section */
.featured-section {
    background: #f8f9fa;
    padding: 80px 40px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.featured-number {
    font-family: 'Courier New', monospace;
    font-size: 2em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.featured-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.featured-category, .featured-price {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
}

.featured-category {
    background: #e9ecef;
    color: #495057;
}

.featured-price {
    background: #28a745;
    color: white;
}

.featured-select {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.featured-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: white;
}

.empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.empty-state p {
    color: #7f8c8d;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .category-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2em;
    }

    .category-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-overview, .featured-section {
        padding: 40px 20px;
    }
}

/* Modern Interest Panel */
.interest-panel {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 380px;
    max-height: 80vh;
    background: white;
    border-radius: 15px 0 0 15px;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e9ecef;
}

.interest-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.interest-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.interest-icon {
    font-size: 1.5em;
}

.interest-title h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
}

.interest-count {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 600;
}

.panel-minimize {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.panel-minimize:hover {
    background: rgba(255,255,255,0.3);
}

.interest-content {
    max-height: calc(80vh - 80px);
    overflow-y: auto;
    padding: 20px;
}

.interest-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.interest-empty .empty-icon {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.5;
}

.interest-empty p {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.interest-empty small {
    font-size: 0.9em;
    opacity: 0.7;
}

.interest-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.summary-stats {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-item strong {
    display: block;
    font-size: 1.2em;
    color: #2c3e50;
}

.interest-items {
    margin-bottom: 20px;
}

.interest-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: grab;
}

.interest-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.interest-item:active {
    cursor: grabbing;
}

.item-number {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 1.1em;
    color: #2c3e50;
    flex: 1;
    white-space: nowrap;
}

.item-badges {
    display: flex;
    gap: 5px;
    margin: 0 10px;
}

.item-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
}

.item-price {
    background: #28a745;
    color: white;
}

.item-category {
    background: #6c757d;
    color: white;
}

.item-status.status-green {
    background: #28a745;
    color: white;
}

.item-status.status-yellow {
    background: #ffc107;
    color: #212529;
}

.item-status.status-red {
    background: #dc3545;
    color: white;
}

.item-status.status-gray {
    background: #6c757d;
    color: white;
}

.item-status {
    background: #6c757d;
    color: white;
}

.item-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.item-remove:hover {
    background: rgba(220, 53, 69, 0.1);
}

.interest-actions {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.action-btn {
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9em;
}

.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
    margin-bottom: 10px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.action-row {
    display: flex;
    gap: 8px;
}

.secondary-btn {
    background: #f8f9fa;
    color: #495057;
    flex: 1;
}

.secondary-btn:hover {
    background: #e9ecef;
}

.danger-btn {
    background: #dc3545;
    color: white;
    flex: 1;
}

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

/* Floating Interest Button */
.interest-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.float-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.float-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.float-icon {
    font-size: 1.5em;
    margin-bottom: 2px;
}

.float-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7em;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Panel States */
.interest-panel.minimized {
    transform: translateY(-50%) translateX(330px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .interest-panel {
        width: 100%;
        top: auto;
        bottom: 0;
        right: 0;
        transform: none;
        border-radius: 15px 15px 0 0;
        max-height: 70vh;
    }

    .interest-panel.minimized {
        transform: translateY(calc(100% - 60px));
    }

    .interest-float {
        bottom: 20px;
        right: 20px;
    }

    .float-button {
        width: 55px;
        height: 55px;
    }
}

/* Modern Modal Styles */
.modern-modal {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modern-modal .modal-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: none;
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.confirmation-modal {
    max-width: 480px;
    text-align: center;
}

.batch-check-modal {
    max-width: 600px;
    min-height: 400px;
}

.modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8em;
    color: #6c757d;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #495057;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Confirmation Modal */
.confirm-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.8;
}

.confirm-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    text-align: left;
    font-size: 0.9em;
    color: #495057;
}

/* Batch Check Modal */
.check-progress {
    margin-bottom: 30px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #495057;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

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

.result-stat {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.result-stat.available {
    border-color: #28a745;
}

.result-stat.occupied {
    border-color: #dc3545;
}

.result-stat.error {
    border-color: #ffc107;
}

.stat-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.stat-info strong {
    display: block;
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-info span {
    font-size: 0.9em;
    color: #6c757d;
}

.results-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.result-item:last-child {
    border-bottom: none;
}

.result-number {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    flex: 1;
    color: #2c3e50;
}

.result-price {
    color: #28a745;
    font-weight: 600;
    margin-right: 15px;
    min-width: 80px;
    text-align: right;
}

.result-status {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.result-status.available {
    background: #d4edda;
    color: #155724;
}

.result-status.occupied {
    background: #f8d7da;
    color: #721c24;
}

.result-status.error {
    background: #fff3cd;
    color: #856404;
}

/* Modern Button Styles */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9em;
    min-width: 100px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }

    .confirmation-modal,
    .batch-check-modal {
        max-width: none;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }

    .results-summary {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Admin mode styling */
body.admin-mode {
    border: 3px solid #dc3545 !important;
    box-sizing: border-box;
}

.number:hover .number-price {
    background: #e0a800;
}

/* Removed old status indicators - now using badges */

/* Homepage styles */
.homepage-content {
    padding: 40px;
    text-align: center;
}

.homepage-header h2 {
    color: #2c3e50;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.homepage-header p {
    color: #7f8c8d;
    font-size: 1.2em;
    margin-bottom: 40px;
}

.showcase-section {
    margin-bottom: 40px;
}

.showcase-section h3 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.showcase-number {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.showcase-number:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.showcase-number .number-text {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    white-space: nowrap;
}

/* Showcase prices now use the standard number-price styling */

.showcase-number .number-status {
    font-size: 0.9em;
    color: #7f8c8d;
}

.showcase-empty {
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
}

.homepage-instructions {
    background: #ecf0f1;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.homepage-instructions h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.homepage-instructions ul {
    text-align: left;
    list-style: none;
    color: #34495e;
}

.homepage-instructions li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.homepage-instructions li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* Responsive design for homepage */
@media (max-width: 768px) {
    .homepage-content {
        padding: 20px;
    }

    .showcase-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        padding: 0 10px;
    }

    .showcase-number {
        padding: 15px;
        min-height: 60px;
    }

    .showcase-number .number-text {
        font-size: 1.1em;
    }

    .homepage-instructions {
        padding: 20px;
    }
}

/* Admin Modal Styles */
.admin-modal-content {
    max-width: 400px;
    margin: 0 auto;
}

.admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-login-form label {
    font-weight: bold;
    color: #2c3e50;
}

.admin-login-form input[type="password"] {
    padding: 12px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.admin-login-form input[type="password"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.admin-login-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.login-btn, .cancel-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn {
    background: #27ae60;
    color: white;
}

.login-btn:hover {
    background: #229954;
    transform: translateY(-2px);
}

.cancel-btn {
    background: #95a5a6;
    color: white;
}

.cancel-btn:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

/* Admin Status Bar */
.admin-status {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(231, 76, 60, 0.95);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.admin-text {
    font-weight: bold;
    font-size: 14px;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Mobile responsiveness for admin elements */
@media (max-width: 768px) {
    .admin-modal-content {
        margin: 20px;
        max-width: none;
    }

    .admin-status {
        top: 5px;
        right: 5px;
        padding: 6px 12px;
    }

    .admin-text {
        font-size: 12px;
    }

    .logout-btn {
        font-size: 11px;
        padding: 3px 8px;
    }

    .admin-login-form input[type="password"] {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Admin access in info modal */
.admin-access {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
    text-align: center;
}

.admin-login-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-login-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Price display - always at top right */
.number-price {
    position: absolute;
    top: 2px;
    right: 4px;
    background: #f39c12;
    color: white;
    font-size: 0.6em;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
    line-height: 1;
    white-space: nowrap;
    z-index: 3;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

/* Price Category Styles - now at bottom right */
.number-category {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 0.6em;
    font-weight: bold;
    padding: 1px 3px;
    border-radius: 3px;
    line-height: 1;
    white-space: nowrap;
    z-index: 2;
}

/* Category borders and backgrounds */
.category-bronze {
    border: 3px solid #cd7f32;
    background: linear-gradient(145deg,
        #f4a460 0%,
        #cd7f32 15%,
        #8b4513 30%,
        #cd7f32 45%,
        #deb887 60%,
        #cd7f32 75%,
        #8b4513 90%,
        #f4a460 100%);
    background-size: 200% 200%;
    animation: bronzeShimmer 8s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.category-bronze::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 70%);
    animation: metalGloss 6s linear infinite;
    pointer-events: none;
}

.category-bronze .number-category {
    background: linear-gradient(45deg, #cd7f32, #deb887, #cd7f32);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Add text readability overlay for bronze */
.category-bronze .number-text {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    font-weight: bold;
    position: relative;
    z-index: 3;
}

.category-silver {
    border: 3px solid #c0c0c0;
    background: linear-gradient(145deg,
        #f8f8ff 0%,
        #dcdcdc 15%,
        #a9a9a9 30%,
        #c0c0c0 45%,
        #e6e6fa 60%,
        #c0c0c0 75%,
        #a9a9a9 90%,
        #f8f8ff 100%);
    background-size: 200% 200%;
    animation: silverShimmer 7s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.category-silver::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 70%);
    animation: metalGloss 5s linear infinite;
    pointer-events: none;
}

.category-silver .number-category {
    background: linear-gradient(45deg, #c0c0c0, #e6e6fa, #c0c0c0);
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Add text readability overlay for silver */
.category-silver .number-text {
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    padding: 2px 6px;
    border-radius: 4px;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
    font-weight: bold;
    position: relative;
    z-index: 3;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.category-gold {
    border: 3px solid #ffd700;
    background: linear-gradient(145deg,
        #fff8dc 0%,
        #ffd700 15%,
        #daa520 30%,
        #ffdf00 45%,
        #fffacd 60%,
        #ffd700 75%,
        #b8860b 90%,
        #fff8dc 100%);
    background-size: 200% 200%;
    animation: goldShimmer 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.category-gold::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 70%);
    animation: metalGloss 4s linear infinite;
    pointer-events: none;
}

.category-gold .number-category {
    background: linear-gradient(45deg, #ffd700, #fffacd, #ffd700);
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(218, 165, 32, 0.8);
}

/* Add text readability overlay for gold */
.category-gold .number-text {
    background: rgba(139, 69, 19, 0.9);
    color: #fff8dc;
    padding: 2px 6px;
    border-radius: 4px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    font-weight: bold;
    position: relative;
    z-index: 3;
}

.category-diamond {
    border: 3px solid #4169e1;
    background: linear-gradient(145deg,
        #e6f3ff 0%,
        #b3d9ff 15%,
        #4169e1 30%,
        #6495ed 45%,
        #87ceeb 60%,
        #4169e1 75%,
        #1e90ff 90%,
        #e6f3ff 100%);
    background-size: 200% 200%;
    animation: diamondShimmer 9s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(65, 105, 225, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.category-diamond::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent 20%,
        rgba(255, 255, 255, 0.8) 40%,
        rgba(65, 105, 225, 0.3) 50%,
        rgba(255, 255, 255, 0.8) 60%,
        transparent 80%);
    animation: diamondGloss 7s linear infinite;
    pointer-events: none;
}

.category-diamond .number-category {
    background: linear-gradient(45deg, #4169e1, #87ceeb, #4169e1);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: 900;
}

/* Add text readability overlay for diamond */
.category-diamond .number-text {
    background: rgba(65, 105, 225, 0.95);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: bold;
    position: relative;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Visual indicator for unchecked numbers */
.number.unchecked::after {
    content: '?';
    position: absolute;
    top: 2px;
    left: 2px;
    background: #007bff;
    color: white;
    font-size: 0.7em;
    font-weight: bold;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 4;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Status badges */
.number-status-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    font-size: 0.65em;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 3px;
    line-height: 1;
    white-space: nowrap;
    z-index: 4;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    text-align: left;
    max-width: calc(100% - 10px);
    overflow: visible;
}

.status-green {
    background: #28a745;
    color: white;
}

.status-yellow {
    background: #ffc107;
    color: #212529;
    text-shadow: none;
}

.status-red {
    background: #dc3545;
    color: white;
}

.status-occupied {
    background: #6c757d;
    color: white;
}

/* Hover effects for categories */
.category-bronze:hover {
    border-color: #b86f28;
    box-shadow: 0 8px 25px rgba(205, 127, 50, 0.3);
}

.category-silver:hover {
    border-color: #a8a8a8;
    box-shadow: 0 8px 25px rgba(192, 192, 192, 0.3);
}

.category-gold:hover {
    border-color: #daa520;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.category-diamond:hover {
    border-color: #1e90ff;
    box-shadow: 0 8px 30px rgba(65, 105, 225, 0.8);
}

/* Metal shimmer animations */
@keyframes bronzeShimmer {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

@keyframes silverShimmer {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

@keyframes goldShimmer {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

@keyframes diamondShimmer {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

@keyframes metalGloss {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes diamondGloss {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0.7; }
    30% { opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0.7; }
}

/* Sort controls for category views */
.sort-controls {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sort-controls span {
    color: #6c757d;
    font-weight: 500;
}

.sort-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.sort-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.sort-btn.active:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* Admin Edit Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-edit-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    margin: 20px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.admin-edit-modal .modal-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-edit-modal .modal-header h3 {
    margin: 0;
    font-size: 1.3em;
}

.admin-edit-modal .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.admin-edit-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-edit-modal .modal-body {
    padding: 25px;
}

.admin-edit-modal .form-group {
    margin-bottom: 20px;
}

.admin-edit-modal .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.admin-edit-modal .status-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-edit-modal .checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: normal;
    margin-bottom: 0;
}

.admin-edit-modal .checkbox-option:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.admin-edit-modal .checkbox-option input[type="radio"] {
    display: none;
}

.admin-edit-modal .checkbox-option .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.admin-edit-modal .checkbox-option input[type="radio"]:checked + .checkmark {
    background: #007bff;
    border-color: #007bff;
}

.admin-edit-modal .checkbox-option input[type="radio"]:checked + .checkmark::after {
    content: "✓";
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.admin-edit-modal #adminPrice {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.admin-edit-modal #adminPrice:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.admin-edit-modal small {
    display: block;
    color: #6c757d;
    margin-top: 5px;
    font-size: 0.9em;
}

.admin-edit-modal .modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.admin-edit-modal .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.admin-edit-modal .cancel-btn {
    background: #6c757d;
    color: white;
}

.admin-edit-modal .cancel-btn:hover {
    background: #545b62;
}

.admin-edit-modal .save-btn {
    background: #28a745;
    color: white;
}

.admin-edit-modal .save-btn:hover {
    background: #218838;
}

/* Mobile responsiveness for admin modal */
@media (max-width: 600px) {
    .admin-edit-modal {
        width: 95%;
        margin: 10px;
        max-height: 85vh;
    }

    .admin-edit-modal .modal-body {
        padding: 20px;
    }

    .admin-edit-modal .modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .admin-edit-modal .btn {
        width: 100%;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .admin-edit-modal {
        width: 98%;
        margin: 5px;
    }

    .admin-edit-modal .modal-header {
        padding: 15px;
    }

    .admin-edit-modal .modal-body {
        padding: 15px;
    }
}

/* Show Hidden Numbers Button */
.show-hidden-btn {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 4px;
    padding: 2px 6px;
    margin-left: 5px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
    color: #dc3545;
}

.show-hidden-btn:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
    transform: scale(1.05);
}

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

.show-hidden-btn.active {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.show-hidden-btn.active:hover {
    background: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.5);
}

/* Background image mobile responsiveness */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
        background-size: cover;
        padding: clamp(12px, 3vw, 24px);
    }

    .container {
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        background: rgba(255, 255, 255, 0.92);
    }

    .container:hover {
        transform: none;
    }

    header {
        padding: clamp(24px, 5vw, 40px);
    }

    header::before {
        animation: none;
    }
}

@media (max-width: 480px) {
    body {
        background-size: cover;
        background-position: center center;
        padding: 12px;
    }

    .container {
        border-radius: 16px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        background: rgba(255, 255, 255, 0.9);
    }

    header h1 {
        font-weight: 700;
        background: linear-gradient(135deg, #ffffff 0%, #ffd700 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

/* SEO Content Styling */
.seo-content {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,248,255,0.95) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-section h2 {
    color: #4A148C;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, #4A148C 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-section h3 {
    color: #764ba2;
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem 0;
    border-left: 4px solid #764ba2;
    padding-left: 0.8rem;
}

.about-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #333;
}

.about-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.about-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.about-section strong {
    color: #4A148C;
    font-weight: 600;
}

.header-description {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin: 0.5rem 0 1.5rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .seo-content {
        margin-top: 2rem;
        padding: 1.5rem;
    }

    .about-section h2 {
        font-size: 1.5rem;
    }

    .about-section h3 {
        font-size: 1.2rem;
    }
}

/* Purchase Info Styling */
.purchase-info {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(139, 195, 74, 0.1) 100%);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.purchase-info h4 {
    color: #4CAF50;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.purchase-info ul {
    margin-bottom: 1rem;
}

.purchase-info li {
    margin-bottom: 0.3rem;
    color: #2E7D32;
}

/* Premium Series Button Styling */
.premium-series-btn {
    background: linear-gradient(135deg, #4A148C 0%, #764ba2 50%, #FFD700 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(74, 20, 140, 0.3);
    position: relative;
    overflow: hidden;
    margin: 1rem auto;
    text-decoration: none;
}

.premium-series-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.premium-series-btn:hover::before {
    left: 100%;
}

.premium-series-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 20, 140, 0.4);
}

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

.btn-icon {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

.btn-text {
    flex-grow: 1;
    text-align: center;
}

.btn-arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.premium-series-btn:hover .btn-arrow {
    transform: translateX(4px);
}

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

@media (max-width: 768px) {
    .premium-series-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-text {
        font-size: 0.9rem;
    }
}

/* Contact Page Styling */
.header-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.contact-page {
    padding: 2rem;
    display: grid;
    gap: 2rem;
}

.contact-info-section, .contact-form-section {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,248,255,0.95) 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.contact-card, .form-card {
    max-width: 100%;
}

.contact-card h2, .form-card h2 {
    color: #4A148C;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-details {
    display: grid;
    gap: 1.5rem;
}

.contact-item strong {
    color: #764ba2;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

.contact-item a {
    color: #4A148C;
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

.opening-hours {
    background: rgba(76, 175, 80, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.opening-hours p {
    display: flex;
    justify-content: space-between;
    margin: 0.3rem 0;
    font-family: 'Courier New', monospace;
}

.opening-hours span:first-child {
    font-weight: 600;
}

.opening-hours span:last-child {
    color: #4CAF50;
    font-weight: 600;
}

/* Contact Form Styling */
.form-description {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #4A148C;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4A148C;
    box-shadow: 0 0 0 3px rgba(74, 20, 140, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, #4A148C 0%, #764ba2 50%, #4CAF50 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 20, 140, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Form Status Messages */
.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

.success-message {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(139, 195, 74, 0.1) 100%);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #2E7D32;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.error-message {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #C62828;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
}

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

/* Map Section */
.map-section {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,248,255,0.95) 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.map-section h2 {
    color: #4A148C;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-container {
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-description {
    color: #666;
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
}

/* Services Overview */
.services-overview {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,248,255,0.95) 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.services-overview h2 {
    color: #4A148C;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.service-item {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 255, 255, 0.9) 100%);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.service-item h3 {
    color: #4A148C;
    margin-bottom: 0.5rem;
}

.service-item p {
    color: #666;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-page {
        padding: 1rem;
        gap: 1.5rem;
    }

    .contact-info-section, .contact-form-section, .map-section, .services-overview {
        padding: 1.5rem;
    }

    .contact-card h2, .form-card h2, .map-section h2, .services-overview h2 {
        font-size: 1.4rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .header-nav {
        flex-direction: column;
        align-items: center;
    }

    .opening-hours p {
        flex-direction: column;
        gap: 0.2rem;
    }
}

/* Pretty Format Preview */
.format-preview {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(74, 20, 140, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 1px solid rgba(74, 20, 140, 0.2);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
}

.format-preview strong {
    color: #4A148C;
    font-size: 0.9rem;
}

.format-preview span {
    color: #B8860B;
    font-size: 1.1rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Contact Section on Homepage */
.contact-section-home {
    margin-top: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(74, 20, 140, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 2px solid rgba(74, 20, 140, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.contact-section-home h3 {
    color: #4A148C;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #4A148C 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-info-home,
.contact-form-home {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(74, 20, 140, 0.1);
}

.contact-info-home h4,
.contact-form-home h4 {
    color: #764ba2;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-details-home p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.contact-details-home strong {
    color: #4A148C;
}

.contact-details-home a {
    color: #4A148C;
    text-decoration: none;
    font-weight: 600;
}

.contact-details-home a:hover {
    text-decoration: underline;
}

.opening-hours-home {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(139, 195, 74, 0.1) 100%);
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hours-grid span:first-child {
    color: #333;
}

.hours-grid span:last-child {
    color: #4CAF50;
    text-align: right;
}

.hours-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin: 0;
}

/* Contact Form Home */
.contact-form-compact {
    display: grid;
    gap: 1rem;
}

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

.form-row input,
.form-row select,
.contact-form-compact textarea {
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.form-row input:focus,
.form-row select:focus,
.contact-form-compact textarea:focus {
    outline: none;
    border-color: #4A148C;
    box-shadow: 0 0 0 3px rgba(74, 20, 140, 0.1);
}

.contact-submit-btn {
    background: linear-gradient(135deg, #4A148C 0%, #764ba2 50%, #4CAF50 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 20, 140, 0.3);
}

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Contact form messages */
.contact-message {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

.contact-message-success {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1) 0%, rgba(139, 195, 74, 0.1) 100%);
    color: #2E7D32;
    border: 1px solid rgba(46, 125, 50, 0.3);
}

.contact-message-error {
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.1) 0%, rgba(244, 67, 54, 0.1) 100%);
    color: #C62828;
    border: 1px solid rgba(198, 40, 40, 0.3);
}

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

/* Contact Modal */
.contact-modal {
    max-width: 500px;
    width: 90%;
}

.contact-modal .modal-header h3 {
    color: #2E7D32;
    font-size: 1.5rem;
    margin: 0;
}

.contact-modal .modal-body {
    text-align: center;
    padding: 1.5rem 0;
}

.contact-modal .modal-body p {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.contact-modal-info {
    background: linear-gradient(135deg, rgba(74, 20, 140, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(74, 20, 140, 0.1);
}

.contact-modal-info p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.contact-modal-info p:last-child {
    margin-bottom: 0;
}

.contact-modal-info a {
    color: #4A148C;
    text-decoration: none;
    font-weight: 600;
}

.contact-modal-info a:hover {
    text-decoration: underline;
}

.contact-modal-btn {
    background: linear-gradient(135deg, #4A148C 0%, #764ba2 50%, #4CAF50 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.contact-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 20, 140, 0.3);
}

/* Form Status */
.form-status-home {
    margin-top: 0.5rem;
    padding: 0.8rem;
    border-radius: 6px;
    animation: fadeIn 0.3s ease;
}

/* Contact Map Home */
.contact-map-home {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(74, 20, 140, 0.1);
}

.contact-map-home h4 {
    color: #764ba2;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-container-home {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-section-home {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .contact-section-home h3 {
        font-size: 1.6rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .contact-map-home {
        margin-top: 1.5rem;
    }

    .map-container-home iframe {
        height: 250px;
    }
}
/* Search Actions Container */
.search-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Share Button */
.share-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.share-icon {
    font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-actions {
        flex-direction: column;
    }
    
    .share-btn, .check-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Admin Bulk Check Styling */
.admin-bulk-check-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
    display: none;
}

.admin-bulk-check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.bulk-check-modal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.bulk-check-info {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.bulk-check-info p {
    margin: 5px 0;
}

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

.stat-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 2px solid #dee2e6;
}

.stat-box.success {
    background: #d4edda;
    border-color: #28a745;
}

.stat-box.danger {
    background: #f8d7da;
    border-color: #dc3545;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.bulk-check-log {
    margin-top: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.bulk-check-log h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #6c757d;
}

.log-content {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
}

.log-entry {
    padding: 3px 0;
    border-bottom: 1px solid #dee2e6;
}

.log-entry:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    .bulk-check-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bulk-check-modal .modal-content {
        max-width: 95%;
    }
}


/* Bulk Check Link in Admin Status */
.bulk-check-link {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.bulk-check-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
}


/* Loading message styling */
.loading-message {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #667eea;
    font-weight: 600;
}

.loading-message::before {
    content: '⏳ ';
    font-size: 24px;
}
