body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
}

#app {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    z-index: 1000;
}

.logo {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0 0 10px 0;
}

.subtitle {
    color: #bbb;
    font-size: 1.1rem;
    margin: 0;
}

#controls {
    margin-bottom: 30px;
    z-index: 1000;
    text-align: center;
}

.primary-button {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #EE394D 0%, #d63384 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(238, 57, 77, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 57, 77, 0.4);
    background: linear-gradient(135deg, #d63384 0%, #EE394D 100%);
}

.primary-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(238, 57, 77, 0.3);
}

.secondary-button {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    margin-left: 15px;
}

.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
    background: linear-gradient(135deg, #5856D6 0%, #007AFF 100%);
}

.secondary-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 122, 255, 0.3);
}

#camera-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
}

#video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#ar-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.scan-frame {
    width: 250px;
    height: 250px;
    border: 2px solid #EE394D;
    border-radius: 20px;
    background: rgba(238, 57, 77, 0.1);
    position: relative;
    animation: pulse 2s infinite;
}

.scan-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid transparent;
    border-radius: 20px;
    background: linear-gradient(45deg, #EE394D, #d63384) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.scan-text {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.footer-image {
    max-width: min(95%, 640px);
    width: 100%;
    height: auto;
    display: block;
}