* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

body {
    background: linear-gradient(145deg,  #080808 0%,  #0e0c08 100%);
    color: #f0f0f0;
    font-family: 'Inter', sans-serif;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#app {
    width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

#login-view {
    width: 90%;
    max-width: 320px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.login-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 10px auto;
    background-image: url('./logoeldandy.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.brand-title {
    font-family: 'Playfair Display', serif;
    text-align: center;
    font-size: 1rem;
    letter-spacing: 1px;
    color: #ffffff;
    font-weight: 200;
    margin-bottom: 35px;
    width: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
    width: 100%;
}

.input-group label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #888;
    text-transform: uppercase;
}

.input-group input {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #444;
    color: #ffffff;
    font-size: 1rem;
    padding: 8px 0;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.input-group input:focus {
    border-bottom-color: #ffffff;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: #ffffff;
    color: #050505;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
}

.btn-submit:active {
    transform: scale(0.97);
    background-color: #e0e0e0;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    width: 100%;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';
    color: #050505;
    position: absolute;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: #ffffff;
    border-color: #ffffff;
}

.checkbox-group label {
    font-size: 0.8rem;
    color: #999;
    cursor: pointer;
}

.login-location {
    text-align: center;
    margin-top: 45px;
    font-size: 0.8rem;
    color: #777;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
    width: 100%;
}

.login-location svg {
    fill: #777;
}

#rotate-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    background-color: #050505;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    gap: 30px;
}

.phone-icon {
    width: 50px;
    height: 85px;
    border: 3px solid #ffffff;
    border-radius: 8px;
    position: relative;
    animation: rotatePhone 2.5s ease-in-out infinite;
}

.phone-icon::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
}

@keyframes rotatePhone {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(-90deg); }
    100% { transform: rotate(-90deg); }
}

.rotate-text {
    font-size: 1rem;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-align: center;
    opacity: 0;
    font-weight: 300;
    animation: fadeIn 1s forwards 0.5s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

#card-view-container {
    width: 100dvw;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
}

.card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100dvw;
    height: 100dvh;
}

.fidelity-card {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 2 / 1;
    container-type: inline-size;
    background: transparent;
    border: none;
    padding: 4.5cqi;
    padding-bottom: 6cqi;
    display: flex;
    position: relative;
    overflow: hidden;
}

@media screen and (orientation: portrait) {
    .card-wrapper {
        transform: rotate(90deg);
        width: 100dvh;
        height: 100dvw;
    }
    .fidelity-card {
        width: 75%;
        max-height: 85dvw;
    }
}

.fidelity-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 60%);
    pointer-events: none;
}

.card-left {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 4cqi;
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 1cqi;
}

.card-title {
    font-size: 4cqi;
    color: #fff;
    letter-spacing: 1px;
}

.card-subtitle {
    font-size: 2.2cqi;
    color: #999;
    font-family: 'Inter', sans-serif;
    font-weight: 200;
}

.card-catchy {
    font-size: 1.5cqi;
    color: #ddd;
    margin-top: 1cqi;
    font-weight: 300;
    right: 0;
}

.stamps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2cqi;
    margin-top: auto;
    margin-bottom: 2.5cqi;
}

.stamp-circle {
    width: 100%;
    aspect-ratio: 1/1;
    border: 1px solid #333;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.01);
    position: relative;
}

.stamp-circle.filled {
    animation: fillStamp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.stamp-circle.last-stamp {
    border: 1.5px solid transparent;
    background: linear-gradient(#141414, #141414) padding-box,
                linear-gradient(135deg, #726b2c, #eab308) border-box;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.15), 0 0 10px rgba(234, 179, 8, 0.15);
}

@keyframes fillStamp {
    0% {
        transform: scale(1);
        background-color: transparent;
        box-shadow: 0 0 0 transparent;
    }
    50% {
        transform: scale(1.15);
        background-color: #ffffff;
        box-shadow: 0 0 15px rgba(255,255,255,0.6);
    }
    100% {
        transform: scale(1);
        background-color: #ffffff;
        box-shadow: 0 0 8px rgba(255,255,255,0.2);
    }
}

.stamp-circle.filled::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('./barberiaicon.svg');
    background-size: 55%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: fadeInText 0.3s ease forwards 0.4s;
    filter: brightness(0);
}

@keyframes fadeInText {
    to { opacity: 1; }
}

.card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    text-align: right;
    border-left: 1px solid #222;
    padding-left: 4cqi;
}

.logo-container {
    width: 20cqi;
    height: 20cqi;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: 1cqi;
    transform: translate(-40px);
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    background-image: url('./logoeldandy.svg');
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 1.2cqi;
    margin-top: auto;
    margin-bottom: 5cqi;
}

.info-text {
    font-size: 1.6cqi;
    color: #ccc;
    font-weight: 300;
}

.map-container {
    width: 26cqi; 
    height: 7cqi; 
    border-radius: 4px;
    overflow: hidden;
    filter: grayscale(100%); 
    border: 1px solid #333;
    margin-top: 0.2cqi;
    position: relative;
    transform: translate(-25px);
}

.map-container iframe {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    border: none;
    pointer-events: none; 
}

.map-link-wrapper {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.social-networks {
    display: flex;
    gap: 1.5cqi;
    margin-bottom: 2cqi;
}

.social-icon {
    width: 8cqi;
    height: 8cqi;
    border-radius: 50%;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #333;
}

.social-icon::before {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    background: linear-gradient(0deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    top: 60%;
    left: -50%;
    border-radius: 40%;
    animation: waterWave 4s linear infinite;
    z-index: 1;
}

@keyframes waterWave {
    0% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(180deg) translateY(-10%); }
    100% { transform: rotate(360deg) translateY(0); }
}

.social-icon svg {
    width: 3.5cqi;
    height: 3.5cqi;
    fill: #ffffff;
    z-index: 2;
    position: relative;
}

.terms-text {
    position: absolute;
    bottom: 5cqi;
    left: 4.5cqi;
    font-size: 1.5cqi;
    color: #f1f1f1;
    letter-spacing: 0.5px;
}