/* ============================================
   GUARDIÃ - App de Segurança Feminina
   Design System: Pink & Purple Dark Theme
   ============================================ */

:root {
    --bg-primary: #0D0618;
    --bg-secondary: #1A0A2E;
    --bg-card: rgba(42, 18, 75, 0.6);
    --bg-card-solid: #2A124B;
    --bg-input: rgba(255, 255, 255, 0.07);
    --pink-primary: #E91E8C;
    --pink-light: #FF5AB5;
    --pink-glow: rgba(233, 30, 140, 0.3);
    --purple-primary: #7B2FF7;
    --purple-light: #A855F7;
    --purple-dark: #4C1D95;
    --gradient-main: linear-gradient(135deg, #E91E8C, #7B2FF7);
    --gradient-card: linear-gradient(135deg, rgba(233, 30, 140, 0.15), rgba(123, 47, 247, 0.15));
    --gradient-sos: linear-gradient(135deg, #FF1744, #E91E8C);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --danger: #FF1744;
    --success: #00E676;
    --warning: #FFD600;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-glow: 0 0 30px rgba(233, 30, 140, 0.2);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --font-primary: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --nav-height: 70px;
    --header-height: 56px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
}

.hidden {
    display: none !important;
}

/* ============================================
   SPLASH SCREEN
   ============================================ */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.splash-content {
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.splash-logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
}

.splash-shield-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--pink-glow) 0%, transparent 70%);
    animation: pulseGlow 2s ease-in-out infinite;
}

.splash-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    border-radius: 24px;
}

.splash-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.splash-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.splash-loader {
    width: 200px;
    height: 3px;
    background: var(--bg-card);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}

.splash-loader-bar {
    width: 0%;
    height: 100%;
    background: var(--gradient-main);
    border-radius: 10px;
    animation: loadBar 2.5s ease-in-out forwards;
}

@keyframes loadBar {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ============================================
   ONBOARDING
   ============================================ */
.onboarding-screen {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    padding: 40px 24px 32px;
}

.onboarding-slides {
    flex: 1;
    display: flex;
    align-items: center;
}

.onboarding-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    animation: fadeIn 0.4s ease;
}

.onboarding-slide.active {
    display: flex;
}

.onboarding-illustration {
    margin-bottom: 40px;
}

.onboarding-illustration img {
    width: 250px;
    height: 250px;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.onboarding-icon-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--gradient-card);
    border: 2px solid rgba(233, 30, 140, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--pink-light);
}

.onboarding-slide h2 {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.onboarding-slide p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
}

.onboarding-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--gradient-main);
}

.onboarding-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 10px;
    font-family: var(--font-body);
}

.btn-primary-small {
    background: var(--gradient-main);
    border: none;
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary-small:active {
    transform: scale(0.96);
}

/* ============================================
   APP HEADER
   ============================================ */
.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg-primary);
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    height: var(--header-height);
    background: rgba(13, 6, 24, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.header-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-icon-btn {
    background: var(--bg-input);
    border: none;
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.header-icon-btn:hover {
    color: var(--pink-light);
    background: rgba(233, 30, 140, 0.15);
}

/* Status Bar */
.status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: var(--gradient-card);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

.status-dot.safe {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-dot.danger {
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

.status-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.location-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ============================================
   PAGES
   ============================================ */
.page {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding-bottom: calc(var(--nav-height) + 20px);
}

.page.active {
    display: block;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    background: rgba(13, 6, 24, 0.9);
    backdrop-filter: blur(20px);
    z-index: 50;
}

.page-header h2 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    flex: 1;
}

.btn-back {
    background: var(--bg-input);
    border: none;
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-action {
    background: var(--gradient-main);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-content {
    padding: 16px 20px;
}

.page-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ============================================
   SOS BUTTON
   ============================================ */
.sos-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 20px;
    position: relative;
}

.sos-button {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-sos);
    cursor: pointer;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 40px rgba(255, 23, 68, 0.3), 0 0 80px rgba(233, 30, 140, 0.15);
    transition: transform 0.2s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sos-button:active {
    transform: scale(0.95);
}

.sos-button.holding {
    transform: scale(1.08);
    box-shadow: 0 0 60px rgba(255, 23, 68, 0.5), 0 0 120px rgba(233, 30, 140, 0.3);
}

.sos-inner {
    text-align: center;
    color: white;
}

.sos-inner i {
    font-size: 2.5rem;
    margin-bottom: 4px;
    display: block;
}

.sos-text {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 4px;
}

.sos-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 16px;
}

.sos-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.sos-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(233, 30, 140, 0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 200px;
    height: 200px;
    animation: ringPulse 3s ease-in-out infinite;
}

.ring-2 {
    width: 240px;
    height: 240px;
    animation: ringPulse 3s ease-in-out infinite 0.5s;
}

.ring-3 {
    width: 280px;
    height: 280px;
    animation: ringPulse 3s ease-in-out infinite 1s;
}

@keyframes ringPulse {

    0%,
    100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* ============================================
   QUICK ACTIONS
   ============================================ */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 8px 20px 20px;
}

.action-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-card:active {
    transform: scale(0.95);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.timer-icon {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.2), rgba(0, 230, 118, 0.05));
    color: var(--success);
}

.call-icon {
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.2), rgba(0, 176, 255, 0.05));
    color: #00B0FF;
}

