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

html {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #000000;
    color: #ffffff;
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    position: relative;
}

/* Share Button */
.share-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    top: max(16px, env(safe-area-inset-top));
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    transition: all 0.2s ease;
}

.share-btn svg {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.6);
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.share-btn:hover svg {
    color: rgba(255, 255, 255, 0.9);
}

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

/* Smoke Animation */
.smoke-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.smoke {
    position: absolute;
    bottom: -100px;
    width: 150px;
    height: 150px;
    background: radial-gradient(ellipse at center,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.15) 25%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0;
    animation: smoke-rise 12s infinite ease-out;
}

.smoke-1 {
    left: 10%;
    animation-delay: 0s;
    width: 180px;
    height: 180px;
}

.smoke-2 {
    left: 30%;
    animation-delay: 3s;
    width: 120px;
    height: 120px;
}

.smoke-3 {
    left: 60%;
    animation-delay: 6s;
    width: 200px;
    height: 200px;
}

.smoke-4 {
    left: 80%;
    animation-delay: 9s;
    width: 140px;
    height: 140px;
}

@keyframes smoke-rise {
    0% {
        transform: translateY(0) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-120vh) scale(2) rotate(45deg);
        opacity: 0;
    }
}

/* Main Container */
.container {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* Logo with pulsing glow */
.logo {
    width: 100%;
    max-width: 200px;
}

.logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 25px rgba(138, 43, 226, 0.6));
}

@keyframes logo-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.5)) drop-shadow(0 0 40px rgba(118, 75, 162, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 35px rgba(138, 43, 226, 0.9)) drop-shadow(0 0 60px rgba(118, 75, 162, 0.6));
    }
}

/* Grid Layout for Buttons */
.links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

/* Gradient border button */
.btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 56px;
    padding: 10px 8px;
    background: #000000;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.3px;
    border-radius: 10px;
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    z-index: 1;
}

/* Gradient border using pseudo-element */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    padding: 1px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    background: rgba(102, 126, 234, 0.1);
}

.btn:active {
    transform: scale(0.98) translateY(0);
}

/* Icon styles */
.icon {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
    flex-shrink: 0;
}

.btn span {
    line-height: 1;
}

/* Wi-Fi Card */
.wifi-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-top: 4px;
    position: relative;
}

.wifi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
}

.wifi-icon {
    width: 20px;
    height: 20px;
    color: #a78bfa;
    flex-shrink: 0;
}

.wifi-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wifi-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wifi-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 28px;
}

.wifi-value {
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.wifi-tap {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
    align-self: center;
}

.wifi-card {
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.wifi-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.wifi-card:active {
    transform: scale(0.98);
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    max-width: calc(100% - 40px);
    background: rgba(138, 43, 226, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 12px;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 100;
    text-align: center;
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

/* Review Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #111;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-title {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 8px;
}

.modal-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.modal-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.modal-btn:active {
    transform: scale(0.98);
}

.modal-btn svg {
    width: 20px;
    height: 20px;
}

.modal-divider {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin: 8px 0 4px;
}

.modal-btn-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Fade-in Animation */
.links,
.wifi-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.logo {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards, logo-pulse 3s ease-in-out 0.6s infinite;
    animation-delay: 0.1s, 0.1s;
}

.links {
    animation-delay: 0.3s;
}

.wifi-card:nth-of-type(1) {
    animation-delay: 0.5s;
}

.wifi-card:nth-of-type(2) {
    animation-delay: 0.6s;
}

.wifi-card:nth-of-type(3) {
    animation-delay: 0.7s;
}

.wifi-card:nth-of-type(4) {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* iPhone 15 Pro and similar */
@media (max-width: 430px) and (max-height: 932px) {
    body {
        padding: 16px;
        padding-top: max(16px, env(safe-area-inset-top));
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }

    .container {
        gap: 12px;
        max-width: 100%;
    }

    .logo {
        max-width: 180px;
    }

    .links {
        gap: 6px;
    }

    .btn {
        height: 52px;
        font-size: 10px;
        border-radius: 8px;
        gap: 4px;
    }

    .btn::before {
        border-radius: 8px;
    }

    .icon {
        width: 16px;
        height: 16px;
    }

    .wifi-card {
        padding: 6px 10px;
        gap: 8px;
    }

    .wifi-icon {
        width: 18px;
        height: 18px;
    }

    .wifi-label {
        font-size: 8px;
        min-width: 24px;
    }

    .wifi-value {
        font-size: 10px;
    }
}

/* Small phones */
@media (max-height: 700px) {
    .container {
        gap: 10px;
    }

    .logo {
        max-width: 160px;
    }

    .links {
        gap: 5px;
    }

    .btn {
        height: 46px;
        font-size: 10px;
        gap: 3px;
    }

    .icon {
        width: 14px;
        height: 14px;
    }
}

/* Larger screens */
@media (min-width: 768px) {
    .container {
        max-width: 400px;
    }

    .btn {
        height: 64px;
        font-size: 13px;
        gap: 8px;
    }

    .icon {
        width: 20px;
        height: 20px;
    }
}
