* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    padding: 20px;
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff6600'%3E%3Cpath d='M4 4v4h4V4H4zm6 0v4h4V4h-4zm6 0v4h4V4h-4zM4 10v4h4v-4H4zm6 0v4h4v-4h-4zm6 0v4h4v-4h-4zM4 16v4h4v-4H4zm6 0v4h4v-4h-4z'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 30px;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    border: 1px solid rgba(255, 102, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.glass-header {
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    padding: 25px 30px;
    color: white;
    position: relative;
}

.glass-header h2 {
    font-size: 28px;
    margin-bottom: 5px;
}

input, button {
    font-size: 16px;
}

input {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 18px;
    color: #333;
    width: 100%;
    transition: 0.2s;
}

input:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(95deg, #ff6600, #ff8533);
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 5px rgba(255, 102, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #ff6600;
    border-radius: 12px;
    padding: 8px 20px;
    color: #ff6600;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #ffccaa;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    font-weight: bold;
    color: #333;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.client-card {
    background: #ffffff;
    border-radius: 20px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.client-header {
    background: #fafbfc;
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.client-header:hover {
    background: #fff5f0;
}

.client-info {
    display: flex;
    gap: 20px;
    align-items: center;
    color: #555;
}

.client-info strong {
    color: #ff6600;
}

.ticket, .ticket-item {
    background: linear-gradient(135deg, #fff5e8, #ffe8d6);
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    color: #663300;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-family: monospace;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #ffd6b3;
}

.ticket-item.selected {
    background: #ffcccc;
    color: #cc0000;
    text-decoration: line-through;
}

.tickets-list {
    display: none;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 10px;
}

.tickets-list.show {
    display: flex;
}

.badge {
    background: #ff6600;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: white;
    font-weight: 600;
}

.error-msg {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

.success-msg {
    color: #28a745;
    font-size: 13px;
    margin-top: 5px;
}

.delete-mode-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 13px;
}

.delete-bar {
    display: none;
    padding: 12px 20px;
    background: #fff5f5;
    border-top: 1px solid #ffcccc;
    gap: 10px;
    align-items: center;
}

.delete-bar.show {
    display: flex;
}

.confirm-delete {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 6px 16px;
    cursor: pointer;
}

.cancel-delete {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 6px 16px;
    cursor: pointer;
}

.tickets-preview span {
    background: #ffe0cc;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
    margin: 0 2px;
}

.phone-badge {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 12px;
    font-family: monospace;
    color: #333;
}

/* Белая кнопка выхода */
.logout-btn {
    background: #ffffff !important;
    border: 2px solid #ff6600 !important;
    border-radius: 12px !important;
    padding: 8px 20px !important;
    color: #ff6600 !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: 0.2s !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.logout-btn:hover {
    background: #ff6600 !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

/* Лотерейные билеты в админке */
.ticket-item {
    background: linear-gradient(135deg, #fff9f0, #ffefd5) !important;
    border: 2px solid #ffd700 !important;
    border-radius: 12px !important;
    padding: 10px 15px !important;
    font-family: 'Courier New', monospace !important;
    font-weight: bold !important;
    color: #8B4513 !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1) !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.ticket-item::before {
    content: "🎫" !important;
    position: absolute !important;
    top: 3px !important;
    left: 5px !important;
    font-size: 14px !important;
    opacity: 0.3 !important;
}

.ticket-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(255,215,0,0.3) !important;
}

.ticket-item.selected {
    background: #ffcccc !important;
    color: #cc0000 !important;
    text-decoration: line-through !important;
}