.siren-icon {
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.2), rgba(255, 214, 0, 0.05));
    color: var(--warning);
}

.emergency-icon {
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.2), rgba(255, 23, 68, 0.05));
    color: var(--danger);
}

.action-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
    font-weight: 500;
    border: none;
    background: none;
}

/* ============================================
   TIMER BANNER
   ============================================ */
.timer-banner {
    margin: 0 20px 16px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.15), rgba(0, 230, 118, 0.05));
    border: 1px solid rgba(0, 230, 118, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: fadeInUp 0.3s ease;
}

.timer-banner-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--success);
}

.timer-banner-info i {
    font-size: 1.3rem;
}

.timer-banner-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
}

.timer-banner-time {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
}

.timer-banner-btn {
    background: var(--success);
    border: none;
    color: var(--bg-primary);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

/* ============================================
   CONTACTS
   ============================================ */
.contacts-preview {
    padding: 0 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header h2 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
}

.btn-link {
    background: none;
    border: none;
    color: var(--pink-light);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.empty-contacts-card {
    background: var(--gradient-card);
    border: 1px dashed rgba(233, 30, 140, 0.3);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.empty-contacts-card i {
    font-size: 2rem;
    color: var(--pink-light);
    margin-bottom: 12px;
}

.empty-contacts-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
}

.contact-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-actions {
    display: flex;
    gap: 8px;
}

.contact-action-btn {
    background: var(--bg-input);
    border: none;
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-action-btn.delete:hover {
    color: var(--danger);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    font-size: 3rem;
    color: var(--purple-light);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-family: var(--font-primary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: var(--gradient-main);
    border: none;
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-secondary {
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-danger {
    background: linear-gradient(135deg, var(--success), #00C853);
    border: none;
    color: var(--bg-primary);
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    font-family: var(--font-body);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--pink-primary);
}

.form-group select {
    cursor: pointer;
    background-color: var(--bg-card-solid);
    color: var(--text-primary);
}

.form-group select option {
    background-color: #2A124B;
    color: #FFFFFF;
    padding: 10px;
}

.form-group textarea {
    resize: vertical;
}

/* ============================================
   TIMER PAGE
   ============================================ */
.timer-description {
    display: flex;
    gap: 10px;
    padding: 14px;
    background: var(--gradient-card);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid rgba(233, 30, 140, 0.15);
}

.timer-description i {
    color: var(--pink-light);
    margin-top: 2px;
}

.timer-description p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.timer-display {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.timer-circle {
    position: relative;
    width: 200px;
    height: 200px;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-bg-circle {
    fill: none;
    stroke: var(--bg-card-solid);
    stroke-width: 6;
}

.timer-progress-circle {
    fill: none;
    stroke: url(#timerGradient);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
    stroke: var(--pink-primary);
}

.timer-time {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
}

.timer-presets {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.timer-preset {
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.timer-preset.active {
    background: var(--gradient-main);
    color: white;
    border-color: transparent;
}

.timer-situation {
    margin-bottom: 24px;
}

.timer-situation label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
}

.timer-situation select {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-card-solid);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-body);
    outline: none;
}

.timer-situation select option {
    background-color: #2A124B;
    color: #FFFFFF;
    padding: 10px;
}

.timer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ============================================
   FAKE CALL
   ============================================ */
.fake-call-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fake-call-setup {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.delay-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.delay-preset {
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.delay-preset.active {
    background: var(--gradient-main);
    color: white;
    border-color: transparent;
}

.scheduled-msg {
    text-align: center;
    padding: 16px;
    background: rgba(0, 230, 118, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: fadeInUp 0.3s ease;
}

/* Fake Call Overlay */
.fake-call-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: linear-gradient(180deg, #1a1a2e 0%, #0D0618 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 30px 50px;
}

.fake-call-screen {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.call-bg-effect {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--pink-glow), transparent 70%);
    animation: pulseGlow 2s ease-in-out infinite;
}

.call-info {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.caller-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: white;
    box-shadow: 0 0 40px var(--pink-glow);
}

.caller-name {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.call-status {
    color: var(--text-secondary);
    font-size: 0.95rem;
    animation: fadeIn 0.5s ease infinite alternate;
}

.call-actions {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 40px 0;
}

.call-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    transition: transform 0.2s;
}

.call-btn:active {
    transform: scale(0.9);
}

.call-btn.decline {
    background: var(--danger);
}

.call-btn.accept {
    background: var(--success);
    animation: callPulse 1.5s ease infinite;
}

@keyframes callPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(0, 230, 118, 0);
    }
}

/* ============================================
   SIREN
   ============================================ */
.siren-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.siren-button-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.siren-btn {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--warning), #FF9100);
    cursor: pointer;
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--bg-primary);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 0 40px rgba(255, 214, 0, 0.3);
    transition: transform 0.2s;
}

.siren-btn i {
    font-size: 2.2rem;
}

.siren-btn:active {
    transform: scale(0.95);
}

.siren-btn.active {
    background: var(--danger);
    color: white;
    box-shadow: 0 0 60px rgba(255, 23, 68, 0.5);
    animation: sirenPulse 0.5s ease infinite alternate;
}

@keyframes sirenPulse {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}

.siren-rings {
    position: absolute;
    pointer-events: none;
}

.siren-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 214, 0, 0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.s-ring-1 {
    width: 190px;
    height: 190px;
}

.s-ring-2 {
    width: 230px;
    height: 230px;
}

.s-ring-3 {
    width: 270px;
    height: 270px;
}

.siren-rings.active .siren-ring {
    border-color: rgba(255, 23, 68, 0.3);
    animation: ringPulse 0.8s ease infinite;
}

.siren-options {
    width: 100%;
    max-width: 350px;
}

.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.option-row span:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.option-row input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    width: 44px;
    height: 24px;
    background: var(--bg-input);
    border-radius: 12px;
    position: relative;
    transition: background 0.3s;
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    transition: transform 0.3s;
}

.option-row input:checked+.toggle-switch {
    background: var(--pink-primary);
}

.option-row input:checked+.toggle-switch::after {
    transform: translateX(20px);
}

/* ============================================
   EMERGENCY NUMBERS
   ============================================ */
.emergency-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.emergency-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s, background 0.2s;
}

.emergency-card:active {
    transform: scale(0.98);
}

.emergency-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.police .emergency-icon {
    background: rgba(30, 136, 229, 0.15);
    color: #1E88E5;
}

.women .emergency-icon {
    background: rgba(233, 30, 140, 0.15);
    color: var(--pink-primary);
}

.samu .emergency-icon {
    background: rgba(255, 23, 68, 0.15);
    color: var(--danger);
}

.fire .emergency-icon {
    background: rgba(255, 145, 0, 0.15);
    color: #FF9100;
}

.civil .emergency-icon {
    background: rgba(123, 47, 247, 0.15);
    color: var(--purple-light);
}

.rights .emergency-icon {
    background: rgba(0, 230, 118, 0.15);
    color: var(--success);
}

.emergency-info {
    flex: 1;
}

.emergency-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.emergency-number {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.emergency-call {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 230, 118, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
}

/* ============================================
   SETTINGS
   ============================================ */
.settings-section {
    margin-bottom: 28px;
}

.settings-title {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pink-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.about-app {
    text-align: center;
    padding: 24px;
}

.about-logo {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    margin-bottom: 12px;
}

.about-app h4 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.about-app p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.about-desc {
    margin-top: 8px;
    line-height: 1.5;
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(13, 6, 24, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 200;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.65rem;
    cursor: pointer;
    padding: 8px 12px;
    transition: color 0.2s;
    font-family: var(--font-body);
}

.nav-item i {
    font-size: 1.2rem;
}

.nav-item.active {
    color: var(--pink-light);
}

.nav-item.sos-nav {
    position: relative;
    top: -12px;
}

.nav-sos-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-sos);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.3);
    color: white;
    font-size: 1.2rem;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.sos-backdrop {
    background: rgba(255, 23, 68, 0.15);
}

.modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 24px;
    animation: slideUp 0.3s ease;
}

.sos-modal {
    border-radius: var(--radius-xl);
    margin: 20px;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 700;
}

.modal-close {
    background: var(--bg-input);
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.modal-footer .btn-secondary {
    flex: 1;
}

.modal-footer .btn-primary {
    flex: 1;
}

/* SOS Active Animation */
.sos-active-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.sos-pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--danger);
    animation: sosPulse 1.5s ease infinite;
}

.sos-pulse-ring.delay-1 {
    animation-delay: 0.3s;
}

.sos-pulse-ring.delay-2 {
    animation-delay: 0.6s;
}

@keyframes sosPulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.sos-active-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-sos);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.timer-alert-icon {
    background: var(--gradient-main) !important;
}

.sos-active-title {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.sos-active-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.sos-location-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--gradient-card);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--pink-light);
    margin-bottom: 16px;
}

