/* Base Global & Container Styles */
:root {
    --snap-yellow: #FFFC00;
    --snap-dark: #0f141c;
    --snap-card: #182232;
    --snap-bubble-me: #0284c7;
    --snap-bubble-them: #273549;
    --snap-text: #f8fafc;
    --snap-subtext: #94a3b8;
    --seen-blue: #38bdf8;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: #06090e;
    color: var(--snap-text);
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.app-wrapper {
    width: 100%;
    max-width: 480px;
    height: 100%;
    max-height: 1000px;
    background-color: var(--snap-dark);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

@media (min-width: 768px) {
    .app-wrapper {
        border-radius: 28px;
        height: 92vh;
        border: 2px solid #1e293b;
    }
}

.screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    background-color: var(--snap-dark);
    z-index: 10;
}

.screen.hidden, .hidden {
    display: none !important;
}

/* Login Screen */
.login-container {
    padding: 36px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.login-brand {
    margin-bottom: 32px;
}

.brand-icon {
    font-size: 56px;
    margin-bottom: 12px;
    display: inline-block;
    filter: drop-shadow(0 0 16px rgba(255, 252, 0, 0.4));
}

.login-brand h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--snap-text);
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--seen-blue);
    border-radius: 20px;
    margin-top: 8px;
}

.profile-selector {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    width: 100%;
}

.profile-btn {
    flex: 1;
    background: var(--snap-card);
    border: 2px solid #334155;
    border-radius: 18px;
    padding: 16px;
    color: var(--snap-text);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.profile-btn .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.profile-btn.sister .avatar {
    background: #ec4899;
}

.profile-btn.active {
    border-color: var(--snap-yellow);
    background: #1e293b;
    box-shadow: 0 0 16px rgba(255, 252, 0, 0.2);
}

.pin-input-group {
    width: 100%;
    margin-bottom: 24px;
}

.pin-input {
    width: 100%;
    padding: 16px 20px;
    background: #1e293b;
    border: 1.5px solid #334155;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    text-align: center;
    letter-spacing: 2px;
    outline: none;
    transition: border-color 0.2s;
}

.pin-input:focus {
    border-color: var(--snap-yellow);
}

.primary-btn {
    width: 100%;
    padding: 16px;
    background: var(--snap-yellow);
    color: #000;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
    box-shadow: 0 4px 14px rgba(255, 252, 0, 0.3);
}

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