/* ============================================================
   sMOV — Account Page Styles
   By Cyrano_31 |
   ============================================================ */

/* Page base */
.account-page {
    background: #000;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

body:has(.account-page) {
    overflow: auto !important;
}


/* ===== NAV OVERRIDE (account page) ===== */
.account-page ~ .nav-download,
.nav-download {
    mix-blend-mode: normal !important;
    opacity: 1 !important;
    transform: none !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 110px;
    background: rgba(0, 0, 0, 0.4);
}

.nav-logo-icon-dl {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    margin-right: 4px;
}

.nav-cta-active {
    background: rgba(43, 122, 224, 0.15) !important;
    border-color: var(--color-accent-light) !important;
}


/* ===== ANIMATED BACKGROUND ===== */
.account-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.account-bg-logo {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    filter: blur(8px);
    animation: bgLogoFloat 12s ease-in-out infinite;
}

.account-bg-logo img {
    width: 600px; height: 600px;
    max-width: none;
}

.account-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
}

.account-orb-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #2B7AE0, transparent 70%);
    top: -100px; right: -100px;
    animation: orbFloat1 8s ease-in-out infinite;
}

.account-orb-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #c43e00, transparent 70%);
    bottom: 20%; left: -80px;
    animation: orbFloat2 10s ease-in-out infinite;
}