.sos-contacts-notified {
    margin-bottom: 20px;
}

.sos-contacts-notified .contact-card {
    margin-bottom: 8px;
}

.btn-cancel-sos {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    font-family: var(--font-body);
}

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card-solid);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: var(--radius-xl);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-card);
    animation: toastIn 0.3s ease;
    max-width: 90%;
}

.toast-icon {
    color: var(--success);
}

.toast-message {
    font-size: 0.85rem;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 500px) {
    .app {
        max-width: 440px;
        margin: 0 auto;
        position: relative;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    }

    .bottom-nav {
        max-width: 440px;
        left: 50%;
        transform: translateX(-50%);
    }

    .modal-content {
        max-width: 440px;
    }

    .fake-call-overlay {
        max-width: 440px;
        margin: 0 auto;
    }
}

@media (max-width: 360px) {
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .sos-button {
        width: 130px;
        height: 130px;
    }

    .sos-inner i {
        font-size: 2rem;
    }

    .sos-text {
        font-size: 1.6rem;
    }
}

/* Contacts Preview List (with contacts) */
.contacts-preview-list .contact-card {
    margin-bottom: 8px;
}

.contacts-preview-list .contact-card:last-child {
    margin-bottom: 0;
}

/* ============================================
   NEW ACTION ICON COLORS
   ============================================ */
