@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Inter:wght@300;400;700;900&display=swap');

body { font-family: 'Inter', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

@keyframes reveal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.animate-reveal { animation: reveal 1s cubic-bezier(0.2, 1, 0.3, 1) forwards; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-marquee { animation: marquee 40s linear infinite; }
.hover\:animate-glitch:hover { animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite; }

.glass { background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.glass-panel { background: rgba(15, 15, 15, 0.6); backdrop-filter: blur(24px); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }

.gradient-text { background-clip: text; -webkit-background-clip: text; color: transparent; background-image: linear-gradient(to right, #fff, #22d3ee); }

.bg-grid-pattern {
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.hacker-mode .gradient-text { background-image: linear-gradient(to right, #0f0, #00ff00); }
.hacker-mode .text-cyan-400, .hacker-mode .text-cyan-500 { color: #0f0 !important; }
.hacker-mode .bg-cyan-500 { background-color: #0f0 !important; }
.hacker-mode .border-cyan-500 { border-color: #0f0 !important; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
    50% { box-shadow: 0 0 20px 4px rgba(6, 182, 212, 0.15); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes progressFill {
    from { width: 0; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fadeInUp { animation: fadeInUp 0.6s cubic-bezier(0.2, 1, 0.3, 1) forwards; opacity: 0; }
.animate-slideInLeft { animation: slideInLeft 0.6s cubic-bezier(0.2, 1, 0.3, 1) forwards; opacity: 0; }
.animate-slideInRight { animation: slideInRight 0.6s cubic-bezier(0.2, 1, 0.3, 1) forwards; opacity: 0; }
.animate-scaleIn { animation: scaleIn 0.5s cubic-bezier(0.2, 1, 0.3, 1) forwards; opacity: 0; }
.animate-pulseGlow { animation: pulseGlow 3s ease-in-out infinite; }

.animate-stagger-1 { animation-delay: 0.05s; }
.animate-stagger-2 { animation-delay: 0.1s; }
.animate-stagger-3 { animation-delay: 0.15s; }
.animate-stagger-4 { animation-delay: 0.2s; }
.animate-stagger-5 { animation-delay: 0.25s; }
.animate-stagger-6 { animation-delay: 0.3s; }
.animate-stagger-7 { animation-delay: 0.35s; }
.animate-stagger-8 { animation-delay: 0.4s; }
.animate-stagger-9 { animation-delay: 0.45s; }
.animate-stagger-10 { animation-delay: 0.5s; }

.form-input {
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-input:focus {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
    outline: none;
}
.form-input::placeholder {
    color: rgba(163, 163, 163, 0.5);
}
.form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #fff;
    color: #000;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    background: #22d3ee;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
}
.btn-primary:active {
    transform: scale(0.98);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
}
.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    transition: all 0.3s;
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.badge-paid { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-pending { background: rgba(234, 179, 8, 0.15); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.3); }
.badge-overdue { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-used { background: rgba(107, 114, 128, 0.15); color: #9ca3af; border: 1px solid rgba(107, 114, 128, 0.3); }
.badge-unused { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-registered { background: rgba(234, 179, 8, 0.15); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.3); }
.badge-ordered { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-paid { background: rgba(6, 182, 212, 0.15); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-active { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }

.alert-success { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); color: #22c55e; }
.alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #ef4444; }
.alert-info { background: rgba(6, 182, 212, 0.1); border: 1px solid rgba(6, 182, 212, 0.3); color: #22d3ee; }

.card-hover {
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}
.card-hover:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(6, 182, 212, 0.05);
}

.progress-bar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    overflow: hidden;
}
.progress-bar-fill {
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
    height: 100%;
    border-radius: 9999px;
    transition: width 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    animation: progressFill 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(15, 15, 15, 0.6);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.custom-checkbox:checked {
    background: #06b6d4;
    border-color: #06b6d4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}
.custom-checkbox:hover {
    border-color: rgba(6, 182, 212, 0.5);
}

.custom-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.6);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.custom-radio:checked {
    background: #06b6d4;
    border-color: #06b6d4;
    box-shadow: inset 0 0 0 3px rgba(15, 15, 15, 0.8);
}
.custom-radio:hover {
    border-color: rgba(6, 182, 212, 0.5);
}

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}
.mobile-menu.open {
    transform: translateX(0);
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.form-select {
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2306b6d4'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}
.form-select:focus {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
    outline: none;
}
.form-select option {
    background: #0a0a0a;
    color: #fff;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #06b6d4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-table td {
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #a3a3a3;
}
.admin-table tr:hover td {
    background: rgba(6, 182, 212, 0.03);
}

.badge-open { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-in_progress { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-resolved { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-closed { background: rgba(107, 114, 128, 0.15); color: #9ca3af; border: 1px solid rgba(107, 114, 128, 0.3); }

.message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}
.message-customer {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: #d4d4d4;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}
.message-admin {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d4d4d4;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.file-upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(15, 15, 15, 0.3);
}
.file-upload-zone:hover,
.file-upload-zone.dragover {
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.05);
}
.file-upload-zone input[type="file"] {
    display: none;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}

.timeline-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.timeline-steps::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
}
.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}
.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.timeline-step.completed .timeline-dot {
    background: rgba(6, 182, 212, 0.2);
    border-color: #06b6d4;
}
.timeline-step.active .timeline-dot {
    background: #06b6d4;
    border-color: #06b6d4;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}
.timeline-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(163, 163, 163, 0.5);
}
.timeline-step.completed .timeline-label,
.timeline-step.active .timeline-label {
    color: #06b6d4;
}

.tooltip {
    position: relative;
}
.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    color: #fff;
    margin-bottom: 8px;
}
.tooltip:hover::after {
    opacity: 1;
}