.account-orb-3 {
    width: 250px; height: 250px;
    background: radial-gradient(circle, #2B7AE0, transparent 70%);
    bottom: -50px; right: 20%;
    animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes bgLogoFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    50%      { transform: translate(-50%, -52%) scale(1.05) rotate(3deg); }
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    33%      { transform: translate(-30px, 40px); }
    66%      { transform: translate(20px, -20px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(40px, -30px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    33%      { transform: translate(-20px, -30px); }
    66%      { transform: translate(30px, 20px); }
}


/* ===== AUTH SECTION ===== */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    z-index: 1;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: authSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
    position: relative;
    z-index: 1;
}

@keyframes authSlideUp {
    from { opacity: 0; transform: translateY(50px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
    font-size: 48px;
    line-height: 1;
}

.auth-logo .logo-s {
    font-size: 48px;
}

.auth-logo .logo-mov {
    font-size: 48px;
}

.auth-logo .logo-s,
.auth-logo .logo-mov {
    text-shadow: 0 0 30px rgba(43, 122, 224, 0.3);
    animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { text-shadow: 0 0 30px rgba(43, 122, 224, 0.3); }
    50%      { text-shadow: 0 0 50px rgba(43, 122, 224, 0.5), 0 0 80px rgba(43, 122, 224, 0.15); }
}


/* ===== TABS ===== */
.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 28px;
}

.auth-tab {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: var(--color-accent, #2B7AE0);
    color: #fff;
    box-shadow: 0 4px 15px rgba(43, 122, 224, 0.3);
}

.auth-tab:not(.active):hover {
    color: rgba(255, 255, 255, 0.7);
}


/* ===== FORMS ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form.hidden {
    display: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus {
    border-color: var(--color-accent-light, #5BA3F5);
    box-shadow: 0 0 0 3px rgba(43, 122, 224, 0.15);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--color-accent-light, #5BA3F5);
}

.forgot-link {
    align-self: flex-end;
    font-size: 13px;
    color: var(--color-accent-light, #5BA3F5);
    text-decoration: none;
    transition: opacity 0.3s;
    margin-top: -8px;
}

.forgot-link:hover {
    opacity: 0.7;
}

.forgot-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
    margin-bottom: 4px;
}

.back-link {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--color-accent-light, #5BA3F5);
    text-decoration: none;
    margin-top: 4px;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 0.7;
}


/* ===== AUTH BUTTON ===== */
.auth-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: var(--color-accent, #2B7AE0);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 4px;
}

.auth-btn:hover {
    background: var(--color-accent-light, #5BA3F5);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(43, 122, 224, 0.35);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn.loading span {
    opacity: 0;
}

.auth-btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: authSpin 0.7s linear infinite;
}

.auth-btn.loading .auth-btn-loader {
    display: block;
}

@keyframes authSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== CONSENT TEXT ===== */
.auth-consent {
    margin-top: 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    line-height: 1.5;
}

.auth-consent a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.2);
    transition: color 0.2s;
}

.auth-consent a:hover {
    color: #5BA3F5;
}


/* ===== MESSAGE ===== */
.auth-message {
    margin-top: 16px;
    padding: 0;
    font-size: 13px;
    text-align: center;
    border-radius: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 0;
}

.auth-message.show {
    padding: 12px 16px;
    max-height: 80px;
    margin-top: 16px;
}

.auth-message.success {
    background: rgba(52, 199, 89, 0.12);
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

.auth-message.error {
    background: rgba(255, 59, 48, 0.12);
    color: #ff6b6b;
    border: 1px solid rgba(255, 59, 48, 0.2);
}


/* ===== DIVIDER ===== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-divider span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 2px;
}


/* ===== SOCIAL BTN ===== */
.auth-social-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}


/* ===== DASHBOARD SECTION ===== */
.dashboard-section {
    padding: 120px 20px 60px;
    min-height: auto;
    position: relative;
    z-index: 1;
}

.dashboard-section.hidden {
    display: none;
}

.dashboard-container {
    max-width: 1000px;
    margin: 0 auto;
}


/* Dashboard header */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-welcome {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(43, 122, 224, 0.15);
    border: 2px solid var(--color-accent, #2B7AE0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-light, #5BA3F5);
}

.dashboard-title {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 600;
    color: #fff;
}

.dashboard-title span {
    color: var(--color-accent-light, #5BA3F5);
}

.dashboard-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    color: #ff6b6b;
    border-color: rgba(255, 59, 48, 0.3);
    background: rgba(255, 59, 48, 0.08);
}


/* Dashboard grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dash-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: cardReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dash-card:nth-child(1) { animation-delay: 0.1s; }
.dash-card:nth-child(2) { animation-delay: 0.2s; }
.dash-card:nth-child(3) { animation-delay: 0.3s; }
.dash-card:nth-child(4) { animation-delay: 0.4s; }
.dash-card:nth-child(5) { animation-delay: 0.5s; }
.dash-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardReveal {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dash-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.dash-card-accent {
    border-color: rgba(43, 122, 224, 0.2);
    background: rgba(43, 122, 224, 0.05);
}

.dash-card-accent:hover {
    border-color: rgba(43, 122, 224, 0.35);
}

.dash-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--color-accent-light, #5BA3F5);
}

.dash-card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.dash-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    width: fit-content;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
}

.plan-badge.premium {
    background: rgba(43, 122, 224, 0.2);
    color: var(--color-accent-light, #5BA3F5);
}

.plan-badge.premium.famille {
    background: linear-gradient(135deg, #2B7AE0, #c43e00);
    color: #fff;
    box-shadow: 0 4px 15px rgba(43, 122, 224, 0.4);
}

.plan-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
}

.upgrade-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: var(--color-accent, #2B7AE0);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}

.upgrade-btn:hover {
    background: var(--color-accent-light, #5BA3F5);
    box-shadow: 0 6px 20px rgba(43, 122, 224, 0.3);
    transform: translateY(-1px);
}

/* Bouton Gérer mon abonnement */
.manage-sub-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid rgba(43, 122, 224, 0.3);
    border-radius: 10px;
    background: rgba(43, 122, 224, 0.08);
    color: var(--color-accent-light, #5BA3F5);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: 8px;
}

.manage-sub-btn:hover {
    background: rgba(43, 122, 224, 0.15);
    border-color: rgba(43, 122, 224, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(43, 122, 224, 0.2);
}

.manage-sub-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.manage-sub-btn.hidden {
    display: none;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

.info-value {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}

.info-value-muted {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    max-width: 70%;
    text-align: right;
}

.info-uid {
    font-size: 11px;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.3);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-active {
    color: #34c759;
}

.dash-action-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dash-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.dash-action-danger {
    color: rgba(255, 59, 48, 0.6);
    border-color: rgba(255, 59, 48, 0.15);
}

.dash-action-danger:hover {
    background: rgba(255, 59, 48, 0.08);
    border-color: rgba(255, 59, 48, 0.3);
    color: #ff6b6b;
}


/* ===== TRIAL COUNTDOWN CARD ===== */
.dash-card-trial {
    border-color: rgba(43, 122, 224, 0.25);
    background: linear-gradient(135deg, rgba(43, 122, 224, 0.08), rgba(196, 62, 0, 0.05));
}

.dash-card-trial:hover {
    border-color: rgba(43, 122, 224, 0.4);
}

.trial-visual {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 8px;
}

.trial-ring {
    display: block;
}

.trial-ring-progress {
    transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.trial-ring-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trial-days-num {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    background: linear-gradient(135deg, #5BA3F5, #c43e00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trial-days-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}

.trial-status {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    line-height: 1.4;
}

.trial-expired {
    color: #ff6b6b;
}


/* ===== PRICING SECTION ===== */
.pricing-section {
    padding: 80px 20px 100px;
    position: relative;
    z-index: 1;
}

.pricing-section.hidden {
    display: none;
}

.pricing-container {
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-tag {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(43, 122, 224, 0.12);
    color: var(--color-accent-light, #5BA3F5);
    border: 1px solid rgba(43, 122, 224, 0.2);
    margin-bottom: 20px;
}

.pricing-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.pricing-title span {
    background: linear-gradient(135deg, #5BA3F5, #c43e00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.4);
}

/* Toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 48px;
}

.toggle-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
    transition: color 0.3s ease;
}

.toggle-label.toggle-active {
    color: #fff;
}

.toggle-switch {
    width: 52px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.toggle-switch.active {
    background: rgba(43, 122, 224, 0.3);
    border-color: rgba(43, 122, 224, 0.5);
}

.toggle-knob {
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.toggle-switch.active .toggle-knob {
    transform: translateX(24px);
}

.toggle-save {
    font-size: 12px;
    font-weight: 600;
    color: #34c759;
    background: rgba(52, 199, 89, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

/* Pricing grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: cardReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pricing-card:nth-child(1) { animation-delay: 0.15s; }
.pricing-card:nth-child(2) { animation-delay: 0.3s; }
.pricing-card:nth-child(3) { animation-delay: 0.45s; }

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Popular card */
.pricing-card-pop {
    border-color: rgba(43, 122, 224, 0.35);
    background: linear-gradient(170deg, rgba(43, 122, 224, 0.1) 0%, rgba(43, 122, 224, 0.02) 100%);
    transform: scale(1.04);
    z-index: 2;
}

.pricing-card-pop:hover {
    transform: scale(1.04) translateY(-6px);
    border-color: rgba(43, 122, 224, 0.55);
    box-shadow: 0 20px 60px rgba(43, 122, 224, 0.15);
}

.pop-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #2B7AE0, #c43e00);
    color: #fff;
    box-shadow: 0 4px 15px rgba(43, 122, 224, 0.4);
}

.pricing-card-top {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 24px;
}

.pricing-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 8px;
}

.pricing-amount {
    font-size: 44px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card-pop .pricing-amount {
    background: linear-gradient(135deg, #5BA3F5, #c43e00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-period {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
    transition: all 0.3s ease;
}

.pricing-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

/* Features list */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-features li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li span {
    font-size: 14px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.feat-yes span {
    color: #34c759;
}

.feat-no span {
    color: rgba(255, 255, 255, 0.15);
}

.feat-no {
    color: rgba(255, 255, 255, 0.2) !important;
}

/* CTA button */
.pricing-cta {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--color-accent, #2B7AE0);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-cta:hover {
    background: var(--color-accent-light, #5BA3F5);
    box-shadow: 0 8px 30px rgba(43, 122, 224, 0.35);
    transform: translateY(-2px);
}

.pricing-cta:hover::after {
    opacity: 1;
}

.pricing-cta-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
}

.pricing-cta-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    box-shadow: none;
    transform: translateY(-2px);
}

.pricing-cta-outline::after { display: none; }

/* Plan actuel — bouton vert coché */
.pricing-cta-current {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #4ade80;
    cursor: default;
    pointer-events: none;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.pricing-cta-current::after { display: none; }
.pricing-cta-current:hover {
    transform: none;
    box-shadow: none;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .auth-container {
        padding: 28px 20px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .logout-btn {
        align-self: flex-start;
    }

    .dashboard-section {
        padding: 90px 16px 40px;
    }

    /* Pricing responsive */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .pricing-card-pop {
        transform: scale(1);
        order: -1;
    }

    .pricing-card-pop:hover {
        transform: translateY(-6px);
    }

    .pricing-section {
        padding: 60px 16px 80px;
    }

    .pricing-title {
        font-size: 28px;
    }

    /* Nav smaller on mobile */
    .nav-download {
        height: 70px !important;
    }
    .nav-logo-icon-dl {
        width: 50px !important;
        height: 50px !important;
    }

    /* Background orbs smaller on mobile */
    .account-orb-1 { width: 250px; height: 250px; }
    .account-orb-2 { width: 200px; height: 200px; }
    .account-orb-3 { width: 150px; height: 150px; }
    .account-bg-logo img { width: 300px; height: 300px; }
}

@media (max-width: 480px) {
    .auth-section {
        padding: 90px 12px 40px;
    }

    .auth-container {
        padding: 24px 16px;
        border-radius: 18px;
    }

    .info-uid {
        max-width: 120px;
    }

    .pricing-card {
        padding: 28px 20px;
    }

    .pricing-amount {
        font-size: 36px;
    }

    .pricing-toggle {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* ===== GÉRER MES APPAREILS — DEVICE CARD ===== */

.dash-card-devices {
    border: 1px solid rgba(43, 122, 224, 0.18);
}

.dash-card-devices .dash-card-header {
    position: relative;
}

.plan-badge-small {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.45);
    transition: all 0.3s ease;
}

.plan-badge-small.is-premium {
    background: rgba(43, 122, 224, 0.2);
    color: var(--color-accent-light, #5BA3F5);
    box-shadow: 0 0 12px rgba(43, 122, 224, 0.15);
}

.plan-badge-small.is-premium.is-famille {
    background: linear-gradient(135deg, #2B7AE0, #c43e00);
    color: #fff;
    box-shadow: 0 4px 15px rgba(43, 122, 224, 0.4);
}

.devices-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
    margin-bottom: 18px;
}
.devices-desc strong {
    color: var(--color-accent-light, #5BA3F5);
}

/* Devices grid — 3 slots */
.devices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.device-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.device-slot-active {
    background: rgba(43, 122, 224, 0.08);
    border-color: rgba(43, 122, 224, 0.25);
}

.device-slot-active .device-slot-icon svg {
    stroke: var(--color-accent-light, #5BA3F5);
    filter: drop-shadow(0 0 6px rgba(43, 122, 224, 0.3));
}

.device-slot-empty .device-slot-icon svg {
    stroke: rgba(255, 255, 255, 0.2);
}

.device-slot-locked {
    opacity: 0.45;
}

.device-slot-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.device-lock-icon {
    position: absolute;
    bottom: -2px;
    right: -4px;
    font-size: 14px;
}

.device-slot-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Space Grotesk', sans-serif;
}

.device-slot-id {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Space Grotesk', sans-serif;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.device-slot-active .device-slot-id {
    color: var(--color-accent-light, #5BA3F5);
    font-weight: 600;
}

.device-slot-seen {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Space Grotesk', sans-serif;
    margin-top: 2px;
}

/* Status dot */
.device-slot-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 10px;
}

.device-status-on {
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 4px rgba(74, 222, 128, 0.3); }
    50%      { box-shadow: 0 0 12px rgba(74, 222, 128, 0.6); }
}

.device-status-away {
    background: #fbbf24;
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.3);
}

.device-status-off {
    background: rgba(255, 255, 255, 0.12);
}

.device-slot-since {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.2);
    font-family: 'Space Grotesk', sans-serif;
    margin-top: 1px;
    font-style: italic;
}

/* Bouton supprimer appareil */
.device-remove-btn {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    padding: 0;
}

.device-slot:hover .device-remove-btn {
    opacity: 1;
}

.device-remove-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.15);
}

.device-remove-btn:disabled {
    opacity: 0.3;
    cursor: wait;
}

/* ===== RESPONSIVE — Devices card ===== */
@media (max-width: 480px) {
    .devices-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .device-slot {
        padding: 12px 4px 10px;
    }

    .device-slot-icon svg {
        width: 26px;
        height: 26px;
    }

    .device-slot-label {
        font-size: 11px;
    }
}


/* ===== DERNIER DÉCLENCHEMENT — TRIGGER CARD ===== */

.dash-card-trigger {
    border: 1px solid rgba(43, 122, 224, 0.18);
}

.dash-card-trigger .dash-card-header svg {
    color: var(--color-accent-light, #5BA3F5);
}

/* Placeholder (when no device selected) */
.trigger-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    text-align: center;
}

.trigger-placeholder p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.5;
}

/* Trigger content */
.trigger-content {
    animation: triggerFadeIn 0.4s ease;
}

.trigger-content.hidden,
.trigger-placeholder.hidden {
    display: none;
}

@keyframes triggerFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.trigger-device-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent-light, #5BA3F5);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(43, 122, 224, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
}

.trigger-device-name::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent, #2B7AE0);
    box-shadow: 0 0 8px rgba(43, 122, 224, 0.5);
    flex-shrink: 0;
}

.trigger-info-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trigger-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.trigger-info-row:hover {
    background: rgba(43, 122, 224, 0.06);
    border-color: rgba(43, 122, 224, 0.15);
}

.trigger-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.trigger-value {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-family: 'Space Grotesk', monospace;
}

.trigger-value.trigger-mode-badge {
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trigger-mode-live {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.trigger-mode-alarme {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
}

.trigger-mode-trace {
    background: rgba(43, 122, 224, 0.15);
    color: #5BA3F5;
}

.trigger-no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px 20px;
    text-align: center;
}

.trigger-no-data p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

/* Device slot selected state */
.device-slot-selected {
    border-color: var(--color-accent, #2B7AE0) !important;
    background: rgba(43, 122, 224, 0.12) !important;
    box-shadow: 0 0 16px rgba(43, 122, 224, 0.2);
}

/* Trigger "Voir sur la carte" button */
.trigger-locate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 14px;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(43, 122, 224, 0.3);
    background: linear-gradient(135deg, rgba(43, 122, 224, 0.1) 0%, rgba(43, 122, 224, 0.04) 100%);
    color: #5BA3F5;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.trigger-locate-btn:hover {
    background: linear-gradient(135deg, rgba(43, 122, 224, 0.2) 0%, rgba(43, 122, 224, 0.08) 100%);
    border-color: rgba(43, 122, 224, 0.5);
    box-shadow: 0 4px 24px rgba(43, 122, 224, 0.15);
    transform: translateY(-1px);
}

.trigger-locate-btn:active {
    transform: translateY(0);
}

.trigger-locate-arrow {
    transition: transform 0.3s ease;
}

.trigger-locate-btn:hover .trigger-locate-arrow {
    transform: translate(2px, -2px);
}

/* Trigger Map Modal Overlay */
.trigger-map-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.trigger-map-overlay.active {
    opacity: 1;
    visibility: visible;
}

.trigger-map-modal {
    width: 90vw;
    max-width: 800px;
    height: 75vh;
    max-height: 600px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0a0a14;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.trigger-map-overlay.active .trigger-map-modal {
    transform: scale(1) translateY(0);
}

.trigger-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trigger-map-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
}

.trigger-map-title svg {
    color: #5BA3F5;
}

.trigger-map-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.trigger-map-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.trigger-map-container {
    flex: 1;
    min-height: 0;
}

.trigger-map-container .leaflet-tile-pane {
    filter: brightness(1.7) contrast(0.9);
}

.trigger-map-container .leaflet-control-zoom a {
    background: rgba(15, 15, 30, 0.9) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.trigger-map-footer {
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trigger-map-coords {
    font-family: 'Space Grotesk', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .trigger-map-modal {
        width: 95vw;
        height: 70vh;
        border-radius: 16px;
    }

    .trigger-locate-btn {
        font-size: 12px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .trigger-map-modal {
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }

    .trigger-locate-btn {
        font-size: 11px;
        padding: 10px 14px;
        border-radius: 10px;
    }
}


/* ===== LOCALISER MES APPAREILS (Premium) ===== */
.dash-card-locate {
    background: linear-gradient(135deg, rgba(43, 122, 224, 0.04) 0%, rgba(0, 0, 0, 0) 60%);
}

.dash-card-locate .dash-card-header {
    gap: 10px;
}

.dash-card-locate .plan-badge-small {
    margin-left: 0;
}
.dash-card-locate .plan-badge-small:first-of-type {
    margin-left: auto;
}

.plan-badge-premium,
.plan-badge-solo,
.plan-badge-famille {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: -1px;
}

.plan-badge-premium {
    border-radius: 6px 0 0 6px;
}
.plan-badge-solo {
    border-radius: 0;
}
.plan-badge-famille {
    border-radius: 0 6px 6px 0;
    margin-right: 0;
}

/* Dimmed state (default) */
.plan-badge-premium,
.plan-badge-solo,
.plan-badge-famille {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

/* Active states */
.plan-badge-premium.active {
    background: linear-gradient(135deg, #5BA3F5, #2B7AE0);
    color: #fff;
    box-shadow: 0 4px 15px rgba(91, 163, 245, 0.3);
}

.plan-badge-solo.active {
    background: linear-gradient(135deg, #2B7AE0, #1a5bb5);
    color: #fff;
    box-shadow: 0 4px 15px rgba(43, 122, 224, 0.3);
}

.plan-badge-famille.active {
    background: linear-gradient(135deg, #2B7AE0, #c43e00);
    color: #fff;
    box-shadow: 0 4px 15px rgba(43, 122, 224, 0.4);
}

.locate-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    font-family: 'Space Grotesk', sans-serif;
}

.locate-map {
    width: 100%;
    height: 520px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    background: #1a1a2e;
    margin-bottom: 16px;
}

/* Eclaircir le fond de carte dark */
.locate-map .leaflet-tile-pane {
    filter: brightness(5.0) contrast(0.9);
}

.locate-map .leaflet-control-zoom a {
    background: rgba(30, 30, 50, 0.9) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.locate-map .leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.5) !important;
    color: rgba(255, 255, 255, 0.35) !important;
    font-size: 9px !important;
}

.locate-map .leaflet-control-attribution a {
    color: rgba(91, 163, 245, 0.6) !important;
}

/* Device name tooltip (permanent label next to marker) */
.device-name-tooltip {
    background: rgba(10, 10, 25, 0.94) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    padding: 5px 12px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
    backdrop-filter: blur(8px) !important;
}

.device-name-tooltip .tt-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: 1px;
}

.device-name-tooltip .tt-age {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    font-size: 10px;
    margin-left: 6px;
}

.device-name-tooltip::before {
    border-right-color: rgba(255, 255, 255, 0.15) !important;
}

.locate-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.locate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 10px;
    border: 1px solid rgba(43, 122, 224, 0.4);
    background: rgba(43, 122, 224, 0.1);
    color: #5BA3F5;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.locate-btn:hover {
    background: rgba(43, 122, 224, 0.2);
    border-color: rgba(43, 122, 224, 0.6);
    box-shadow: 0 0 20px rgba(43, 122, 224, 0.15);
}

.locate-btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

.locate-btn.locating {
    animation: locatePulse 1.5s ease-in-out infinite;
}

@keyframes locatePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(43, 122, 224, 0.3); }
    50%      { box-shadow: 0 0 20px 4px rgba(43, 122, 224, 0.15); }
}

.locate-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Space Grotesk', sans-serif;
}

/* Custom marker popup — dark theme */
.dark-popup .leaflet-popup-content-wrapper {
    background: rgba(15, 15, 30, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
    color: #fff !important;
}

.dark-popup .leaflet-popup-tip {
    background: rgba(15, 15, 30, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}

.dark-popup .leaflet-popup-close-button {
    color: rgba(255, 255, 255, 0.4) !important;
}

.dark-popup .leaflet-popup-close-button:hover {
    color: #fff !important;
}

.locate-popup {
    font-family: 'Space Grotesk', sans-serif;
    padding: 4px 2px;
}

.device-popup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.device-popup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.device-popup-name {
    font-weight: 700;
    font-size: 13px;
    color: #fff;
}

.device-popup-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.device-popup-coords {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Space Grotesk', monospace;
}

.device-popup-accuracy {
    font-size: 10px;
    color: rgba(91, 163, 245, 0.7);
    font-family: 'Space Grotesk', monospace;
    margin-top: 3px;
    padding-top: 3px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Marker custom pulse */
.device-marker-icon {
    position: relative;
}

.device-marker-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #fff;
    transition: all 0.3s ease;
}

.device-marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    animation: markerPulse 2s ease-out infinite;
}

@keyframes markerPulse {
    0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Stale tooltip (old position) */
.device-tooltip-stale {
    background: rgba(80, 80, 80, 0.85) !important;
    border-color: rgba(150, 150, 150, 0.3) !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.device-tooltip-stale::before {
    border-right-color: rgba(150, 150, 150, 0.3) !important;
}

/* Fresh tooltip (device just located) */
.device-tooltip-fresh {
    background: rgba(10, 25, 45, 0.94) !important;
    border-color: rgba(43, 122, 224, 0.5) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(43, 122, 224, 0.2) !important;
}

.device-tooltip-fresh::before {
    border-right-color: rgba(43, 122, 224, 0.5) !important;
}

/* Locate status colors */
.locate-status-ok {
    color: #4ade80 !important;
}

.locate-status-warn {
    color: #fbbf24 !important;
}

/* ===== RESPONSIVE — Trigger card ===== */
@media (max-width: 768px) {
    .trigger-info-row:first-child .trigger-label {
        display: none;
    }

    .trigger-info-row:first-child .trigger-value {
        font-size: 12px;
    }

}

/* ===== RESPONSIVE — Locate card ===== */
@media (max-width: 768px) {
    .locate-map {
        height: 425px;
    }

    .locate-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .locate-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .locate-map {
        height: 350px;
        border-radius: 10px;
    }

    .locate-btn {
        font-size: 12px;
        padding: 8px 16px;
    }
}