.share-icon {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.2), rgba(233, 30, 140, 0.05));
    color: var(--pink-light);
}

.diary-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.05));
    color: var(--purple-light);
}

.map-icon {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.05));
    color: #38BDF8;
}

.record-icon {
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.2), rgba(255, 23, 68, 0.05));
    color: #FF5252;
}

/* ============================================
   SEND METHOD OPTIONS
   ============================================ */
.send-method-options {
    display: flex;
    gap: 10px;
}

.method-option {
    flex: 1;
    cursor: pointer;
}

.method-option input {
    display: none;
}

.method-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.method-option input:checked+span {
    background: rgba(233, 30, 140, 0.15);
    border-color: var(--pink-primary);
    color: var(--pink-light);
}

.method-option .fa-whatsapp {
    color: #25D366;
}

/* ============================================
   SHARE LOCATION PAGE
   ============================================ */
.share-map-preview {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sharing-active {
    animation: fadeInUp 0.3s ease;
}

.sharing-live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 12px;
    background: rgba(255, 23, 68, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 23, 68, 0.2);
    color: var(--danger);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--danger);
    animation: statusPulse 1s infinite;
}

.share-live-map {
    width: 100%;
    height: 250px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sharing-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.sharing-info i {
    color: var(--pink-light);
}

/* ============================================
   DIARY
   ============================================ */
.diary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.diary-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 16px;
    position: relative;
}

.diary-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.diary-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-assedio {
    background: rgba(255, 23, 68, 0.15);
    color: var(--danger);
}

.badge-perseguicao {
    background: rgba(255, 145, 0, 0.15);
    color: #FF9100;
}

.badge-ameaca {
    background: rgba(255, 214, 0, 0.15);
    color: var(--warning);
}

.badge-agressao {
    background: rgba(255, 23, 68, 0.2);
    color: #FF5252;
}

.badge-roubo {
    background: rgba(168, 85, 247, 0.15);
    color: var(--purple-light);
}

.badge-suspeita {
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
}

.badge-outro {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.diary-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.diary-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.diary-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.diary-location {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.diary-actions {
    display: flex;
    gap: 8px;
}

.diary-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px;
}

.diary-action-btn:hover {
    color: var(--danger);
}

/* ============================================
   SAFE PLACES MAP
   ============================================ */
.map-page-content {
    padding: 0 !important;
}

.map-filters {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.map-filters::-webkit-scrollbar {
    display: none;
}

.map-filter {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.78rem;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.map-filter.active {
    background: var(--gradient-main);
    color: white;
    border-color: transparent;
}

.safe-places-map {
    width: 100%;
    height: 350px;
    background: var(--bg-card);
}

.places-list {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.place-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.place-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.place-card-icon.police {
    background: rgba(30, 136, 229, 0.15);
    color: #1E88E5;
}

.place-card-icon.hospital {
    background: rgba(255, 23, 68, 0.15);
    color: var(--danger);
}

.place-card-icon.pharmacy {
    background: rgba(0, 230, 118, 0.15);
    color: var(--success);
}

.place-card-icon.fire_station {
    background: rgba(255, 145, 0, 0.15);
    color: #FF9100;
}

.place-card-info {
    flex: 1;
}

.place-card-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.place-card-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.place-card-dist {
    font-size: 0.75rem;
    color: var(--pink-light);
    font-weight: 600;
}

/* ============================================
   AUDIO RECORDING
   ============================================ */
.record-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.record-button-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
}

.record-btn {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #FF1744, #D50000);
    cursor: pointer;
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: white;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 0 40px rgba(255, 23, 68, 0.3);
    transition: transform 0.2s;
}

.record-btn i {
    font-size: 2rem;
}

.record-btn:active {
    transform: scale(0.95);
}

.record-btn.active {
    background: linear-gradient(135deg, #B71C1C, #880E4F);
    animation: sirenPulse 1s ease infinite alternate;
}

.record-rings {
    position: absolute;
    pointer-events: none;
}

.rec-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 23, 68, 0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.r-ring-1 {
    width: 180px;
    height: 180px;
}

.r-ring-2 {
    width: 220px;
    height: 220px;
}

.record-rings.active .rec-ring {
    border-color: rgba(255, 23, 68, 0.3);
    animation: ringPulse 1s ease infinite;
}

.recording-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 20px;
    background: rgba(255, 23, 68, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 23, 68, 0.2);
    width: 100%;
    max-width: 300px;
}

.rec-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--danger);
}

.rec-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--danger);
    animation: statusPulse 0.8s infinite;
}

#recording-time {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.recordings-list {
    width: 100%;
}

.recordings-title {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.recording-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.recording-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 23, 68, 0.15);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    cursor: pointer;
}

.recording-item-info {
    flex: 1;
}

.recording-item-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.recording-item-info p {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.recording-item-actions {
    display: flex;
    gap: 8px;
}

.recording-item-actions button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px;
}

/* ============================================
   RECORDING FLOATING INDICATOR
   ============================================ */
.recording-float {
    position: fixed;
    top: 60px;
    right: 16px;
    z-index: 300;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 23, 68, 0.9);
    border-radius: var(--radius-xl);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255, 23, 68, 0.4);
    animation: fadeInUp 0.3s ease;
}

.recording-float button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
}

/* ============================================
   LEAFLET MAP OVERRIDES
   ============================================ */
.leaflet-container {
    background: var(--bg-card) !important;
}

.leaflet-control-zoom a {
    background: var(--bg-card-solid) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.leaflet-popup-content-wrapper {
    background: var(--bg-card-solid) !important;
    color: white !important;
    border-radius: var(--radius-md) !important;
}

.leaflet-popup-tip {
    background: var(--bg-card-solid) !important;
}

/* ============================================
   SOS CONFIRM MODAL
   ============================================ */
.sos-confirm-modal {
    text-align: center;
    padding: 32px 24px !important;
}

.sos-confirm-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-sos);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    animation: sirenPulse 1s ease infinite alternate;
}

.sos-confirm-modal h2 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.sos-confirm-modal>p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.sos-confirm-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.sos-confirm-actions .btn-secondary {
    flex: 1;
}

.sos-confirm-actions .btn-danger {
    flex: 2;
}

.sos-auto-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sos-auto-text span {
    color: var(--danger);
    font-weight: 700;
    font-size: 1rem;
}

/* ============================================
   COMMUNITY / REDE DE APOIO
   ============================================ */
.community-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.safety-tip-card {
    background: var(--gradient-card);
    border: 1px solid rgba(233, 30, 140, 0.2);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.safety-tip-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 30, 140, 0.1), transparent);
    pointer-events: none;
}

.tip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.tip-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 214, 0, 0.15);
    color: var(--warning);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tip-refresh {
    background: var(--bg-input);
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.tip-refresh:active {
    transform: rotate(180deg);
}

.tip-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.tip-share-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.tip-share-btn:hover {
    border-color: var(--pink-primary);
    color: var(--pink-light);
}

.community-section {
    margin-top: 4px;
}

.community-section h3 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.community-section h3 i {
    color: var(--pink-light);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 14px;
}

.group-actions {
    display: flex;
    gap: 10px;
}

.group-actions .btn-primary,
.group-actions .btn-secondary {
    flex: 1;
    font-size: 0.85rem;
}

/* Resources */
.resource-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resource-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.resource-card:active {
    transform: scale(0.98);
}

.resource-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.resource-icon.women {
    background: rgba(233, 30, 140, 0.15);
    color: var(--pink-light);
}

.resource-icon.info {
    background: rgba(123, 47, 247, 0.15);
    color: var(--purple-light);
}

.resource-icon.home {
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
}

.resource-icon.cvv {
    background: rgba(0, 230, 118, 0.15);
    color: var(--success);
}

.resource-info {
    flex: 1;
}

.resource-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.resource-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.resource-action {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Tips Grid */
.tips-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tip-mini-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tip-mini-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.tip-mini-icon.night {
    background: rgba(123, 47, 247, 0.15);
    color: var(--purple-light);
}

.tip-mini-icon.uber {
    background: rgba(0, 230, 118, 0.15);
    color: var(--success);
}

.tip-mini-icon.date {
    background: rgba(233, 30, 140, 0.15);
    color: var(--pink-light);
}

.tip-mini-icon.street {
    background: rgba(255, 214, 0, 0.15);
    color: var(--warning);
}

.tip-mini-icon.digital {
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
}

.tip-mini-icon.home {
    background: rgba(255, 145, 0, 0.15);
    color: #FF9100;
}

.tip-mini-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tip-mini-card strong {
    color: var(--text-primary);
}

/* ============================================
   COMMUNITY TABS
   ============================================ */
.community-tabs {
    display: flex;
    gap: 4px;
    padding: 10px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comm-tab {
    flex: 1;
    padding: 10px 8px;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: var(--font-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s;
    font-weight: 600;
}

.comm-tab.active {
    background: var(--gradient-main);
    color: white;
}

.comm-tab i {
    font-size: 0.8rem;
}

.comm-tab-content {
    display: none;
}

.comm-tab-content.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* ============================================
   CHAT CHANNELS
   ============================================ */
.chat-channels {
    display: flex;
    gap: 6px;
    padding: 10px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.chat-channels::-webkit-scrollbar {
    display: none;
}

.channel-btn {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    font-weight: 500;
}

.channel-btn.active {
    background: rgba(233, 30, 140, 0.15);
    border-color: var(--pink-primary);
    color: var(--pink-light);
}

.channel-btn i {
    font-size: 0.7rem;
}

/* Online counter */
.chat-online {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: statusPulse 2s infinite;
}

/* ============================================
   CHAT MESSAGES
   ============================================ */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 300px;
    max-height: calc(100vh - 380px);
    -webkit-overflow-scrolling: touch;
}

.chat-msg {
    display: flex;
    gap: 10px;
    animation: fadeInUp 0.3s ease;
}

.chat-msg.own {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.chat-avatar.anon {
    background: rgba(123, 47, 247, 0.3);
}

.chat-avatar.a1 {
    background: rgba(233, 30, 140, 0.3);
}

.chat-avatar.a2 {
    background: rgba(56, 189, 248, 0.3);
}

.chat-avatar.a3 {
    background: rgba(0, 230, 118, 0.3);
}

.chat-avatar.a4 {
    background: rgba(255, 145, 0, 0.3);
}

.chat-avatar.a5 {
    background: rgba(255, 214, 0, 0.3);
}

.chat-avatar.own {
    background: var(--gradient-main);
}

.chat-bubble {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    border-top-left-radius: 4px;
    padding: 10px 14px;
    max-width: 80%;
    position: relative;
}

.chat-msg.own .chat-bubble {
    background: rgba(233, 30, 140, 0.12);
    border-color: rgba(233, 30, 140, 0.2);
    border-top-left-radius: 16px;
    border-top-right-radius: 4px;
}

.chat-name {
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-name .anon-badge {
    font-size: 0.6rem;
    background: rgba(123, 47, 247, 0.2);
    color: var(--purple-light);
    padding: 1px 5px;
    border-radius: 8px;
}

.chat-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.chat-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: right;
}

.chat-reactions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.chat-react-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.chat-react-btn:hover,
.chat-react-btn.active {
    background: rgba(233, 30, 140, 0.1);
    border-color: rgba(233, 30, 140, 0.2);
    color: var(--pink-light);
}

/* System message */
.chat-system {
    text-align: center;
    padding: 8px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: italic;
}

.chat-system i {
    color: var(--pink-light);
}

/* ============================================
   CHAT INPUT AREA
   ============================================ */
.chat-input-area {
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--bg-card);
}

.chat-anon-toggle {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.toggle-label input {
    display: none;
}

.toggle-text {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s;
}

.toggle-label input:checked+.toggle-text {
    background: rgba(123, 47, 247, 0.15);
    border-color: rgba(123, 47, 247, 0.3);
    color: var(--purple-light);
}

.chat-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input-row input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: 12px 16px;
    color: white;
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.chat-input-row input::placeholder {
    color: var(--text-muted);
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-main);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:active {
    transform: scale(0.9);
}

/* ============ PWA INSTALL BANNER ============ */
.pwa-install-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.pwa-install-banner.hidden {
    display: none;
}

.pwa-install-content {
    background: var(--bg-secondary);
    border: 1px solid rgba(233, 30, 140, 0.2);
    border-radius: 24px 24px 16px 16px;
    padding: 32px 24px 24px;
    text-align: center;
    width: 100%;
    max-width: 400px;
    position: relative;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pwa-install-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.pwa-install-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 0 30px rgba(233, 30, 140, 0.3);
}

.pwa-install-content h3 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.pwa-install-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.pwa-install-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 14px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(233, 30, 140, 0.3);
}

.pwa-install-btn:active {
    transform: scale(0.97);
}

.pwa-install-later {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 12px;
    padding: 8px;
}

/* ============ AUTH / LOGIN SCREEN ============ */
.auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #0D0618 0%, #1A0A2E 40%, #2D1250 100%);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.auth-screen.hidden {
    display: none;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-logo-area {
    margin-bottom: 32px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(233, 30, 140, 0.4);
    margin-bottom: 12px;
    animation: authLogoPulse 3s ease-in-out infinite;
}

@keyframes authLogoPulse {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(233, 30, 140, 0.4);
    }

    50% {
        box-shadow: 0 0 60px rgba(233, 30, 140, 0.6);
    }
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-form {
    background: rgba(42, 18, 75, 0.5);
    border: 1px solid rgba(233, 30, 140, 0.15);
    border-radius: 20px;
    padding: 28px 24px;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.auth-form.hidden {
    display: none;
}

.auth-form h2 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.auth-form-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.auth-input-group {
    margin-bottom: 16px;
    text-align: left;
}

.auth-input-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.auth-input-group label i {
    color: var(--pink-light);
    width: 18px;
}

.auth-input-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(13, 6, 24, 0.6);
    border: 1px solid rgba(233, 30, 140, 0.15);
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.auth-input-group input::placeholder {
    color: var(--text-muted);
}

.auth-input-group input:focus {
    border-color: var(--pink-light);
    box-shadow: 0 0 12px rgba(233, 30, 140, 0.2);
}

.auth-btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 14px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(233, 30, 140, 0.3);
}

.auth-btn-primary:active {
    transform: scale(0.97);
}

.auth-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: var(--pink-light);
}

.auth-links a:last-child {
    color: #25D366;
}

.auth-links a:last-child:hover {
    color: #2EE675;
}

.auth-switch {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 16px;
}

.auth-switch a {
    color: var(--pink-light);
    text-decoration: none;
    font-weight: 600;
}

.auth-terms {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-top: 20px;
    line-height: 1.4;
}

.auth-terms a {
    color: var(--pink-light);
    text-decoration: none;
}