/* Custom Fonts */
@font-face {
    font-family: 'NITECLUB';
    src: url('NITECLUB.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Brand product names - use NITECLUB font with 20% larger size */
.brand-product-name {
    font-family: 'NITECLUB', sans-serif;
    font-size: 1.2em; /* 20% larger */
    letter-spacing: 0.5px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-tertiary: #555555;
    --accent-primary: #c9a962;
    --accent-secondary: #a88c4a;
    --accent-green: #22c55e;
    --accent-blue: #3b82f6;
    --accent-orange: #f97316;
    --accent-red: #ef4444;
    --primary: #c9a962;
    --border-color: #222222;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

/* Text Selection */
::selection {
    background-color: #22c55e !important;
    color: #000000 !important;
}

::-moz-selection {
    background-color: #22c55e !important;
    color: #000000 !important;
}

/* Force selection on all elements */
*::selection {
    background-color: #22c55e !important;
    color: #000000 !important;
}

*::-moz-selection {
    background-color: #22c55e !important;
    color: #000000 !important;
}

/* Utility classes */
.hidden {
    display: none !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Phone Frame */
.phone-frame {
    width: 375px;
    height: 812px;
    background-color: var(--bg-primary);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 8px solid #333;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background-color: #000;
    border-radius: 0 0 20px 20px;
    z-index: 100;
}

/* Screen Base */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: none;
    flex-direction: column;
    padding-top: 50px;
    overflow: hidden;
}

.screen.active {
    display: flex;
}

/* Login Screen */
.login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 24px;
}

.logo-container {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.logo-image {
    width: 220px;
    height: auto;
}

.logo-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 10px;
    margin-top: 8px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-group input {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: var(--accent-primary);
}

.input-group input::placeholder {
    color: var(--text-tertiary);
}

.input-with-prefix {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.input-with-prefix .prefix {
    padding: 16px;
    padding-right: 8px;
    color: var(--text-tertiary);
    font-size: 16px;
}

.input-with-prefix input {
    border: none;
    padding-left: 0;
    flex: 1;
}

.input-hint {
    font-size: 12px;
    color: var(--text-tertiary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: var(--border-radius);
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(201, 169, 98, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.forgot-password {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
}

.signup-link {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 10px;
}

.signup-link a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

/* Create Profile Screen */
.create-profile-content {
    padding-bottom: 40px;
}

.profile-photo-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.photo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 3px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s;
}

.photo-circle:hover {
    border-color: var(--accent-primary);
}

.photo-circle svg {
    width: 50px;
    height: 50px;
    color: var(--text-tertiary);
}

.photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    padding: 8px;
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.photo-circle:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.photo-hint {
    font-size: 13px;
    color: var(--text-tertiary);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 16px;
}

.header-left {
    display: flex;
    flex-direction: column;
}

.header-logo {
    height: 24px;
    width: auto;
}

.header-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.greeting {
    font-size: 14px;
    color: var(--text-secondary);
}

.user-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #000;
    cursor: pointer;
    overflow: hidden;
}

.avatar .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.icon-btn svg {
    width: 22px;
    height: 22px;
    color: var(--text-primary);
}

/* Header Back */
.header-back {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 16px;
}

.header-back h1 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.back-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.text-btn {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Content Area */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 100px;
}

/* Location Banner */
.location-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    margin-bottom: 20px;
}

.location-banner .location-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-banner .location-icon svg {
    width: 18px;
    height: 18px;
    color: var(--accent-blue);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.location-banner span {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Section Title */
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header-row .section-title {
    margin-bottom: 0;
}

.see-all {
    font-size: 14px;
    color: var(--accent-primary);
    cursor: pointer;
}

/* Project Cards */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.project-card-full {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.project-card-full:hover {
    transform: translateY(-2px);
}

.project-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.project-status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.project-status-badge.active {
    background-color: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.project-distance {
    font-size: 12px;
    font-weight: 500;
}

.project-distance.near {
    color: var(--accent-green);
}

.project-distance.far {
    color: var(--text-secondary);
}

.project-card-full h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

/* Badge de etapa atual */
.current-stage-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #c9a962, #f59e0b);
    color: #1a1a1a;
    padding: 4px 12px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.current-stage-badge.no-stages {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #fff;
}

.project-address {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.project-schedule {
    font-size: 12px;
    color: var(--accent-primary);
    margin-bottom: 12px;
    font-weight: 500;
}

.project-team {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.team-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

.team-avatars {
    display: flex;
    margin-left: -4px;
}

.mini-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #000;
    margin-left: -8px;
    border: 2px solid var(--bg-card);
}

.mini-avatar:first-child {
    margin-left: 0;
}

.mini-avatar.more {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.project-stats-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.project-stats-row .stat-item {
    text-align: center;
}

.project-stats-row .stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.project-stats-row .stat-label {
    font-size: 11px;
    color: var(--text-tertiary);
}

.project-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background-color: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Completed Projects Preview */
.completed-projects-preview {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.completed-card-mini {
    min-width: 160px;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.completed-thumb {
    height: 80px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.completed-info {
    padding: 12px;
}

.completed-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.completed-info span {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* Project Detail */
.map-container {
    margin-bottom: 16px;
}

.map-placeholder {
    background: #1a2634;
    border-radius: var(--border-radius-lg);
    height: 180px;
    position: relative;
    overflow: hidden;
}

/* Street pattern background - creates a realistic map look */
.map-streets {
    position: absolute;
    inset: 0;
    background:
        /* Main horizontal road */
        linear-gradient(90deg, transparent 0%, transparent 45%, #2d3a47 45%, #2d3a47 55%, transparent 55%, transparent 100%),
        /* Main vertical road */
        linear-gradient(0deg, transparent 0%, transparent 42%, #2d3a47 42%, #2d3a47 58%, transparent 58%, transparent 100%),
        /* Secondary roads - horizontal */
        linear-gradient(90deg, transparent 0%, transparent 20%, #252f3a 20%, #252f3a 22%, transparent 22%, transparent 78%, #252f3a 78%, #252f3a 80%, transparent 80%),
        /* Secondary roads - vertical */
        linear-gradient(0deg, transparent 0%, transparent 25%, #252f3a 25%, #252f3a 27%, transparent 27%, transparent 73%, #252f3a 73%, #252f3a 75%, transparent 75%),
        /* Building blocks */
        linear-gradient(135deg, #1e2833 25%, transparent 25%),
        linear-gradient(225deg, #1e2833 25%, transparent 25%),
        linear-gradient(45deg, #1e2833 25%, transparent 25%),
        linear-gradient(315deg, #1e2833 25%, transparent 25%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px, 40px 40px, 40px 40px;
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 20px 0, 0 20px, 20px 20px;
    opacity: 0.8;
}

/* Subtle grid overlay for more map detail */
.map-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
}

/* Project destination pin - removed from design, keeping for reference */
.map-destination-pin {
    display: none;
}

/* Position marker - centralizado na intersecção das ruas (50%/50%) */
.map-position-marker {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

/* Pulsing rings - 70px expandindo para 140px (começa ao redor do icone) */
.position-pulse-ring {
    position: absolute;
    width: 70px;
    height: 70px;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    opacity: 0;
    animation: pulseRing 3.5s ease-out infinite;
}

.position-pulse-ring.delay {
    animation-delay: 1.75s;
}

@keyframes pulseRing {
    0% { width: 70px; height: 70px; opacity: 0; }
    10% { opacity: 0.6; }
    100% { width: 140px; height: 140px; opacity: 0; }
}

/* Accuracy circle - hidden */
.position-accuracy {
    display: none;
}

/* Central dot - 50px com ícone do personagem (sem circulo) */
.position-dot {
    position: absolute;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    z-index: 11;
    animation: dotBounce 2s ease-in-out infinite;
    overflow: visible;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

@keyframes dotBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Hide highlight */
.position-dot::before {
    display: none;
}

/* Legacy support - hide old elements */
.map-pin, .map-radius, .map-you:not(.map-position-marker) {
    display: none;
}

.location-check-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 20px;
}

.location-status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-status-icon.valid {
    background-color: rgba(34, 197, 94, 0.2);
}

.location-status-icon.valid svg {
    width: 24px;
    height: 24px;
    color: var(--accent-green);
}

.location-status-info {
    flex: 1;
}

.status-main {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-green);
    margin-bottom: 2px;
}

.status-sub {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Location Card - Invalid State */
.location-check-card.invalid {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.location-status-icon.invalid {
    background-color: rgba(239, 68, 68, 0.2);
}

.location-status-icon.invalid svg {
    width: 24px;
    height: 24px;
    color: var(--accent-red);
}

/* Location Card - Loading State */
.location-check-card.loading {
    background-color: rgba(107, 114, 128, 0.1);
    border-color: rgba(107, 114, 128, 0.3);
}

.location-status-icon.loading {
    background-color: rgba(107, 114, 128, 0.2);
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--text-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Location Card - Error State */
.location-check-card.error {
    background-color: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
}

.location-status-icon.error {
    background-color: rgba(249, 115, 22, 0.2);
}

.location-status-icon.error svg {
    width: 24px;
    height: 24px;
    color: var(--accent-orange);
}

/* Check-in Button Disabled State */
.btn-checkin-large.disabled,
.btn-checkin-large:disabled {
    background-color: rgba(107, 114, 128, 0.3);
    color: var(--text-tertiary);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-checkin-large.disabled:active,
.btn-checkin-large:disabled:active {
    transform: none;
}

.project-detail-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.project-detail-card h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.project-tag-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.tag-pill {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 16px;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
}

.tag-pill.stelion {
    background-color: rgba(201, 169, 98, 0.15);
    color: var(--accent-primary);
}

/* Team List */
.team-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 14px;
}

.member-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    overflow: hidden;
    flex-shrink: 0;
}

.member-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loading-team,
.empty-team {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.member-info {
    flex: 1;
}

.member-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.member-role {
    font-size: 13px;
    color: var(--text-secondary);
}

.member-hours {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
}

/* Report Responsibility Section */
.report-responsibility-section {
    margin-bottom: 24px;
}

.responsibility-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 14px;
    border: 1px solid rgba(201, 169, 98, 0.2);
}

.responsibility-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.responsibility-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    overflow: hidden;
}

.responsibility-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.responsibility-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.responsibility-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.responsibility-status {
    font-size: 13px;
    color: var(--text-secondary);
}

.responsibility-status.is-you {
    color: var(--accent-primary);
    font-weight: 500;
}

.btn-transfer {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #000;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-transfer:hover {
    transform: scale(1.02);
}

.btn-transfer:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Transfer Modal Styles */
.transfer-team-list {
    max-height: 300px;
    overflow-y: auto;
    margin: 16px 0;
}

.transfer-team-member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.transfer-team-member:hover {
    background: rgba(255, 255, 255, 0.05);
}

.transfer-team-member.selected {
    background: rgba(201, 169, 98, 0.15);
    border-color: var(--accent-primary);
}

.transfer-team-member .member-avatar {
    width: 40px;
    height: 40px;
}

.transfer-reason {
    margin-top: 16px;
}

.transfer-reason label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.transfer-reason input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
}

.transfer-reason input::placeholder {
    color: var(--text-muted);
}

.transfer-info {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Check-in Button */
.btn-checkin-large {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-green), #16a34a);
    border: none;
    border-radius: var(--border-radius);
    padding: 18px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.btn-checkin-large svg {
    width: 24px;
    height: 24px;
}

.btn-report {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-report svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

.btn-checkout {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: var(--border-radius);
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.btn-checkout svg {
    width: 20px;
    height: 20px;
    stroke: #ef4444;
}

.btn-checkout:hover {
    background: #222;
    border-color: #ef4444;
}

/* Entry Request Button (Liberacao na Portaria) */
.btn-entry-request {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: var(--border-radius);
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    color: #3b82f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    transition: all 0.2s ease;
}

.btn-entry-request svg {
    width: 20px;
    height: 20px;
    stroke: #3b82f6;
}

.btn-entry-request:hover:not(:disabled) {
    background: #222;
    border-color: #3b82f6;
}

.btn-entry-request:disabled,
.btn-entry-request.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #666;
}

.btn-entry-request:disabled svg,
.btn-entry-request.disabled svg {
    stroke: #666;
}

/* Feed - Instagram Style */
.feed-content {
    padding: 0;
    padding-bottom: 100px;
    background: var(--bg-primary);
}

.feed-content .empty-state {
    min-height: calc(100vh - 200px);
    padding: 40px 24px;
}

.feed-post {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
}

.post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #000;
    flex-shrink: 0;
    overflow: hidden;
}

.post-avatar .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.post-user-info {
    flex: 1;
}

.post-username,
.post-user-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Badge next to user name in feed posts */
.post-user-badge {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.post-meta,
.post-project-name {
    font-size: 12px;
    color: var(--text-tertiary);
}

.post-time {
    display: none; /* Tempo agora aparece no rodape do post */
}

.post-menu-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.post-menu-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-tertiary);
}

.post-image {
    width: 100%;
    overflow: hidden;
    background: #000;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.post-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-image-placeholder.style2 {
    background: linear-gradient(135deg, #1e3a5f, #0d253f);
}

.post-image-placeholder.style3 {
    background: linear-gradient(135deg, #2d1b4e, #1a0f2e);
}

.post-image-placeholder span {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
}

.post-content {
    padding: 0 16px 8px;
}

.post-content p {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.post-content p strong {
    font-weight: 600;
}

.post-project-tag {
    font-size: 12px;
    color: var(--accent-primary);
    background-color: rgba(201, 169, 98, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.post-actions {
    display: flex;
    gap: 16px;
    padding: 10px 16px 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.1s ease;
}

.action-btn:active {
    transform: scale(0.9);
}

.action-btn svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.action-btn span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.action-btn.liked svg {
    color: #ed4956;
    fill: #ed4956;
}

.action-btn.liked span {
    color: var(--text-primary);
}

.post-likes {
    padding: 0 16px 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.post-timestamp {
    padding: 4px 16px 16px;
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

/* New Post */
.new-post-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-image-upload {
    margin-bottom: 10px;
}

.upload-area {
    background-color: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.upload-area svg {
    width: 40px;
    height: 40px;
    color: var(--text-tertiary);
}

.upload-area span {
    font-size: 14px;
    color: var(--text-secondary);
}

.upload-area:hover {
    border-color: var(--accent-primary);
    background: rgba(201, 169, 98, 0.05);
}

.upload-preview {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.upload-preview img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
}

.remove-photo-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-photo-btn svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.remove-photo-btn:hover {
    background: rgba(239, 68, 68, 0.9);
}

/* Project Select Modal */
.project-select-modal {
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.project-select-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.project-select-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.close-modal-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal-btn svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.close-modal-btn:hover {
    background: var(--bg-card-hover);
}

.project-list-modal {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-list-modal .project-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s;
}

.project-list-modal .project-option:hover {
    background: var(--bg-card-hover);
}

.project-list-modal .project-option.selected {
    background: rgba(201, 169, 98, 0.15);
    border: 1px solid var(--accent-primary);
}

.project-list-modal .project-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-list-modal .project-icon svg {
    width: 20px;
    height: 20px;
    color: #000;
}

.project-list-modal .project-details {
    flex: 1;
}

.project-list-modal .project-details h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.project-list-modal .project-details span {
    font-size: 12px;
    color: var(--text-tertiary);
}

.project-list-modal .check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-green);
    display: none;
    align-items: center;
    justify-content: center;
}

.project-list-modal .project-option.selected .check-icon {
    display: flex;
}

.project-list-modal .check-icon svg {
    width: 14px;
    height: 14px;
    color: #fff;
}

/* Opcao especial: Antes desse app */
.project-list-modal .project-option.special-option {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
    border: 1px dashed rgba(139, 92, 246, 0.4);
}

.project-list-modal .project-option.special-option:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(59, 130, 246, 0.25));
}

.project-list-modal .project-option.special-option.selected {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
    border: 1px solid rgba(139, 92, 246, 0.6);
}

.project-list-modal .project-icon.before-app {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
}

/* Separador de projetos */
.project-separator {
    display: flex;
    align-items: center;
    margin: 8px 0;
    gap: 12px;
}

.project-separator::before,
.project-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.project-separator span {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.post-text-input {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    font-size: 16px;
    color: var(--text-primary);
    min-height: 120px;
    resize: none;
    outline: none;
    font-family: inherit;
}

.post-text-input::placeholder {
    color: var(--text-tertiary);
}

.project-selector label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Comments */
.comments-content {
    padding-bottom: 80px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment {
    display: flex;
    gap: 12px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #000;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 12px;
}

.comment-user {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.comment-body p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.comment-time {
    font-size: 11px;
    color: var(--text-tertiary);
}

.comment-input-area {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    padding-bottom: 30px;
}

.comment-input-area input {
    flex: 1;
    background-color: var(--bg-secondary);
    border: none;
    border-radius: 20px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
}

.send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.send-btn svg {
    width: 20px;
    height: 20px;
    color: #000;
}

/* Modal Overlay Base */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    pointer-events: none;
}

.modal-overlay.active {
    display: flex;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
}

/* Comments Empty State */
.comments-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.comments-empty p {
    margin: 4px 0;
    color: var(--text-tertiary);
    font-size: 14px;
}

.comments-empty p:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Post Menu Button */
.post-menu-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.post-menu-btn:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.post-menu-btn svg {
    width: 18px;
    height: 18px;
    color: #ef4444;
}

/* Post View Comments Button */
.post-view-comments {
    background: none;
    border: none;
    font-size: 13px;
    color: var(--text-tertiary);
    padding: 0 16px;
    cursor: pointer;
    text-align: left;
    margin-bottom: 4px;
}

.post-view-comments:hover {
    color: var(--text-secondary);
}

/* Delete Post Modal */
.delete-post-modal {
    max-width: 320px;
    text-align: center;
    padding: 32px 24px;
}

.delete-post-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.delete-post-icon svg {
    width: 32px;
    height: 32px;
    color: #ef4444;
}

.delete-post-modal h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.delete-post-modal p {
    font-size: 14px;
    color: var(--text-tertiary);
    margin: 0 0 24px;
}

.delete-post-actions {
    display: flex;
    gap: 12px;
}

.delete-post-actions .btn-cancel {
    flex: 1;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.delete-post-actions .btn-cancel:hover {
    background: var(--bg-card);
}

.delete-post-actions .btn-delete-confirm {
    flex: 1;
    padding: 12px;
    background: #ef4444;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.delete-post-actions .btn-delete-confirm:hover {
    background: #dc2626;
}

/* Hours Screen - Simplified */
.hours-summary-simple {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.15), rgba(201, 169, 98, 0.05));
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    text-align: center;
    margin-bottom: 24px;
}

.hours-total {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hours-big {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-primary);
}

.hours-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* User Role Badge */
.user-role-badge {
    background: linear-gradient(135deg, var(--accent-primary), #b8963e);
    color: #000;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Earnings Summary Card */
.earnings-summary-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.earnings-main {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
}

.earnings-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.earnings-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-green);
}

.earnings-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.earnings-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.earnings-detail-row .detail-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.earnings-detail-row .detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Role Breakdown Card (when user changed roles during month) */
.role-breakdown-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(201, 169, 98, 0.3);
}

.role-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.role-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
}

.role-breakdown-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.role-breakdown-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.role-breakdown-details {
    font-size: 12px;
    color: var(--text-secondary);
}

.role-breakdown-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-green);
}

/* Full Roles Table */
.roles-table-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    margin-bottom: 16px;
}

.roles-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.role-table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.role-table-row.current {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.2), rgba(201, 169, 98, 0.1));
    border: 1px solid rgba(201, 169, 98, 0.4);
}

.role-table-row.current .role-table-name {
    color: var(--accent-primary) !important;
    font-weight: 600;
}

.role-table-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.role-table-rates {
    display: flex;
    gap: 16px;
    align-items: center;
}

.role-table-daily {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 70px;
    text-align: right;
}

.role-table-hourly {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 55px;
    text-align: right;
}

/* Hours Breakdown Card */
.hours-breakdown-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    margin-bottom: 16px;
}

.breakdown-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.breakdown-item {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.breakdown-item.overtime {
    border-left: 3px solid var(--accent-orange);
}

.breakdown-item.travel {
    border-left: 3px solid var(--accent-blue);
}

.breakdown-item.supplies {
    border-left: 3px solid var(--text-tertiary);
}

.breakdown-hours {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.breakdown-label {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* XP Summary Card */
.xp-summary-card {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.15), rgba(201, 169, 98, 0.05));
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    margin-bottom: 20px;
}

.xp-summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.xp-icon {
    font-size: 18px;
}

.xp-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.xp-summary-content {
    display: flex;
    justify-content: space-between;
}

.xp-stat {
    text-align: center;
    flex: 1;
}

.xp-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.xp-stat.earned .xp-stat-value {
    color: var(--accent-green);
}

.xp-stat.penalty .xp-stat-value {
    color: var(--accent-red);
}

.xp-stat.total .xp-stat-value {
    color: var(--accent-primary);
}

.xp-stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Project Earnings Card */
.project-earnings-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 12px;
}

.project-earnings-card.travel-mode {
    border-left: 3px solid var(--accent-blue);
}

.project-earnings-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.project-earnings-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.project-earnings-info .client-name {
    font-size: 12px;
    color: var(--text-secondary);
}

.project-earnings-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-green);
}

.project-hours-breakdown {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 12px;
}

.project-hour-item {
    flex: 1;
    text-align: center;
}

.project-hour-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.project-hour-label {
    display: block;
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.project-xp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-xp-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.project-xp-item.earned {
    color: var(--accent-green);
}

.project-xp-item.penalty {
    color: var(--accent-red);
}

.travel-mode-badge {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.hours-project-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hours-project-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 16px;
}

.hours-project-card.active-project {
    border-left: 3px solid var(--accent-green);
}

.hours-project-card.completed-project {
    border-left: 3px solid var(--text-tertiary);
    opacity: 0.8;
}

.project-hours-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.project-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.project-status-dot.active {
    background-color: var(--accent-green);
}

.project-status-dot.completed {
    background-color: var(--text-tertiary);
}

.project-hours-header h3 {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.completed-badge {
    font-size: 11px;
    color: var(--text-tertiary);
    background-color: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 10px;
}

.project-hours-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}

.hours-stat {
    display: flex;
    flex-direction: column;
}

.hours-stat .hours-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-primary);
}

.hours-stat .hours-desc {
    font-size: 12px;
    color: var(--text-tertiary);
}

.hours-history-mini {
    display: flex;
    gap: 12px;
}

.history-item {
    font-size: 12px;
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 6px;
}

/* Period Selector */
.period-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.period-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.period-btn svg {
    width: 18px;
    height: 18px;
    color: var(--text-primary);
}

.period-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Report Screen */
.report-project,
.report-date {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 12px;
}

.report-project .label,
.report-date .label {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.report-project .project,
.report-date .date {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.audio-section {
    margin-bottom: 24px;
}

.audio-hint {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.audio-recorder {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.audio-waves {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 40px;
}

.wave {
    width: 4px;
    height: 20px;
    background-color: var(--text-tertiary);
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.audio-recorder.recording .wave {
    background-color: var(--accent-red);
}

.wave:nth-child(1) { animation-delay: 0s; height: 15px; }
.wave:nth-child(2) { animation-delay: 0.1s; height: 25px; }
.wave:nth-child(3) { animation-delay: 0.2s; height: 35px; }
.wave:nth-child(4) { animation-delay: 0.3s; height: 25px; }
.wave:nth-child(5) { animation-delay: 0.4s; height: 15px; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

.record-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-red), #dc2626);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.record-btn:hover {
    transform: scale(1.05);
}

.record-btn svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.record-time {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: monospace;
}

.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tag-item {
    padding: 10px 14px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.tag-item:hover,
.tag-item.selected {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.photo-add,
.photo-placeholder {
    aspect-ratio: 1;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.photo-add {
    border: 2px dashed var(--border-color);
}

.photo-add svg {
    width: 24px;
    height: 24px;
    color: var(--text-tertiary);
}

.photo-add span {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* Record Status */
.record-status {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Audio Playback */
.audio-playback {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-top: 12px;
}

.audio-playback-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-playback-info svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.audio-playback-info span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: monospace;
}

.audio-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.audio-play-btn:hover {
    transform: scale(1.05);
}

.audio-play-btn svg {
    width: 20px;
    height: 20px;
    color: #000;
}

.audio-delete-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(239, 68, 68, 0.15);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.audio-delete-btn:hover {
    background-color: rgba(239, 68, 68, 0.25);
}

.audio-delete-btn svg {
    width: 18px;
    height: 18px;
    color: var(--accent-red);
}

/* Tag Input */
.tag-input-wrapper {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-bottom: 8px;
}

.tag-input {
    flex: 1;
    padding: 10px 14px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.tag-input:focus {
    border-color: var(--accent-primary);
}

.tag-input::placeholder {
    color: var(--text-tertiary);
}

.tag-add-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.tag-add-btn:hover {
    transform: scale(1.05);
}

.tag-add-btn svg {
    width: 18px;
    height: 18px;
    color: #000;
}

/* Custom Tag with Remove Button */
.tag-item.custom-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 8px;
}

.tag-remove {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s;
}

.tag-remove:hover {
    background-color: rgba(239, 68, 68, 0.3);
}

.tag-remove svg {
    width: 12px;
    height: 12px;
    color: currentColor;
}

/* Report Notes Textarea */
.report-notes {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 24px;
}

.report-notes:focus {
    border-color: var(--accent-primary);
}

.report-notes::placeholder {
    color: var(--text-tertiary);
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.media-add {
    aspect-ratio: 1;
    background-color: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.media-add:hover {
    border-color: var(--accent-primary);
}

.media-add svg {
    width: 24px;
    height: 24px;
    color: var(--text-tertiary);
}

.media-add span {
    font-size: 11px;
    color: var(--text-tertiary);
}

.media-item {
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.media-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-video-badge svg {
    width: 16px;
    height: 16px;
    color: #fff;
    margin-left: 2px;
}

.media-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.media-remove:hover {
    background-color: rgba(239, 68, 68, 0.9);
}

.media-remove svg {
    width: 14px;
    height: 14px;
    color: #fff;
}

/* Loading Spinner Small */
.loading-spinner-small {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Submit Button with Icon */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Select Box */
.select-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.select-box span {
    font-size: 14px;
    color: var(--text-primary);
}

.select-box svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

/* Learn Screen */
.user-level-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.15), rgba(201, 169, 98, 0.05));
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

.level-avatar {
    position: relative;
}

.avatar-ring {
    width: 70px;
    height: 70px;
    position: relative;
}

.circular-progress {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: var(--bg-secondary);
    stroke-width: 3;
}

.circle-progress {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 3;
    stroke-linecap: round;
}

.avatar-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: #000;
}

.level-details {
    flex: 1;
}

.user-level {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 2px;
}

.user-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.xp-info span {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
}

.xp-needed {
    font-size: 11px !important;
    color: var(--text-tertiary) !important;
}

.achievements-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.achievement {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 72px;
}

.achievement-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement.unlocked .achievement-icon {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.achievement.unlocked .achievement-icon svg {
    width: 24px;
    height: 24px;
    color: #000;
}

.achievement.locked .achievement-icon {
    background-color: var(--bg-card);
    border: 2px dashed var(--border-color);
}

.achievement.locked .achievement-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-tertiary);
}

.achievement span {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
}

.achievement.locked span {
    color: var(--text-tertiary);
}

.learning-paths {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.path-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 16px;
}

.path-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.path-icon svg {
    width: 24px;
    height: 24px;
}

.path-icon.stelion {
    background-color: rgba(201, 169, 98, 0.15);
    color: var(--accent-primary);
}

.path-icon.safety {
    background-color: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.path-icon.tools {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.path-info {
    flex: 1;
}

.path-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.path-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.path-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.path-bar {
    flex: 1;
    height: 4px;
    background-color: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
}

.path-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

.path-progress span {
    font-size: 11px;
    color: var(--text-secondary);
}

.path-xp {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
}

.path-xp.completed {
    color: var(--accent-green);
}

.challenge-card {
    display: flex;
    gap: 16px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.05));
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 20px;
}

.challenge-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-orange), #ea580c);
    display: flex;
    align-items: center;
    justify-content: center;
}

.challenge-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.challenge-info {
    flex: 1;
}

.challenge-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.challenge-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.challenge-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.check-days {
    display: flex;
    gap: 6px;
}

.day {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
}

.day.checked {
    background-color: var(--accent-green);
    color: #fff;
}

.challenge-reward {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-orange);
}

/* Profile Screen */
.profile-role-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0 10px;
}

.profile-character-icon {
    width: 28px;
    height: auto;
    margin-right: 6px;
    flex-shrink: 0;
}

.profile-character-icon .character-icon-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.profile-role-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Spacer para balancear o ícone e centralizar o texto */
.profile-role-badge::after {
    content: '';
    width: 34px;
    flex-shrink: 0;
}

.profile-header {
    text-align: center;
    padding: 16px 0 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.profile-avatar-large {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    color: #000;
    margin: 0 auto 12px;
    overflow: hidden;
}

.profile-avatar-large .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.profile-username {
    display: block;
    font-size: 13px;
    color: var(--accent-primary);
    margin-bottom: 2px;
}

.profile-role {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Profile Name Container (name + verification badge) */
.profile-name-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}

.profile-name-container h2 {
    margin-bottom: 0;
}

/* Verified Badge (like Instagram) */
.profile-verified-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    animation: badge-pulse 2s ease-in-out infinite;
}

.profile-verified-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Badges Section */
.profile-badges-section {
    margin-top: 12px;
    padding: 12px;
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
}

.badges-section-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.badges-section-header svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

.badges-section-header span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.badges-count {
    margin-left: auto;
    background: var(--accent-primary);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Badges Empty State */
.badges-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    text-align: center;
    grid-column: 1 / -1;
}

.badges-empty svg {
    width: 40px;
    height: 40px;
    color: var(--text-tertiary);
    margin-bottom: 10px;
    opacity: 0.5;
}

.badges-empty span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.badges-empty small {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Badges Grid */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.badge-item:active {
    transform: scale(0.95);
}

.badge-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 169, 98, 0.1);
    position: relative;
}

.badge-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Badge Rarity Glow Effects */
.badge-item.rarity-common .badge-icon {
    background: rgba(136, 136, 136, 0.1);
}

.badge-item.rarity-rare .badge-icon {
    background: rgba(59, 130, 246, 0.15);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.badge-item.rarity-epic .badge-icon {
    background: rgba(168, 85, 247, 0.15);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
}

.badge-item.rarity-legendary .badge-icon {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.2), rgba(255, 215, 0, 0.2));
    box-shadow: 0 0 20px rgba(201, 169, 98, 0.5);
    animation: legendary-glow 2s ease-in-out infinite;
}

@keyframes legendary-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(201, 169, 98, 0.5); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.7); }
}

.badge-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Primary badge indicator */
.badge-item.is-primary {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.1), transparent);
}

.badge-item.is-primary::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    background: var(--accent-primary);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

.badge-item {
    position: relative;
}

/* Badge primary indicator text */
.badge-primary-indicator {
    font-size: 9px;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Empty state for no badges */
.badges-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    color: var(--text-secondary);
    text-align: center;
}

.badges-empty svg {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.badges-empty p {
    font-size: 14px;
    margin: 0;
}

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: var(--bg-card-hover);
}

.menu-item svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.menu-item span {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.menu-item .chevron {
    width: 16px;
    height: 16px;
    color: var(--text-tertiary);
}

.menu-item.logout svg,
.menu-item.logout span {
    color: var(--accent-red);
}

.app-version {
    text-align: center;
    padding: 16px;
}

.app-version span {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* Bottom Navigation */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 10px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 12px;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    color: var(--text-tertiary);
    transition: color 0.2s;
}

.nav-item span {
    font-size: 10px;
    color: var(--text-tertiary);
    transition: color 0.2s;
}

.nav-item.active svg,
.nav-item.active span {
    color: var(--accent-primary);
}

/* Modals */
.modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    z-index: 200;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-xl);
    padding: 40px 30px;
    text-align: center;
    width: 100%;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.modal-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Publishing Modal (Instagram style) */
.publishing-modal {
    background-color: rgba(0, 0, 0, 0.95);
}

.publishing-content {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.publishing-preview {
    width: 200px;
    height: 200px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.publishing-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publishing-preview.no-image {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.publishing-preview.no-image::after {
    content: '';
    width: 60px;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
}

.publishing-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.publishing-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.publishing-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    animation: publishingProgress 2s ease-in-out forwards;
}

@keyframes publishingProgress {
    0% { width: 0%; }
    20% { width: 30%; }
    50% { width: 60%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

.publishing-text {
    font-size: 14px;
    color: var(--text-secondary);
    animation: publishingPulse 1.5s ease-in-out infinite;
}

@keyframes publishingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Leaving Modal */
.leaving-modal-content {
    padding: 20px 16px;
}

.leaving-modal-content h2 {
    font-size: 18px;
    margin-bottom: 6px;
}

.leaving-modal-content p {
    font-size: 13px;
    margin-bottom: 12px;
}

.leaving-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.leaving-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-orange);
}

.leaving-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.leaving-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.leaving-option:active {
    border-color: var(--accent-primary);
    background: rgba(201, 169, 98, 0.1);
    transform: scale(0.98);
}

.leaving-option svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.leaving-option span {
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Scrollbar */
.content::-webkit-scrollbar {
    width: 4px;
}

.content::-webkit-scrollbar-track {
    background: transparent;
}

.content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #888;
    gap: 12px;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #333;
    border-top-color: #c9a962;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    color: #ef4444;
    text-align: center;
    gap: 12px;
}

.error-state button {
    margin-top: 8px;
    padding: 8px 16px;
    background: #c9a962;
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Project Tags */
.project-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.project-tag {
    font-size: 10px;
    padding: 3px 8px;
    background: rgba(201, 169, 98, 0.2);
    color: #c9a962;
    border-radius: 4px;
}

.project-tag.equipe {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.project-tag.cor {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.screen.active {
    animation: fadeIn 0.3s ease;
}

/* =============================================
   PASSWORD INPUT WITH TOGGLE
   ============================================= */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    flex: 1;
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.password-toggle:hover svg {
    color: var(--text-primary);
}

/* =============================================
   REGISTRATION FLOW STYLES
   ============================================= */
.register-content {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Progress Steps */
.register-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    padding: 0 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.progress-step span {
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: var(--accent-primary);
    color: #000;
}

.progress-step.active span {
    color: var(--accent-primary);
}

.progress-step.completed .step-circle {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #fff;
}

.progress-step.completed .step-circle svg {
    width: 16px;
    height: 16px;
}

.progress-step.completed span {
    color: var(--accent-green);
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    margin: 0 8px;
    margin-bottom: 20px;
}

.progress-line.completed {
    background: var(--accent-green);
}

/* Register Form */
.register-form {
    flex: 1;
}

.register-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.register-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.register-buttons {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
}

.register-buttons .btn-secondary {
    flex: 1;
}

.register-buttons .btn-primary {
    flex: 2;
}

/* Document Upload Area */
.document-form {
    display: flex;
    flex-direction: column;
}

.document-upload-area {
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 24px;
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-upload-area:hover {
    border-color: var(--accent-primary);
    background: rgba(201, 169, 98, 0.05);
}

.document-upload-area.has-image {
    border-style: solid;
    border-color: var(--accent-green);
    padding: 0;
    overflow: hidden;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--text-tertiary);
}

.upload-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.upload-hint {
    font-size: 12px;
    color: var(--text-tertiary);
}

#documentPreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.upload-success {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(34, 197, 94, 0.9));
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-weight: 500;
}

.upload-success svg {
    width: 20px;
    height: 20px;
}

/* Document Tips */
.document-tips {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 16px;
}

.document-tips h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.document-tips ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.document-tips li {
    font-size: 12px;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}

.document-tips li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-primary);
}

/* Profile Photo Upload (Large) */
.profile-photo-upload-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 32px 0;
}

.photo-circle-large {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
}

.photo-circle-large:hover {
    border-color: var(--accent-primary);
}

.photo-circle-large svg {
    width: 60px;
    height: 60px;
    color: var(--text-tertiary);
}

#profilePhotoPreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.photo-overlay-large {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 12px;
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.photo-circle-large:hover .photo-overlay-large {
    opacity: 1;
}

.photo-overlay-large svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

/* Photo Options */
.photo-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.photo-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.photo-option-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

.photo-option-btn svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

/* =============================================
   PENDING APPROVAL SCREEN
   ============================================= */
.pending-approval-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}

.pending-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.pending-icon svg {
    width: 50px;
    height: 50px;
    color: var(--accent-orange);
}

.pending-approval-container h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.pending-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 32px;
    max-width: 280px;
}

.pending-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 280px;
    margin-bottom: 24px;
}

.pending-info .info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
}

.pending-info .info-item svg {
    width: 20px;
    height: 20px;
    color: var(--accent-green);
    flex-shrink: 0;
}

.pending-info .info-item span {
    font-size: 13px;
    color: var(--text-primary);
}

.pending-status {
    margin-bottom: 24px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 50px;
}

.status-badge.pending {
    color: var(--accent-orange);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-orange);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.status-badge span {
    font-size: 13px;
    font-weight: 500;
}

.pending-note {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin-bottom: 32px;
    max-width: 260px;
}

/* Button Secondary */
.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--text-tertiary);
}

/* =============================================
   EMPTY STATES
   ============================================= */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}

.empty-state .empty-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.empty-state .empty-icon svg {
    width: 40px;
    height: 40px;
    color: var(--text-tertiary);
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.btn-primary-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: var(--border-radius);
    color: #000;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary-small svg {
    width: 16px;
    height: 16px;
}

.btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 98, 0.3);
}

.empty-state-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px dashed var(--border-color);
}

.empty-state-small svg {
    width: 48px;
    height: 48px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.empty-state-small p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.empty-state-small span {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* =============================================
   COMING SOON - LEARN SCREEN
   ============================================= */
.coming-soon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    flex: 1;
}

.coming-soon-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.coming-soon-icon svg {
    width: 50px;
    height: 50px;
    color: #000;
}

.coming-soon-container h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.coming-soon-subtitle {
    font-size: 16px;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 32px;
}

.coming-soon-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    width: 100%;
    max-width: 280px;
}

.coming-soon-features .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.coming-soon-features .feature-item svg {
    width: 20px;
    height: 20px;
    color: var(--accent-green);
    flex-shrink: 0;
}

.coming-soon-features .feature-item span {
    font-size: 14px;
    color: var(--text-primary);
}

.coming-soon-note {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 280px;
}

/* =============================================
   EDIT PROFILE SCREEN
   ============================================= */
.edit-photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    margin-bottom: 16px;
}

.edit-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 16px;
    overflow: hidden;
}

.edit-avatar .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.change-photo-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.change-photo-btn svg {
    width: 18px;
    height: 18px;
}

.change-photo-btn:hover {
    background: var(--bg-card);
    border-color: var(--text-tertiary);
}

.edit-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 20px;
}

.edit-form .input-group input:disabled {
    background: var(--bg-card);
    color: var(--text-tertiary);
    cursor: not-allowed;
}

/* =============================================
   LOCATION DENIED BANNER
   ============================================= */
.location-denied-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.1));
    border-bottom: 1px solid rgba(249, 115, 22, 0.3);
    padding: 12px 16px;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.location-denied-banner .banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 375px;
    margin: 0 auto;
}

.location-denied-banner span {
    color: #f97316;
    font-size: 13px;
    font-weight: 500;
}

/* =============================================
   NETWORK STATUS BANNER
   ============================================= */
.network-status-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.1));
    border-bottom: 1px solid rgba(239, 68, 68, 0.3);
    padding: 12px 16px;
    z-index: 1001;
    animation: slideDown 0.3s ease;
}

.network-status-banner .banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 375px;
    margin: 0 auto;
}

.network-status-banner span {
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
}

/* =============================================
   GPS OFF ALERT BANNER (Persistent during check-in)
   ============================================= */
.gps-off-alert-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    padding: 16px;
    z-index: 1002;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.gps-off-alert-banner.pulse-alert {
    animation: slideDown 0.3s ease, gpsAlertPulse 2s infinite;
}

@keyframes gpsAlertPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(239, 68, 68, 0.8);
    }
}

.gps-alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 375px;
    margin: 0 auto;
}

.gps-alert-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gps-alert-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.gps-alert-text {
    flex: 1;
}

.gps-alert-text strong {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.gps-alert-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    margin: 0;
}

.gps-alert-button {
    background: #fff;
    color: #dc2626;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.gps-alert-button:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.9);
}

/* =============================================
   LUNCH REMINDER MODAL STYLES
   ============================================= */

/* Lunch Modal */
.lunch-modal {
    text-align: center;
    padding: 32px 24px;
}

.lunch-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-lunch 2s ease-in-out infinite;
}

.lunch-icon svg {
    width: 36px;
    height: 36px;
    stroke: #000;
}

@keyframes pulse-lunch {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(201, 169, 98, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px 10px rgba(201, 169, 98, 0.1); }
}

.lunch-title {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.lunch-message {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.lunch-time {
    color: var(--accent-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
}

.lunch-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-lunch-break {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #000;
    border: none;
    padding: 16px 24px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

.btn-lunch-later {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 14px 24px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-lunch-later:active {
    background: var(--bg-card-hover);
}

/* Leaving Area Modal */
.leaving-modal {
    text-align: center;
    padding: 28px 20px;
}

.leaving-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(249, 115, 22, 0.15);
    border: 2px solid rgba(249, 115, 22, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaving-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-orange);
}

.leaving-title {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.leaving-message {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.leaving-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.btn-leaving-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    padding: 16px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-leaving-option:active {
    transform: scale(0.98);
    border-color: var(--accent-primary);
    background: rgba(201, 169, 98, 0.1);
}

.option-icon {
    font-size: 24px;
}

.option-text {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

.btn-leaving-cancel {
    width: 100%;
    background: transparent;
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 14px 24px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-leaving-cancel:active {
    background: rgba(34, 197, 94, 0.1);
}

/* =====================================================
   NEARBY PROJECTS SECTION
   ===================================================== */

.nearby-projects-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.nearby-projects-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nearby-project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 16px;
}

.nearby-project-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.nearby-project-pin {
    width: 36px;
    height: 36px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nearby-project-pin svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-blue);
}

.nearby-project-info {
    flex: 1;
}

.nearby-project-name {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.nearby-project-client {
    color: var(--text-secondary);
    font-size: 13px;
}

.nearby-project-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    color: var(--text-secondary);
    font-size: 12px;
}

.nearby-project-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nearby-project-distance {
    color: var(--accent-blue);
    font-weight: 500;
}

/* Additional nearby project card styles for rendered HTML */
.nearby-project-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.nearby-project-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.nearby-project-name {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    flex: 1;
}

/* Phase badge for nearby projects */
.nearby-phase-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    margin-left: auto;
}

.nearby-phase-badge.preparo {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

.nearby-phase-badge.aplicacao {
    background: rgba(201, 169, 98, 0.2);
    color: var(--accent-primary);
}

.nearby-phase-badge.acabamento {
    background: rgba(34, 197, 94, 0.2);
    color: var(--accent-green);
}

/* Current task display in nearby projects */
.nearby-current-task {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(201, 169, 98, 0.08);
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid var(--accent-primary);
}

.nearby-current-task .task-label {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.nearby-current-task .task-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nearby-project-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--text-secondary);
}

.nearby-project-separator {
    color: var(--text-tertiary);
}

.nearby-project-m2 {
    color: var(--text-secondary);
}

.nearby-project-team {
    color: var(--text-secondary);
}

.btn-contribute {
    width: 100%;
    background: rgba(201, 169, 98, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(201, 169, 98, 0.3);
    padding: 12px 16px;
    border-radius: var(--border-radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-contribute:active {
    background: rgba(201, 169, 98, 0.25);
    transform: scale(0.98);
}

.btn-contribute svg {
    width: 16px;
    height: 16px;
}

.btn-load-more {
    width: 100%;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px dashed var(--border-color);
    padding: 14px 16px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.btn-load-more:active {
    background: var(--bg-card-hover);
}

.btn-load-more svg {
    width: 18px;
    height: 18px;
}

/* No nearby projects message */
.no-nearby-projects {
    text-align: center;
    padding: 24px 16px;
    color: var(--text-secondary);
}

.no-nearby-projects svg {
    width: 48px;
    height: 48px;
    stroke: var(--text-tertiary);
    margin-bottom: 12px;
}

.no-nearby-projects p {
    font-size: 13px;
    line-height: 1.5;
}

/* =====================================================
   CONTRIBUTION MODAL
   ===================================================== */

.contribution-modal {
    text-align: center;
    padding: 28px 20px;
    color: var(--text-primary);
}

.contribution-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(201, 169, 98, 0.15);
    border: 2px solid rgba(201, 169, 98, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contribution-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-primary);
}

.contribution-title {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contribution-project-name {
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.contribution-modal .input-group {
    text-align: left;
    margin-bottom: 20px;
}

.contribution-modal .input-group label {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 8px;
    display: block;
}

.contribution-modal textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: none;
}

.contribution-modal textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.contribution-modal textarea::placeholder {
    color: var(--text-tertiary);
}

.contribution-buttons {
    display: flex;
    gap: 12px;
}

.contribution-buttons .btn-secondary,
.contribution-buttons .btn-primary {
    flex: 1;
}

/* Contribution Success Modal */
.contribution-success-modal {
    text-align: center;
    padding: 32px 24px;
    color: var(--text-primary);
}

.contribution-success-modal .success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contribution-success-modal .success-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--accent-green);
}

.contribution-success-modal h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.contribution-success-modal p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.contribution-success-modal .btn-primary {
    width: 100%;
}

/* =============================================
   NEARBY PROJECTS BUTTON
   ============================================= */

.btn-nearby-projects {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    margin-top: 16px;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.15) 0%, rgba(201, 169, 98, 0.05) 100%);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: var(--border-radius);
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-nearby-projects:hover {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.25) 0%, rgba(201, 169, 98, 0.1) 100%);
    border-color: rgba(201, 169, 98, 0.5);
}

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

.btn-nearby-projects svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-nearby-projects svg:first-child {
    margin-right: 12px;
}

.btn-nearby-projects .arrow-icon {
    margin-left: auto;
}

.btn-nearby-projects span {
    flex: 1;
    text-align: left;
}

/* =============================================
   ABSENCE NOTICE BUTTON
   ============================================= */

.btn-absence-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    margin-top: 12px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--border-radius);
    color: var(--accent-red);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-absence-notice:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.1) 100%);
    border-color: rgba(239, 68, 68, 0.5);
}

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

.btn-absence-notice svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-absence-notice svg:first-child {
    margin-right: 12px;
}

.btn-absence-notice .arrow-icon {
    margin-left: auto;
}

.btn-absence-notice span {
    flex: 1;
    text-align: left;
}

/* =============================================
   ABSENCE MODAL STYLES
   ============================================= */

.absence-modal {
    max-width: 340px;
    max-height: 85vh;
    overflow-y: auto;
}

.absence-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.absence-modal .modal-header h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.absence-modal .modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
}

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

.absence-modal-body {
    padding: 20px;
}

.absence-info {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.absence-dates-container {
    margin-bottom: 20px;
}

.absence-dates-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.absence-date-btn {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.absence-date-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

.absence-date-btn.selected {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #000;
}

.absence-date-btn .day-name {
    font-weight: 600;
}

.btn-load-more-dates {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-load-more-dates:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-load-more-dates svg {
    width: 16px;
    height: 16px;
}

.absence-reason-container {
    margin-bottom: 16px;
}

.absence-reason-container label {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.absence-reason-container textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: none;
}

.absence-reason-container textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.absence-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: var(--accent-red);
    font-size: 13px;
}

.absence-warning svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.absence-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.absence-modal-footer .btn-cancel {
    flex: 1;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.absence-modal-footer .btn-cancel:hover {
    background: var(--bg-card-hover);
}

.absence-modal-footer .btn-confirm {
    flex: 1;
    padding: 12px;
    background: var(--accent-red);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.absence-modal-footer .btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.absence-modal-footer .btn-confirm:not(:disabled):hover {
    opacity: 0.9;
}

/* Absence Inquiry Modal */
.absence-inquiry-modal {
    max-width: 320px;
    text-align: center;
}

.absence-inquiry-modal .modal-header {
    padding: 20px;
    border-bottom: none;
}

.absence-inquiry-modal .modal-header h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.absence-inquiry-body {
    padding: 0 20px 24px;
}

.absence-inquiry-body p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.absence-inquiry-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.absence-inquiry-buttons .btn-yes,
.absence-inquiry-buttons .btn-no {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.absence-inquiry-buttons .btn-yes {
    background: var(--accent-red);
    border: none;
    color: #fff;
}

.absence-inquiry-buttons .btn-yes:hover {
    opacity: 0.9;
}

.absence-inquiry-buttons .btn-no {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.absence-inquiry-buttons .btn-no:hover {
    background: var(--bg-card-hover);
}

.absence-inquiry-buttons svg {
    width: 18px;
    height: 18px;
}

/* Absence Reason Modal */
.absence-reason-modal {
    max-width: 320px;
}

.absence-reason-modal .modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.absence-reason-modal .modal-header h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.absence-reason-body {
    padding: 20px;
}

.absence-reason-body textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: none;
}

.absence-reason-body textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.loading-spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

/* =============================================
   FULL SCREEN MODAL (Nearby Projects)
   ============================================= */

.modal-fullscreen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 1000;
    display: none;
    flex-direction: column;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-fullscreen.active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

.modal-fullscreen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    padding-top: 60px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.modal-fullscreen-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    text-align: center;
}

.modal-fullscreen-header .btn-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-fullscreen-header .btn-back:hover {
    background: var(--bg-tertiary);
}

.modal-fullscreen-header .btn-back svg {
    width: 24px;
    height: 24px;
}

.modal-fullscreen-header .header-spacer {
    width: 40px;
}

.modal-fullscreen-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Nearby Projects List in Modal */
.nearby-projects-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nearby-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    gap: 16px;
}

.nearby-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.nearby-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

/* Load More Button */
.btn-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    margin-top: 16px;
    background: var(--bg-secondary);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-load-more:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-load-more svg {
    width: 18px;
    height: 18px;
}

/* Contribution Notification Modal */
.contribution-notification-modal {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    padding: 40px 32px;
    max-width: 320px;
    text-align: center;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contribution-notification-modal .notification-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.contribution-notification-modal .notification-icon.approved {
    background: rgba(34, 197, 94, 0.15);
}

.contribution-notification-modal .notification-icon.rejected {
    background: rgba(239, 68, 68, 0.15);
}

.contribution-notification-modal .notification-icon svg {
    width: 40px;
    height: 40px;
}

.contribution-notification-modal .notification-icon.approved svg {
    color: var(--accent-green);
}

.contribution-notification-modal .notification-icon.rejected svg {
    color: var(--accent-red);
}

.contribution-notification-modal h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.contribution-notification-modal.approved h3 {
    color: var(--accent-green);
}

.contribution-notification-modal.rejected h3 {
    color: var(--accent-red);
}

.contribution-notification-modal p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 8px;
}

.contribution-notification-modal .project-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-primary);
    margin: 0 0 24px;
    padding: 12px 16px;
    background: rgba(201, 169, 98, 0.1);
    border-radius: var(--border-radius);
}

.contribution-notification-modal .notification-subtitle {
    font-size: 13px;
    color: var(--text-tertiary);
    margin: 0 0 24px;
}

.contribution-notification-modal button {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.contribution-notification-modal.approved button {
    background: var(--accent-green);
    color: #fff;
}

.contribution-notification-modal.approved button:hover {
    background: #16a34a;
}

.contribution-notification-modal.rejected button {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.contribution-notification-modal.rejected button:hover {
    background: var(--bg-tertiary);
}

/* ============================
   Request Help/Material System
   ============================ */

/* Black Request Button with Siren */
.btn-request-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: var(--border-radius);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
}

.btn-request-help:hover {
    background: #222;
    border-color: #444;
    transform: translateY(-1px);
}

.btn-request-help:active {
    transform: translateY(0);
}

.btn-request-help .siren-emoji {
    font-size: 18px;
}

/* Modal Screen (Full page screens that slide in) */
.modal-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 1001;
    display: none;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.modal-screen.active {
    display: flex;
    transform: translateX(0);
}

/* Video Preview Container */
.video-preview-container {
    position: relative;
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
}

.video-preview-container video {
    width: 100%;
    display: block;
}

/* Material Select Dropdown */
.material-select {
    width: 100%;
    padding: 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'NITECLUB', sans-serif;
    font-size: 18px; /* 20% larger than 15px */
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
}

.material-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.material-select option {
    background-color: var(--bg-card);
    color: var(--text-primary);
    padding: 12px;
}

/* Request Type Selection Modal */
.request-type-modal {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    padding: 32px 24px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease-out;
}

.request-type-modal h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.request-type-modal p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 24px;
}

.request-type-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.request-type-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.request-type-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
}

.request-type-btn .type-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.request-type-btn .type-icon.material {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.request-type-btn .type-icon.help {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.request-type-btn .type-icon svg {
    width: 24px;
    height: 24px;
}

.request-type-btn .type-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.request-type-btn .type-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.request-type-cancel {
    margin-top: 16px;
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

.request-type-cancel:hover {
    color: var(--text-primary);
}

/* Full Screen Request Modal */
.request-full-modal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 1100;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.request-full-modal.active {
    display: flex;
}

.request-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.request-modal-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.request-modal-header h3 svg {
    width: 20px;
    height: 20px;
}

.request-modal-header h3.material svg {
    color: #f59e0b;
}

.request-modal-header h3.help svg {
    color: #ef4444;
}

.btn-close-request {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-close-request:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

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

.request-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Request Form */
.request-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.request-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.request-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.request-form-group input,
.request-form-group textarea,
.request-form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}

.request-form-group input:focus,
.request-form-group textarea:focus,
.request-form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.request-form-group textarea {
    resize: none;
    min-height: 100px;
}

.request-form-group input::placeholder,
.request-form-group textarea::placeholder {
    color: var(--text-tertiary);
}

/* Audio Recorder */
.audio-recorder {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
}

.audio-recorder-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: block;
}

.audio-recorder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.btn-record {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-record:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.btn-record.recording {
    animation: pulse-record 1.5s infinite;
}

@keyframes pulse-record {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(220, 38, 38, 0);
    }
}

.btn-record svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.recording-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.recording-status.active {
    color: #ef4444;
}

.recording-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.recording-timer {
    font-family: 'SF Mono', monospace;
    font-size: 15px;
}

.audio-preview {
    width: 100%;
    margin-top: 12px;
    display: none;
}

.audio-preview.active {
    display: block;
}

.audio-preview audio {
    width: 100%;
    height: 40px;
}

.transcription-preview {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    display: none;
}

.transcription-preview.active {
    display: block;
}

.transcription-preview label {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}

.transcription-preview p {
    font-size: 14px;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
}

/* Video Capture */
.video-capture {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
}

.video-capture-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: block;
}

.video-capture-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: block;
}

.video-capture-options {
    display: flex;
    gap: 12px;
}

.btn-video-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-video-option:hover {
    background: var(--bg-card);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-video-option svg {
    width: 28px;
    height: 28px;
}

.btn-video-option span {
    font-size: 13px;
    font-weight: 500;
}

.video-preview {
    margin-top: 16px;
    display: none;
}

.video-preview.active {
    display: block;
}

.video-preview video {
    width: 100%;
    border-radius: var(--border-radius);
    background: #000;
}

.video-preview-actions {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.btn-remove-video {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    border-radius: var(--border-radius-sm);
    color: #ef4444;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove-video:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-remove-video svg {
    width: 16px;
    height: 16px;
}

/* Request Modal Footer */
.request-modal-footer {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.btn-submit-request {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #b8983d 100%);
    border: none;
    border-radius: var(--border-radius);
    color: #000;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit-request:hover {
    background: linear-gradient(135deg, #d4b46d 0%, var(--accent-primary) 100%);
    transform: translateY(-1px);
}

.btn-submit-request:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-submit-request svg {
    width: 18px;
    height: 18px;
}

/* Request Success Modal */
.request-success-modal {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    padding: 40px 32px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease-out;
}

.request-success-modal .success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.request-success-modal .success-icon svg {
    width: 40px;
    height: 40px;
    color: var(--accent-green);
}

.request-success-modal h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-green);
    margin: 0 0 12px;
}

.request-success-modal p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 24px;
    line-height: 1.5;
}

.request-success-modal button {
    width: 100%;
    padding: 14px 24px;
    background: var(--accent-green);
    border: none;
    border-radius: var(--border-radius);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.request-success-modal button:hover {
    background: #16a34a;
}

/* =============================================
   EVOLUTION NOTIFICATION - Pokemon Style
   ============================================= */
.evolution-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 32px; /* Match phone-frame inner radius */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.evolution-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.evolution-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(-20px);
    animation: evolutionTitleIn 0.8s ease forwards;
    animation-delay: 0.3s;
}

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

.evolution-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glow effect behind the character */
.evolution-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.6) 0%, rgba(201, 169, 98, 0) 70%);
    animation: evolutionGlow 2s ease-in-out infinite;
}

@keyframes evolutionGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Sparkles around the evolution */
.evolution-sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
}

.evolution-sparkle:nth-child(1) { top: 10%; left: 50%; animation: sparkle 1.5s ease-in-out infinite 0s; }
.evolution-sparkle:nth-child(2) { top: 30%; left: 10%; animation: sparkle 1.5s ease-in-out infinite 0.2s; }
.evolution-sparkle:nth-child(3) { top: 30%; right: 10%; animation: sparkle 1.5s ease-in-out infinite 0.4s; }
.evolution-sparkle:nth-child(4) { top: 70%; left: 10%; animation: sparkle 1.5s ease-in-out infinite 0.6s; }
.evolution-sparkle:nth-child(5) { top: 70%; right: 10%; animation: sparkle 1.5s ease-in-out infinite 0.8s; }
.evolution-sparkle:nth-child(6) { bottom: 10%; left: 50%; animation: sparkle 1.5s ease-in-out infinite 1s; }

@keyframes sparkle {
    0%, 100% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Character icons */
.evolution-icon {
    position: absolute;
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(201, 169, 98, 0.8));
}

.evolution-icon.old-icon {
    z-index: 2;
    animation: evolutionOldIcon 2.5s ease forwards;
    animation-delay: 1s;
}

.evolution-icon.new-icon {
    z-index: 1;
    opacity: 0;
    transform: scale(0.5);
    animation: evolutionNewIcon 2s ease forwards;
    animation-delay: 2.5s;
}

@keyframes evolutionOldIcon {
    0% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(201, 169, 98, 0.8));
    }
    30% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 40px rgba(201, 169, 98, 1));
    }
    50% {
        filter: brightness(2) drop-shadow(0 0 60px rgba(255, 255, 255, 1));
    }
    70% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes evolutionNewIcon {
    0% {
        transform: scale(0.5);
        opacity: 0;
        filter: brightness(3) drop-shadow(0 0 60px rgba(255, 255, 255, 1));
    }
    30% {
        opacity: 1;
        filter: brightness(2) drop-shadow(0 0 40px rgba(201, 169, 98, 1));
    }
    60% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(201, 169, 98, 0.8));
    }
}

/* Flash effect during transformation */
.evolution-flash {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: evolutionFlash 0.5s ease forwards;
    animation-delay: 2.3s;
}

@keyframes evolutionFlash {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(2);
    }
    100% {
        opacity: 0;
        transform: scale(3);
    }
}

/* Role label below the character */
.evolution-role-label {
    position: absolute;
    bottom: -60px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-primary);
    opacity: 0;
    animation: evolutionLabelIn 0.8s ease forwards;
    animation-delay: 3.5s;
}

/* Continue button */
.evolution-continue-btn {
    margin-top: 100px;
    padding: 16px 48px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 30px;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: evolutionBtnIn 0.8s ease forwards;
    animation-delay: 4s;
    transition: transform 0.2s, box-shadow 0.2s;
}

.evolution-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 169, 98, 0.5);
}

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

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

/* Confetti particles */
.evolution-confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
}

.evolution-confetti.active {
    animation: confettiFall 3s ease forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(400px) rotate(720deg);
    }
}

/* =============================================
   DEMOTION NOTIFICATION - Dramatic Role Loss
   ============================================= */
.demotion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(20, 10, 15, 0.98) 0%,
        rgba(40, 20, 25, 0.98) 50%,
        rgba(15, 10, 12, 0.98) 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 32px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

.demotion-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Falling particles effect */
.demotion-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.demotion-overlay.active .demotion-particles::before,
.demotion-overlay.active .demotion-particles::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, rgba(180, 60, 60, 0.3) 1px, transparent 1px),
        radial-gradient(circle, rgba(100, 50, 50, 0.2) 1px, transparent 1px);
    background-size: 30px 30px, 20px 20px;
    background-position: 0 0, 10px 10px;
    animation: demotionRain 3s linear infinite;
}

.demotion-overlay.active .demotion-particles::after {
    animation-delay: -1.5s;
    opacity: 0.5;
}

@keyframes demotionRain {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.demotion-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    max-width: 320px;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: demotionContainerIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.3s;
    z-index: 1;
}

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

/* Icon area with old -> new transition */
.demotion-icon-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.demotion-old-icon-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(180, 60, 60, 0.2), rgba(100, 40, 40, 0.3));
    border: 2px solid rgba(180, 60, 60, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: demotionOldIconShake 0.6s ease-in-out;
    animation-delay: 0.5s;
    box-shadow: 0 0 30px rgba(180, 60, 60, 0.3);
}

@keyframes demotionOldIconShake {
    0%, 100% { transform: translateX(0) rotate(0); }
    20% { transform: translateX(-8px) rotate(-5deg); }
    40% { transform: translateX(8px) rotate(5deg); }
    60% { transform: translateX(-5px) rotate(-3deg); }
    80% { transform: translateX(5px) rotate(3deg); }
}

.demotion-old-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(50%) brightness(0.8);
    opacity: 0.7;
}

/* Crack effects on old icon */
.demotion-crack {
    position: absolute;
    width: 3px;
    height: 40px;
    background: linear-gradient(to bottom,
        transparent,
        rgba(180, 60, 60, 0.8),
        transparent);
    transform: rotate(15deg);
    top: 20%;
    left: 30%;
    opacity: 0;
    animation: demotionCrackAppear 0.3s ease forwards;
    animation-delay: 1s;
}

.demotion-crack.crack-2 {
    transform: rotate(-20deg);
    left: 50%;
    top: 15%;
    animation-delay: 1.1s;
}

.demotion-crack.crack-3 {
    transform: rotate(35deg);
    left: 60%;
    top: 30%;
    height: 30px;
    animation-delay: 1.2s;
}

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

.demotion-arrow-down {
    width: 32px;
    height: 32px;
    color: rgba(180, 60, 60, 0.6);
    animation: demotionArrowPulse 1.5s ease-in-out infinite;
}

.demotion-arrow-down svg {
    width: 100%;
    height: 100%;
}

@keyframes demotionArrowPulse {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(5px); opacity: 1; }
}

.demotion-new-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(80, 80, 100, 0.3), rgba(60, 60, 80, 0.4));
    border: 2px solid rgba(100, 100, 120, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    animation: demotionNewIconIn 0.5s ease forwards;
    animation-delay: 1.3s;
}

@keyframes demotionNewIconIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.demotion-new-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

/* Dramatic title */
.demotion-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0 0 16px 0;
}

.demotion-title-line {
    font-size: 20px;
    font-weight: 600;
    color: rgba(180, 180, 190, 0.8);
    letter-spacing: -0.5px;
    opacity: 0;
    transform: translateY(10px);
    animation: demotionTitleIn 0.5s ease forwards;
}

.demotion-title-line:nth-child(1) { animation-delay: 1.4s; }
.demotion-title-line:nth-child(2) { animation-delay: 1.6s; }

.demotion-title-line.highlight {
    font-size: 26px;
    font-weight: 800;
    color: rgba(200, 80, 80, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

/* Role transition display */
.demotion-role-transition {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(180, 60, 60, 0.2);
    opacity: 0;
    animation: demotionFadeIn 0.5s ease forwards;
    animation-delay: 1.8s;
}

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

.demotion-role-old {
    font-size: 14px;
    font-weight: 600;
    color: rgba(180, 100, 100, 0.8);
    text-decoration: line-through;
    text-decoration-color: rgba(200, 80, 80, 0.6);
    text-decoration-thickness: 2px;
}

.demotion-role-arrow {
    font-size: 18px;
    color: rgba(180, 60, 60, 0.5);
}

.demotion-role-new {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
}

/* Emotional message */
.demotion-message {
    font-size: 13px;
    color: rgba(160, 160, 170, 0.8);
    margin: 0 0 16px 0;
    line-height: 1.6;
    max-width: 280px;
    opacity: 0;
    animation: demotionFadeIn 0.5s ease forwards;
    animation-delay: 2s;
}

/* Impact indicator */
.demotion-impact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(180, 60, 60, 0.1);
    border: 1px solid rgba(180, 60, 60, 0.2);
    border-radius: 20px;
    margin-bottom: 24px;
    opacity: 0;
    animation: demotionFadeIn 0.5s ease forwards;
    animation-delay: 2.2s;
}

.demotion-impact-icon {
    font-size: 16px;
}

.demotion-impact span {
    font-size: 12px;
    color: rgba(180, 100, 100, 0.8);
    font-weight: 500;
}

/* Continue button - motivational */
.demotion-continue-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(80, 80, 100, 0.4), rgba(60, 60, 80, 0.5));
    border: 1px solid rgba(120, 120, 140, 0.4);
    border-radius: 24px;
    color: rgba(200, 200, 210, 0.9);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    animation: demotionBtnIn 0.5s ease forwards;
    animation-delay: 2.4s;
}

.demotion-continue-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.demotion-continue-btn:hover {
    background: linear-gradient(135deg, rgba(100, 100, 120, 0.5), rgba(80, 80, 100, 0.6));
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.demotion-continue-btn:hover svg {
    transform: translateX(4px);
}

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

/* =============================================
   ONBOARDING SEQUENCE - Gamified Style
   ============================================= */
.onboarding-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(20, 20, 30, 0.98) 100%);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    border-radius: 32px; /* Match phone-frame inner radius */
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.onboarding-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Onboarding Steps */
.onboarding-step {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-step.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.onboarding-step.exit {
    opacity: 0;
    transform: scale(1.1);
}

/* Content Container */
.onboarding-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    position: relative;
    max-width: 340px;
}

/* Floating Particles */
.onboarding-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.onboarding-particles .particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 4s ease-in-out infinite;
}

.onboarding-particles .particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.onboarding-particles .particle:nth-child(2) { left: 90%; top: 15%; animation-delay: 0.5s; }
.onboarding-particles .particle:nth-child(3) { left: 15%; top: 80%; animation-delay: 1s; }
.onboarding-particles .particle:nth-child(4) { left: 85%; top: 75%; animation-delay: 1.5s; }
.onboarding-particles .particle:nth-child(5) { left: 50%; top: 10%; animation-delay: 2s; }
.onboarding-particles .particle:nth-child(6) { left: 50%; top: 90%; animation-delay: 2.5s; }

@keyframes floatParticle {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-30px) scale(1);
    }
}

/* Icon Container (Step 1) */
.onboarding-icon-container {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.onboarding-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.5) 0%, rgba(201, 169, 98, 0) 70%);
    animation: onboardingGlow 2s ease-in-out infinite;
}

@keyframes onboardingGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.4); opacity: 1; }
}

.onboarding-icon {
    font-size: 80px;
    z-index: 1;
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Features Icons (Step 2) */
.onboarding-features-icons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease forwards;
}

.feature-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(201, 169, 98, 0.15);
    border: 2px solid rgba(201, 169, 98, 0.4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s ease;
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.feature-icon-item:nth-child(1) .feature-icon { animation-delay: 0.1s; }
.feature-icon-item:nth-child(2) .feature-icon { animation-delay: 0.2s; }
.feature-icon-item:nth-child(3) .feature-icon { animation-delay: 0.3s; }
.feature-icon-item:nth-child(4) .feature-icon { animation-delay: 0.4s; }

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.feature-icon-item span {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Role Container (Step 3) */
.onboarding-role-container {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.role-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.6) 0%, rgba(201, 169, 98, 0) 70%);
    animation: roleGlow 2s ease-in-out infinite;
}

@keyframes roleGlow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
}

.onboarding-role-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(201, 169, 98, 0.8));
    animation: roleIconIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes roleIconIn {
    0% { transform: scale(0) rotate(-20deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Title */
.onboarding-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.onboarding-title .highlight {
    color: var(--accent-primary);
    text-shadow: 0 0 20px rgba(201, 169, 98, 0.5);
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Role Badge */
.onboarding-role-badge {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    padding: 12px 32px;
    border-radius: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

.onboarding-role-badge span {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(201, 169, 98, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 8px 30px rgba(201, 169, 98, 0.6); }
}

/* Help Text */
.onboarding-help-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.help-link {
    color: var(--accent-primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: all 0.2s ease;
}

.help-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(201, 169, 98, 0.8);
}

/* Navigation Dots */
.onboarding-dots {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
    animation: fadeIn 0.6s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.onboarding-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.onboarding-dots .dot.active {
    background: var(--accent-primary);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(201, 169, 98, 0.6);
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Button */
.onboarding-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 30px;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.4);
}

.onboarding-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 169, 98, 0.6);
}

.onboarding-btn:active {
    transform: translateY(0);
}

.onboarding-btn svg {
    width: 20px;
    height: 20px;
    stroke: #000;
}

.onboarding-btn.finish {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

.onboarding-btn.finish:hover {
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.6);
}

.onboarding-btn.finish svg {
    stroke: #000;
}

/* =============================================
   CAMPAIGN POPUP - Full Screen Monthly Campaigns
   ============================================= */
.campaign-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10002;
    border-radius: 32px; /* Match phone-frame inner radius */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.campaign-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Close button (X) */
.campaign-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 10px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.campaign-close-btn svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.campaign-close-btn:hover {
    transform: scale(1.1);
}

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

/* Banner container - fills the screen */
.campaign-banner-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Banner media (video/image) - full screen */
.campaign-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Bottom overlay with gradient background */
.campaign-bottom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    z-index: 5;
}

/* Participant counter */
.campaign-counter {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

/* Join campaign button */
.campaign-join-btn {
    width: 100%;
    max-width: 300px;
    padding: 16px 32px;
    background: #c9a962;
    border: none;
    border-radius: 30px;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.4);
}

.campaign-join-btn:hover {
    background: #d4b872;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(201, 169, 98, 0.5);
}

.campaign-join-btn:active {
    transform: translateY(0);
}

/* =============================================
   GAMIFIED NOTIFICATION SYSTEM
============================================= */

/* Simple Toast (for basic notifications) */
.toast-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.toast-close:hover {
    color: var(--text-primary);
}

/* Toast types */
.toast-success {
    border-color: var(--accent-green);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), var(--bg-card));
}

.toast-error {
    border-color: var(--accent-red);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), var(--bg-card));
}

.toast-warning {
    border-color: var(--accent-orange);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), var(--bg-card));
}

.toast-campaign {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.1), var(--bg-card));
}

/* =============================================
   GAME-STYLE ALERT (Dramatic notifications)
============================================= */
.game-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

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

@keyframes fadeOut {
    to { opacity: 0; }
}

.game-alert {
    position: relative;
    width: 90%;
    max-width: 340px;
    text-align: center;
    padding: 30px 20px;
    animation: alertSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes alertSlideIn {
    0% { transform: scale(0.5) translateY(50px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Alert icon container with glow */
.game-alert-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    position: relative;
    animation: iconPulse 1.5s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Different alert types */
.game-alert-removed .game-alert-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.5), 0 0 80px rgba(239, 68, 68, 0.3);
}

.game-alert-success .game-alert-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.5), 0 0 80px rgba(34, 197, 94, 0.3);
}

.game-alert-xp .game-alert-icon {
    background: linear-gradient(135deg, #c9a962, #a88c4a);
    box-shadow: 0 0 40px rgba(201, 169, 98, 0.5), 0 0 80px rgba(201, 169, 98, 0.3);
}

.game-alert-warning .game-alert-icon {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.5), 0 0 80px rgba(249, 115, 22, 0.3);
}

/* Alert title */
.game-alert-title {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.game-alert-removed .game-alert-title {
    color: #ef4444;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.game-alert-success .game-alert-title {
    color: #22c55e;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.game-alert-xp .game-alert-title {
    color: #c9a962;
    text-shadow: 0 0 20px rgba(201, 169, 98, 0.5);
}

.game-alert-warning .game-alert-title {
    color: #f97316;
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
}

@keyframes textGlow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2); }
}

/* Alert message */
.game-alert-message {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Alert action button */
.game-alert-btn {
    display: inline-block;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.game-alert-removed .game-alert-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.game-alert-success .game-alert-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

.game-alert-xp .game-alert-btn {
    background: linear-gradient(135deg, #c9a962, #a88c4a);
    color: #000;
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.4);
}

.game-alert-warning .game-alert-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}

.game-alert-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.game-alert-btn:active {
    transform: translateY(0);
}

/* Decorative particles */
.game-alert-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.game-alert-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
}

.game-alert-removed .game-alert-particle { background: #ef4444; }
.game-alert-success .game-alert-particle { background: #22c55e; }
.game-alert-xp .game-alert-particle { background: #c9a962; }
.game-alert-warning .game-alert-particle { background: #f97316; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

/* =============================================
   XP GAIN ANIMATION - ENHANCED CELEBRATION
============================================= */
.xp-gain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(30, 20, 0, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: xpGainFadeIn 0.4s ease forwards;
    pointer-events: all;
    overflow: hidden;
}

@keyframes xpGainFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.xp-gain-container {
    position: relative;
    text-align: center;
    animation: xpGainBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    z-index: 10;
}

@keyframes xpGainBounce {
    0% { transform: scale(0) rotate(-15deg); opacity: 0; }
    50% { transform: scale(1.15) rotate(5deg); }
    70% { transform: scale(0.95) rotate(-2deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Expanding Rings */
.xp-rings-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.xp-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border: 3px solid rgba(251, 191, 36, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: xpRingExpand 1.5s ease-out forwards infinite;
}

@keyframes xpRingExpand {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; border-width: 4px; }
    100% { transform: translate(-50%, -50%) scale(4); opacity: 0; border-width: 1px; }
}

/* Rays Background */
.xp-rays-new {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(251, 191, 36, 0.15) 10deg,
        transparent 20deg,
        transparent 30deg,
        rgba(251, 191, 36, 0.15) 40deg,
        transparent 50deg
    );
    animation: xpRaysSpin 8s linear infinite;
    border-radius: 50%;
}

@keyframes xpRaysSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Glow Burst */
.xp-glow-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, transparent 70%);
    animation: xpGlowPulse 1.5s ease-in-out infinite;
}

@keyframes xpGlowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

/* Icon Container - Mobile Optimized */
.xp-icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
}

.xp-icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    border-radius: 50%;
    box-shadow:
        0 0 40px rgba(251, 191, 36, 0.8),
        0 0 80px rgba(251, 191, 36, 0.5),
        0 0 120px rgba(251, 191, 36, 0.3),
        inset 0 -8px 25px rgba(0, 0, 0, 0.3),
        inset 0 8px 25px rgba(255, 255, 255, 0.2);
    animation: xpIconPulseNew 2s ease-in-out infinite;
}

@keyframes xpIconPulseNew {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(251, 191, 36, 0.8), 0 0 80px rgba(251, 191, 36, 0.5); }
    50% { transform: scale(1.08); box-shadow: 0 0 60px rgba(251, 191, 36, 1), 0 0 100px rgba(251, 191, 36, 0.7); }
}

.xp-icon-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: xpIconBounce 0.6s ease 0.3s both;
}

.xp-icon-star {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 22px;
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.8));
    animation: xpStarPop 0.5s ease 0.5s both;
    z-index: 2;
}

@keyframes xpStarPop {
    0% { transform: scale(0) rotate(-30deg); opacity: 0; }
    60% { transform: scale(1.3) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes xpIconBounce {
    0% { transform: translate(-50%, -50%) scale(0) rotate(-20deg); }
    50% { transform: translate(-50%, -50%) scale(1.3) rotate(10deg); }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}

.xp-icon-shine {
    position: absolute;
    top: 10%;
    left: 20%;
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, transparent 70%);
    border-radius: 50%;
    animation: xpShineMove 3s ease-in-out infinite;
}

@keyframes xpShineMove {
    0%, 100% { transform: translate(0, 0); opacity: 0.8; }
    50% { transform: translate(20px, 15px); opacity: 0.4; }
}

/* Amount Container */
.xp-amount-container {
    margin-bottom: 15px;
}

.xp-amount-label {
    font-size: 16px;
    font-weight: 800;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 5px;
    opacity: 0;
    animation: xpSlideUp 0.5s ease 0.4s forwards;
}

@keyframes xpSlideUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.xp-amount-value {
    font-size: 56px;
    font-weight: 900;
    color: #fff;
    text-shadow:
        0 0 30px rgba(251, 191, 36, 0.9),
        0 0 60px rgba(251, 191, 36, 0.6),
        0 4px 0 #d97706,
        0 8px 0 #b45309;
    animation: xpAmountPopNew 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

@keyframes xpAmountPopNew {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    60% { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.xp-reason-new {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
    opacity: 0;
    animation: xpSlideUp 0.5s ease 0.7s forwards;
    background: rgba(251, 191, 36, 0.15);
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
}

/* Continue Button - Mobile Optimized */
.xp-gain-continue-btn {
    margin-top: 24px;
    padding: 14px 48px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    opacity: 0;
    animation: xpButtonPop 0.5s ease 0.9s forwards;
    transition: all 0.3s ease;
    box-shadow:
        0 6px 20px rgba(251, 191, 36, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes xpButtonPop {
    0% { transform: scale(0) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.xp-gain-continue-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.6);
}

.xp-gain-continue-btn:active {
    transform: scale(0.98);
}

/* Confetti Container */
.xp-confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.xp-confetti {
    position: absolute;
    top: -20px;
    animation: confettiFall var(--duration, 3s) linear forwards;
    transform: rotate(var(--rotation, 0deg));
}

.confetti-rect {
    border-radius: 2px;
}

.confetti-circle {
    border-radius: 50%;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg) scale(0.5);
        opacity: 0;
    }
}

/* Floating Stars Container (XP Gain) */
.xp-floating-stars-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 6;
}

.xp-floating-star {
    position: absolute;
    top: 60%;
    font-size: 24px;
    animation: starFloatUp 2s ease-out forwards;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8));
}

@keyframes starFloatUp {
    0% {
        transform: translateY(0) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
        transform: translateY(-10vh) scale(1) rotate(30deg);
    }
    100% {
        transform: translateY(-60vh) scale(0.3) rotate(180deg);
        opacity: 0;
    }
}

/* Star Bursts */
.xp-stars-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 7;
}

.xp-star-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 18px;
    animation: starBurst 1s ease-out forwards;
}

@keyframes starBurst {
    0% {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(var(--distance) * -1));
        opacity: 0;
    }
}

/* Sparkles */
.xp-sparkles-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 4;
}

.xp-sparkle-new {
    position: absolute;
    font-size: 16px;
    animation: sparkleFloat 2s ease-out forwards infinite;
}

@keyframes sparkleFloat {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* =============================================
   XP LOSS ANIMATION - DRAMATIC EFFECT
============================================= */
.xp-loss-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(40, 0, 0, 0.95) 0%, rgba(10, 0, 0, 0.98) 100%);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: xpLossFadeIn 0.3s ease forwards, xpScreenShake 0.5s ease 0.1s;
    pointer-events: all;
    overflow: hidden;
}

@keyframes xpLossFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes xpScreenShake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-8px) rotate(-0.5deg); }
    20% { transform: translateX(8px) rotate(0.5deg); }
    30% { transform: translateX(-6px) rotate(-0.3deg); }
    40% { transform: translateX(6px) rotate(0.3deg); }
    50% { transform: translateX(-4px); }
    60% { transform: translateX(4px); }
    70% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

/* Vignette Effect */
.xp-loss-vignette {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    animation: vignetteIntensify 1s ease forwards;
}

@keyframes vignetteIntensify {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.xp-loss-container {
    position: relative;
    text-align: center;
    animation: xpLossShakeIn 0.7s ease forwards;
    z-index: 10;
}

@keyframes xpLossShakeIn {
    0% { transform: scale(0); opacity: 0; }
    20% { transform: scale(1.2) rotate(-5deg); }
    40% { transform: scale(1.1) rotate(4deg); }
    60% { transform: scale(1.05) rotate(-3deg); }
    80% { transform: scale(1) rotate(1deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Flash Effect */
.xp-loss-flash-new {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 0, 0, 0.3);
    pointer-events: none;
    animation: redFlash 0.3s ease-out forwards;
}

@keyframes redFlash {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Cracks Container */
.xp-cracks-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.xp-crack {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: var(--length);
    background: linear-gradient(to top, rgba(239, 68, 68, 0.8), transparent);
    transform-origin: center top;
    transform: translate(-50%, 0) rotate(var(--angle));
    animation: crackAppear 0.5s ease forwards;
}

@keyframes crackAppear {
    0% { height: 0; opacity: 0; }
    100% { height: var(--length); opacity: 1; }
}

/* Icon Container - Mobile Optimized */
.xp-loss-icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
}

.xp-loss-icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #991b1b 100%);
    border-radius: 50%;
    box-shadow:
        0 0 40px rgba(239, 68, 68, 0.8),
        0 0 80px rgba(239, 68, 68, 0.5),
        inset 0 -8px 25px rgba(0, 0, 0, 0.4);
    animation: xpLossIconPulseNew 1.5s ease-in-out infinite;
}

@keyframes xpLossIconPulseNew {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 60px rgba(239, 68, 68, 1), 0 0 100px rgba(239, 68, 68, 0.7); }
}

.xp-loss-icon-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    animation: xpLossIconShake 0.5s ease 0.3s both;
}

.xp-loss-icon-star {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 20px;
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.6)) grayscale(0.4);
    animation: xpLossStarFall 0.8s ease 0.5s both;
    z-index: 2;
}

@keyframes xpLossStarFall {
    0% { transform: scale(1) rotate(0deg) translateY(0); opacity: 1; }
    30% { transform: scale(1.2) rotate(-15deg) translateY(-5px); opacity: 1; }
    100% { transform: scale(0.8) rotate(20deg) translateY(8px); opacity: 0.6; }
}

@keyframes xpLossIconShake {
    0% { transform: translate(-50%, -50%) scale(0); }
    30% { transform: translate(-50%, -50%) scale(1.2) rotate(-10deg); }
    50% { transform: translate(-50%, -50%) scale(1.1) rotate(8deg); }
    70% { transform: translate(-50%, -50%) scale(1.05) rotate(-5deg); }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0); }
}

.xp-loss-icon-crack {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L45 35 L30 40 L48 50 L35 75 L55 55 L70 60 L52 45 L65 25 Z' fill='rgba(0,0,0,0.3)'/%3E%3C/svg%3E");
    opacity: 0.5;
    animation: crackAppearIcon 0.6s ease 0.5s forwards;
}

@keyframes crackAppearIcon {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
    100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
}

/* Amount Container */
.xp-loss-amount-container {
    margin-bottom: 15px;
}

.xp-loss-label {
    font-size: 16px;
    font-weight: 800;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 5px;
    opacity: 0;
    animation: xpLossSlideDown 0.5s ease 0.4s forwards;
}

@keyframes xpLossSlideDown {
    0% { transform: translateY(-20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.xp-loss-value {
    font-size: 56px;
    font-weight: 900;
    color: #fff;
    text-shadow:
        0 0 30px rgba(239, 68, 68, 0.9),
        0 0 60px rgba(239, 68, 68, 0.6),
        0 4px 0 #991b1b,
        0 8px 0 #7f1d1d;
    animation: xpLossAmountPop 0.6s ease 0.5s both;
}

@keyframes xpLossAmountPop {
    0% { transform: scale(2) rotate(5deg); opacity: 0; filter: blur(10px); }
    50% { transform: scale(0.9) rotate(-3deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; filter: blur(0); }
}

.xp-loss-reason-new {
    font-size: 15px;
    color: rgba(255, 200, 200, 0.9);
    margin-top: 10px;
    opacity: 0;
    animation: xpLossSlideDown 0.5s ease 0.7s forwards;
    background: rgba(239, 68, 68, 0.15);
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
}

/* Continue Button - Mobile Optimized */
.xp-loss-continue-btn {
    margin-top: 24px;
    padding: 14px 48px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #991b1b 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    opacity: 0;
    animation: xpButtonPop 0.5s ease 0.9s forwards;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.xp-loss-continue-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.6);
}

.xp-loss-continue-btn:active {
    transform: scale(0.98);
}

/* Shards Container */
.xp-shards-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 7;
}

.xp-shard {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 20px;
    animation: shardExplode 1s ease-out forwards;
}

@keyframes shardExplode {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) rotate(calc(var(--angle) + var(--rotation))) translateY(calc(var(--distance) * -1));
        opacity: 0;
    }
}

/* Falling Numbers */
.xp-falling-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.xp-falling-number {
    position: absolute;
    top: 20%;
    font-size: 28px;
    font-weight: 900;
    color: #ef4444;
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
    animation: xpNumberFall 2s ease-in forwards;
}

@keyframes xpNumberFall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(80vh) rotate(45deg) scale(0.3);
        opacity: 0;
    }
}

/* Falling Stars Container (XP Loss) */
.xp-falling-stars-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 6;
}

.xp-falling-star {
    position: absolute;
    top: 30%;
    font-size: 22px;
    animation: starFallDown 2s ease-in forwards;
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.8)) grayscale(0.3);
}

@keyframes starFallDown {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    30% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(70vh) rotate(-180deg) scale(0.2);
        opacity: 0;
    }
}

/* Dust Particles */
.xp-dust-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 6;
}

.xp-dust {
    position: absolute;
    top: 50%;
    font-size: 18px;
    animation: dustRise 2s ease-out forwards;
    filter: grayscale(0.5);
}

@keyframes dustRise {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    30% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-150px) scale(1.5);
        opacity: 0;
    }
}

/* =============================================
   CAMPAIGN WINNER ANIMATION (CAVEIRA)
============================================= */
.winner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 0, 30, 0.95));
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.winner-container {
    text-align: center;
    padding: 20px;
    max-width: 350px;
}

/* Confetti container */
.winner-confetti {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 20px;
    top: -20px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotateZ(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotateZ(720deg);
        opacity: 0;
    }
}

/* Trophy/Skull icon */
.winner-icon {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    animation: winnerIconEntry 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes winnerIconEntry {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.winner-skull {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #c9a962 0%, #f4d03f 30%, #c9a962 60%, #a88c4a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    box-shadow:
        0 0 50px rgba(201, 169, 98, 0.8),
        0 0 100px rgba(201, 169, 98, 0.5),
        0 10px 40px rgba(0, 0, 0, 0.5);
    animation: winnerPulse 2s ease-in-out infinite;
}

@keyframes winnerPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 50px rgba(201, 169, 98, 0.8),
            0 0 100px rgba(201, 169, 98, 0.5),
            0 10px 40px rgba(0, 0, 0, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow:
            0 0 80px rgba(201, 169, 98, 1),
            0 0 150px rgba(201, 169, 98, 0.7),
            0 10px 40px rgba(0, 0, 0, 0.5);
    }
}

/* Crown above skull */
.winner-crown {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 50px;
    animation: crownBounce 1s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

@keyframes crownBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Ring around icon */
.winner-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    border: 3px solid rgba(201, 169, 98, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ringPulse 1.5s ease-out infinite;
}

@keyframes ringPulse {
    0% {
        width: 150px;
        height: 150px;
        opacity: 1;
        border-width: 3px;
    }
    100% {
        width: 250px;
        height: 250px;
        opacity: 0;
        border-width: 1px;
    }
}

/* Winner title */
.winner-title {
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    background: linear-gradient(135deg, #c9a962, #f4d03f, #c9a962);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    opacity: 0;
    animation: winnerTitlePop 0.6s ease 0.5s forwards;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(201, 169, 98, 0.5));
}

@keyframes winnerTitlePop {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Subtitle */
.winner-subtitle {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 20px;
    opacity: 0;
    animation: xpLabelFade 0.5s ease 0.8s forwards;
}

/* Campaign name */
.winner-campaign {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    opacity: 0;
    animation: xpLabelFade 0.5s ease 1s forwards;
}

/* XP reward */
.winner-xp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.2), rgba(201, 169, 98, 0.1));
    border: 2px solid #c9a962;
    border-radius: 30px;
    padding: 12px 30px;
    margin-bottom: 30px;
    opacity: 0;
    animation: winnerXpPop 0.6s ease 1.2s forwards;
}

@keyframes winnerXpPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.winner-xp-icon {
    font-size: 24px;
}

.winner-xp-amount {
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
}

.winner-xp-label {
    font-size: 14px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Position badge */
.winner-position {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #c9a962, #f4d03f);
    border-radius: 50%;
    font-size: 28px;
    font-weight: 900;
    color: #000;
    line-height: 60px;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(201, 169, 98, 0.5);
    opacity: 0;
    animation: winnerXpPop 0.6s ease 0.3s forwards;
}

/* Close button */
.winner-btn {
    padding: 15px 50px;
    background: linear-gradient(135deg, #c9a962, #a88c4a);
    border: none;
    border-radius: 30px;
    color: #000;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 5px 30px rgba(201, 169, 98, 0.5);
    transition: all 0.3s ease;
    opacity: 0;
    animation: xpLabelFade 0.5s ease 1.5s forwards;
}

.winner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(201, 169, 98, 0.7);
}

.winner-btn:active {
    transform: translateY(0);
}

/* Stars decoration */
.winner-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.winner-star {
    position: absolute;
    font-size: 20px;
    animation: starTwinkle 1.5s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Confetti container */
.winner-confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.winner-confetti {
    position: absolute;
    top: -20px;
    border-radius: 3px;
    animation: confettiFall 3s linear forwards;
}

/* Stars container */
.winner-stars-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

/* Prize badge */
.winner-prize {
    display: inline-block;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    border: 2px solid #22c55e;
    border-radius: 20px;
    padding: 10px 20px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #22c55e;
    opacity: 0;
    animation: winnerXpPop 0.6s ease 1.4s forwards;
}

/* Position badge specific colors */
.winner-position.position-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
}

.winner-position.position-2 {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    box-shadow: 0 0 40px rgba(192, 192, 192, 0.6);
}

.winner-position.position-3 {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    box-shadow: 0 0 40px rgba(205, 127, 50, 0.6);
}

/* =============================================
   BADGE EARNED ANIMATION
============================================= */
.badge-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(30, 20, 0, 0.95));
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.badge-earned-container {
    text-align: center;
    padding: 20px;
    max-width: 350px;
    position: relative;
}

/* Sparkles container */
.badge-sparkles-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.badge-sparkle {
    position: absolute;
    font-size: 16px;
    animation: badgeSparkle 2s ease-in-out infinite;
}

@keyframes badgeSparkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Particles container */
.badge-particles-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
}

.badge-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: badgeParticle 1.5s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes badgeParticle {
    0% {
        transform: rotate(var(--angle)) translateX(0);
        opacity: 1;
    }
    100% {
        transform: rotate(var(--angle)) translateX(150px);
        opacity: 0;
    }
}

/* Badge ring */
.badge-earned-ring {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    border: 4px solid #c9a962;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 10, 0, 0.8));
    animation: badgeRingEntry 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    overflow: hidden;
}

@keyframes badgeRingEntry {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Badge glow effect */
.badge-earned-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: badgeGlowPulse 2s ease-in-out infinite;
}

@keyframes badgeGlowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Badge icon */
.badge-earned-icon {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    z-index: 2;
}

.badge-earned-placeholder {
    font-size: 70px;
    z-index: 2;
}

/* Rarity label */
.badge-earned-rarity {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    opacity: 0;
    animation: xpLabelFade 0.5s ease 0.4s forwards;
}

/* Title */
.badge-earned-title {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #c9a962, #f4d03f, #c9a962);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    opacity: 0;
    animation: winnerTitlePop 0.6s ease 0.5s forwards;
    filter: drop-shadow(0 0 15px rgba(201, 169, 98, 0.5));
}

/* Badge name */
.badge-earned-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    opacity: 0;
    animation: xpLabelFade 0.5s ease 0.7s forwards;
}

/* Reason text */
.badge-earned-reason {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    opacity: 0;
    animation: xpLabelFade 0.5s ease 0.9s forwards;
}

/* Campaign name */
.badge-earned-campaign {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 25px;
    opacity: 0;
    animation: xpLabelFade 0.5s ease 1s forwards;
}

/* Button */
.badge-earned-btn {
    padding: 15px 50px;
    border: none;
    border-radius: 30px;
    color: #000;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 5px 30px rgba(201, 169, 98, 0.5);
    transition: all 0.3s ease;
    opacity: 0;
    animation: xpLabelFade 0.5s ease 1.2s forwards;
}

.badge-earned-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(201, 169, 98, 0.7);
}

.badge-earned-btn:active {
    transform: translateY(0);
}

/* =============================================
   BADGES SCREEN STYLES
   ============================================= */

.badges-screen-content {
    padding: 16px;
    padding-bottom: 100px;
}

/* Stats Header */
.badges-stats-header {
    display: flex;
    justify-content: space-around;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 16px 8px;
    margin-bottom: 20px;
}

.badges-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.badges-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-primary);
}

.badges-stat-value.legendary {
    background: linear-gradient(135deg, #ffd700, #ffaa00, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badges-stat-value.epic {
    color: #a855f7;
}

.badges-stat-value.rare {
    color: #3b82f6;
}

.badges-stat-label {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Headers */
.badges-screen-content .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px 0;
}

.badges-screen-content .section-header svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

.badges-screen-content .section-header span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Primary Badge Section */
.primary-badge-section {
    margin-bottom: 24px;
}

.primary-badge-card {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.15), rgba(201, 169, 98, 0.05));
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.primary-badge-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 20px rgba(201, 169, 98, 0.4);
}

.primary-badge-info {
    flex: 1;
}

.primary-badge-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.primary-badge-rarity {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 10px;
    margin-bottom: 6px;
}

.primary-badge-rarity.LEGENDARY {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 170, 0, 0.2));
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.primary-badge-rarity.EPIC {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.primary-badge-rarity.RARE {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.primary-badge-rarity.COMMON {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.4);
}

.primary-badge-date {
    font-size: 12px;
    color: var(--text-tertiary);
}

.remove-primary-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: color 0.2s;
}

.remove-primary-btn:hover {
    color: var(--accent-red);
}

.remove-primary-btn svg {
    width: 18px;
    height: 18px;
}

/* All Badges Section */
.all-badges-section {
    margin-bottom: 20px;
}

.badges-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.badge-item:hover {
    background: var(--bg-card-hover);
}

.badge-item.is-primary {
    border-color: var(--accent-primary);
    background: rgba(201, 169, 98, 0.1);
}

.badge-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.badge-item-info {
    flex: 1;
    min-width: 0;
}

.badge-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-item-rarity {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 8px;
}

.badge-item-rarity.LEGENDARY {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 170, 0, 0.2));
    color: #ffd700;
}

.badge-item-rarity.EPIC {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.badge-item-rarity.RARE {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.badge-item-rarity.COMMON {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.badge-item-date {
    font-size: 11px;
    color: var(--text-tertiary);
}

.badge-item-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(201, 169, 98, 0.15);
    flex-shrink: 0;
}

.badge-item-action svg {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

.badge-item.is-primary .badge-item-action {
    background: var(--accent-primary);
}

.badge-item.is-primary .badge-item-action svg {
    color: #000;
}

/* Empty State */
.badges-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.badges-empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    opacity: 0.5;
}

.badges-empty-state span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.badges-empty-state small {
    font-size: 13px;
    color: var(--text-tertiary);
    max-width: 250px;
}

/* Profile menu badges count */
.menu-item .badges-count {
    margin-left: auto;
    margin-right: 8px;
    background: var(--accent-primary);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* =============================================
   ADMIN NOTIFICATION POPUP - GAMIFIED EPIC STYLE
   ============================================= */

.notification-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(201, 169, 98, 0.08) 0%, rgba(0, 0, 0, 0.97) 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10003;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
    border-radius: 32px; /* Match phone-frame inner radius */
}

/* Animated stars/particles background */
.notification-popup-overlay::before {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    top: -100%;
    left: -100%;
    background-image:
        radial-gradient(2px 2px at 100px 100px, #c9a962, transparent),
        radial-gradient(2px 2px at 200px 150px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 300px 250px, #c9a962, transparent),
        radial-gradient(2px 2px at 400px 300px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 500px 100px, #c9a962, transparent),
        radial-gradient(2px 2px at 50px 350px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 600px 200px, #c9a962, transparent);
    background-size: 650px 400px;
    animation: floatingStars 25s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes floatingStars {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-200px, -200px) rotate(5deg); }
}

/* Epic glow burst effect */
.notification-popup-overlay::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.5) 0%, rgba(201, 169, 98, 0.2) 30%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.notification-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.notification-popup-overlay.active::after {
    animation: epicGlowBurst 1s ease-out forwards;
}

@keyframes epicGlowBurst {
    0% {
        transform: scale(0.2);
        opacity: 1;
    }
    60% {
        opacity: 0.6;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.notification-popup {
    width: 100%;
    max-width: 360px;
    background: linear-gradient(180deg, #1c1c2e 0%, #101018 100%);
    border-radius: 24px;
    overflow: visible;
    position: relative;
    transform: scale(0.7) translateY(60px) rotateX(10deg);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    perspective: 1000px;
}

/* Animated glowing border */
.notification-popup::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, #c9a962, #6b5a3a, #c9a962, #e8d48b, #c9a962);
    background-size: 400% 400%;
    border-radius: 27px;
    z-index: -1;
    animation: borderRotate 4s linear infinite;
    filter: blur(0px);
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Outer glow */
.notification-popup::after {
    content: '';
    position: absolute;
    inset: -15px;
    background: radial-gradient(ellipse at center, rgba(201, 169, 98, 0.3) 0%, transparent 70%);
    border-radius: 40px;
    z-index: -2;
    animation: outerGlow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes outerGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.notification-popup-overlay.active .notification-popup {
    transform: scale(1) translateY(0) rotateX(0deg);
    opacity: 1;
}

.notification-popup-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 20px;
    background: linear-gradient(180deg, rgba(201, 169, 98, 0.15) 0%, rgba(201, 169, 98, 0.03) 100%);
    position: relative;
    border-radius: 24px 24px 0 0;
}

/* Decorative corner accents */
.notification-popup-header::before,
.notification-popup-header::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: rgba(201, 169, 98, 0.4);
    border-style: solid;
}

.notification-popup-header::before {
    top: 8px;
    left: 8px;
    border-width: 2px 0 0 2px;
    border-radius: 8px 0 0 0;
}

.notification-popup-header::after {
    top: 8px;
    right: 8px;
    border-width: 2px 2px 0 0;
    border-radius: 0 8px 0 0;
}

.notification-popup-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.3) 0%, rgba(201, 169, 98, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a962;
    flex-shrink: 0;
    position: relative;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.notification-popup-icon svg {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 0 10px rgba(201, 169, 98, 0.6));
    animation: bellRing 0.5s ease-in-out;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-15deg); }
    60% { transform: rotate(10deg); }
    80% { transform: rotate(-10deg); }
}

/* Pulsing ring around icon */
.notification-popup-icon::before {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid rgba(201, 169, 98, 0.4);
    border-radius: 18px;
    animation: iconRingPulse 2s ease-in-out infinite;
}

@keyframes iconRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0.2; }
}

.notification-popup-title {
    flex: 1;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.3px;
}

.notification-popup-xp-badge {
    background: linear-gradient(135deg, #c9a962 0%, #e8d48b 40%, #c9a962 100%);
    background-size: 200% 200%;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 20px;
    flex-shrink: 0;
    animation: xpBadgeShine 2s ease-in-out infinite;
    box-shadow:
        0 4px 15px rgba(201, 169, 98, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.notification-popup-xp-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: badgeShineSlide 2s ease-in-out infinite;
}

@keyframes badgeShineSlide {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

@keyframes xpBadgeShine {
    0%, 100% {
        background-position: 0% 50%;
        box-shadow: 0 4px 15px rgba(201, 169, 98, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 6px 25px rgba(201, 169, 98, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

.notification-popup-content {
    padding: 20px 24px;
    position: relative;
}

/* Separator line */
.notification-popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.3), transparent);
}

.notification-popup-message {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-align: center;
}

.notification-video-container {
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    margin-top: 16px;
    border: 1px solid rgba(201, 169, 98, 0.25);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.notification-video {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    display: block;
    background: #000;
}

.notification-video-progress {
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.notification-video-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #c9a962, #e8d48b, #c9a962);
    background-size: 200% 100%;
    animation: progressGlow 1s ease infinite;
    transition: width 0.15s ease;
    box-shadow: 0 0 15px rgba(201, 169, 98, 0.6);
}

@keyframes progressGlow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.notification-video-hint {
    font-size: 13px;
    color: #c9a962;
    text-align: center;
    margin: 14px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(201, 169, 98, 0.3);
}

.notification-popup-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px 24px;
    background: transparent;
    position: relative;
}

/* Footer decorative corners */
.notification-popup-footer::before,
.notification-popup-footer::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: rgba(201, 169, 98, 0.3);
    border-style: solid;
}

.notification-popup-footer::before {
    bottom: 10px;
    left: 10px;
    border-width: 0 0 2px 2px;
    border-radius: 0 0 0 8px;
}

.notification-popup-footer::after {
    bottom: 10px;
    right: 10px;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 8px 0;
}

.notification-popup-btn {
    flex: 1;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-popup-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-popup-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.notification-popup-btn.primary {
    background: linear-gradient(135deg, #c9a962 0%, #d4b86a 100%);
    color: #1a1a1a;
    box-shadow:
        0 6px 20px rgba(201, 169, 98, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Shine sweep effect */
.notification-popup-btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transition: left 0.6s ease;
}

.notification-popup-btn.primary:hover:not(:disabled)::before {
    left: 100%;
}

.notification-popup-btn.primary:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 12px 35px rgba(201, 169, 98, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.notification-popup-btn.primary:active:not(:disabled) {
    transform: translateY(-2px) scale(0.98);
}

.notification-popup-btn.primary:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

.notification-popup-btn.primary.ready {
    animation: claimButtonEpic 1.5s ease-in-out infinite;
    background: linear-gradient(135deg, #d4b86a 0%, #e8d48b 50%, #c9a962 100%);
    background-size: 200% 200%;
}

@keyframes claimButtonEpic {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(201, 169, 98, 0.5);
        transform: scale(1);
        background-position: 0% 50%;
    }
    50% {
        box-shadow:
            0 8px 40px rgba(201, 169, 98, 0.7),
            0 0 60px rgba(201, 169, 98, 0.4);
        transform: scale(1.04);
        background-position: 100% 50%;
    }
}

/* =============================================
   VIDEO NOTIFICATION BANNER - FULLSCREEN STYLE
   ============================================= */

.notification-popup-overlay.video-mode {
    padding: 0;
    background: #000;
}

.notification-popup-overlay.video-mode::before,
.notification-popup-overlay.video-mode::after {
    display: none;
}

.notification-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: scale(1.05);
    transition: all 0.5s ease;
    border-radius: 32px; /* Match phone-frame inner radius */
    overflow: hidden;
}

.notification-popup-overlay.active .notification-banner {
    opacity: 1;
    transform: scale(1);
}

/* Video background container */
.notification-banner-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.notification-banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Play button overlay */
.notification-banner-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a962;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(201, 169, 98, 0.5);
    z-index: 10;
}

.notification-banner-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.8);
    border-color: #c9a962;
    box-shadow: 0 0 40px rgba(201, 169, 98, 0.4);
}

.notification-banner-play-btn svg {
    margin-left: 6px;
    filter: drop-shadow(0 0 10px rgba(201, 169, 98, 0.6));
}

/* Top overlay with gradient */
.notification-banner-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    z-index: 5;
    padding-top: max(20px, env(safe-area-inset-top));
}

/* Close button */
.notification-banner-close {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.notification-banner-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

/* XP badge at top */
.notification-banner-xp {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.2) 0%, rgba(201, 169, 98, 0.1) 100%);
    border: 1px solid rgba(201, 169, 98, 0.5);
    border-radius: 20px;
    padding: 8px 16px;
    backdrop-filter: blur(10px);
    animation: xpBadgePulse 2s ease-in-out infinite;
}

@keyframes xpBadgePulse {
    0%, 100% { box-shadow: 0 0 15px rgba(201, 169, 98, 0.3); }
    50% { box-shadow: 0 0 30px rgba(201, 169, 98, 0.5); }
}

.notification-banner-xp .xp-icon {
    font-size: 20px;
    font-weight: 800;
    color: #c9a962;
    text-shadow: 0 0 10px rgba(201, 169, 98, 0.5);
}

.notification-banner-xp .xp-label {
    font-size: 14px;
    font-weight: 700;
    color: rgba(201, 169, 98, 0.8);
    letter-spacing: 1px;
}

/* Bottom overlay with content */
.notification-banner-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    padding: 40px 24px;
    padding-bottom: max(30px, env(safe-area-inset-bottom));
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.8) 40%,
        rgba(0, 0, 0, 0.4) 70%,
        transparent 100%);
    z-index: 5;
}

/* Content area */
.notification-banner-content {
    text-align: center;
    margin-bottom: 20px;
}

.notification-banner-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.25) 0%, rgba(201, 169, 98, 0.1) 100%);
    border: 2px solid rgba(201, 169, 98, 0.5);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a962;
    animation: bannerIconFloat 3s ease-in-out infinite;
}

@keyframes bannerIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.notification-banner-icon svg {
    filter: drop-shadow(0 0 12px rgba(201, 169, 98, 0.6));
}

.notification-banner-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

.notification-banner-message {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    max-width: 400px;
    margin: 0 auto;
}

/* Progress bar */
.notification-banner-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.notification-banner-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #c9a962, #e8d48b, #c9a962);
    background-size: 200% 100%;
    animation: bannerProgressGlow 1.5s ease infinite;
    transition: width 0.2s ease;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(201, 169, 98, 0.5);
}

@keyframes bannerProgressGlow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Actions area */
.notification-banner-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.notification-banner-hint {
    font-size: 13px;
    color: rgba(201, 169, 98, 0.9);
    margin: 0;
    text-align: center;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.notification-banner-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    padding: 16px 28px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.notification-banner-btn.primary {
    background: linear-gradient(135deg, #c9a962 0%, #d4b86a 100%);
    color: #1a1a1a;
    box-shadow: 0 8px 30px rgba(201, 169, 98, 0.4);
}

.notification-banner-btn.primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

.notification-banner-btn.primary .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.notification-banner-btn.primary:not(:disabled):hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 45px rgba(201, 169, 98, 0.5);
}

/* Shine sweep */
.notification-banner-btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transition: left 0.6s ease;
}

.notification-banner-btn.primary:not(:disabled):hover::before {
    left: 100%;
}

/* Ready state - epic pulse */
.notification-banner-btn.primary.ready {
    animation: bannerBtnReady 1.5s ease-in-out infinite;
    background: linear-gradient(135deg, #d4b86a 0%, #e8d48b 50%, #c9a962 100%);
    background-size: 200% 200%;
}

.notification-banner-btn.primary.ready:disabled {
    opacity: 1;
    cursor: pointer;
    color: #1a1a1a;
}

.notification-banner-btn.primary.ready .btn-icon {
    opacity: 1;
    animation: starSpin 2s linear infinite;
}

@keyframes starSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes bannerBtnReady {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(201, 169, 98, 0.5);
        transform: scale(1);
        background-position: 0% 50%;
    }
    50% {
        box-shadow:
            0 12px 50px rgba(201, 169, 98, 0.7),
            0 0 80px rgba(201, 169, 98, 0.4);
        transform: scale(1.03);
        background-position: 100% 50%;
    }
}

/* =============================================
   XP RANKING STYLES - GOLDEN BARS
   ============================================= */

.xp-ranking-list {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.xp-ranking-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.xp-ranking-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.xp-rank {
    font-size: 15px;
    font-weight: 700;
    color: #c9a962;
    min-width: 32px;
    text-align: center;
}

.xp-user-info {
    flex: 1;
    min-width: 0;
}

.xp-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xp-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.xp-bar {
    height: 100%;
    background: linear-gradient(90deg, #c9a962 0%, #d4b86a 50%, #c9a962 100%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmer 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(201, 169, 98, 0.4);
    transition: width 0.6s ease;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.xp-value {
    font-size: 12px;
    font-weight: 700;
    color: #c9a962;
    white-space: nowrap;
    min-width: 70px;
    text-align: right;
}

/* XP Values container (month + total) */
.xp-values {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 90px;
}

.xp-month {
    font-size: 14px;
    font-weight: 700;
    color: #22c55e;
    white-space: nowrap;
}

.xp-month span {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.8;
}

.xp-total {
    font-size: 11px;
    font-weight: 600;
    color: #c9a962;
    white-space: nowrap;
}

.xp-total span {
    font-size: 9px;
    font-weight: 500;
    opacity: 0.7;
}


/* =============================================
   XP NOTIFICATION - Notificação de XP ganho
   ============================================= */

/* ===============================================
   XP REWARD MODAL (Mobile Fullscreen Style)
   =============================================== */
.xp-reward-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 32px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.xp-reward-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.xp-reward-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* Glow effect behind icon */
.xp-reward-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.6) 0%, rgba(201, 169, 98, 0) 70%);
    animation: xpRewardGlow 2s ease-in-out infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes xpRewardGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 1;
    }
}

/* Sparkles */
.xp-reward-sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 6px var(--accent-primary);
}

.xp-reward-sparkle:nth-child(2) { top: 0%; left: 50%; animation: xpSparkle 1.5s ease-in-out infinite 0s; }
.xp-reward-sparkle:nth-child(3) { top: 15%; left: 15%; animation: xpSparkle 1.5s ease-in-out infinite 0.2s; }
.xp-reward-sparkle:nth-child(4) { top: 15%; right: 15%; animation: xpSparkle 1.5s ease-in-out infinite 0.4s; }
.xp-reward-sparkle:nth-child(5) { top: 50%; left: 0%; animation: xpSparkle 1.5s ease-in-out infinite 0.6s; }
.xp-reward-sparkle:nth-child(6) { top: 50%; right: 0%; animation: xpSparkle 1.5s ease-in-out infinite 0.8s; }
.xp-reward-sparkle:nth-child(7) { bottom: 15%; left: 15%; animation: xpSparkle 1.5s ease-in-out infinite 1s; }
.xp-reward-sparkle:nth-child(8) { bottom: 15%; right: 15%; animation: xpSparkle 1.5s ease-in-out infinite 1.2s; }
.xp-reward-sparkle:nth-child(9) { bottom: 0%; left: 50%; animation: xpSparkle 1.5s ease-in-out infinite 1.4s; }

@keyframes xpSparkle {
    0%, 100% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* XP Icon */
.xp-reward-icon {
    font-size: 80px;
    z-index: 2;
    animation: xpIconPulse 1s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(201, 169, 98, 0.8));
    margin-bottom: 20px;
}

@keyframes xpIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* XP Amount */
.xp-reward-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent-primary);
    text-shadow: 0 0 30px rgba(201, 169, 98, 0.8), 0 0 60px rgba(201, 169, 98, 0.4);
    margin-bottom: 12px;
    opacity: 0;
    transform: scale(0.5);
    animation: xpAmountIn 0.6s ease forwards;
    animation-delay: 0.3s;
}

@keyframes xpAmountIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Reason */
.xp-reward-reason {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 24px;
    opacity: 0;
    animation: xpReasonIn 0.5s ease forwards;
    animation-delay: 0.6s;
}

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

/* Total XP */
.xp-reward-total {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(201, 169, 98, 0.15);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 30px;
    opacity: 0;
    animation: xpTotalIn 0.5s ease forwards;
    animation-delay: 0.9s;
}

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

.xp-reward-total .label {
    font-size: 14px;
    color: var(--text-secondary);
}

.xp-reward-total .value {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-primary);
}

/* Continue Button */
.xp-reward-continue-btn {
    margin-top: 40px;
    padding: 16px 48px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    border-radius: 30px;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    animation: xpBtnIn 0.5s ease forwards;
    animation-delay: 1.2s;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.xp-reward-continue-btn:active {
    transform: scale(0.95);
}

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

/* ===============================================
   XP LOSS MODE (Penalty Animation)
   =============================================== */
.xp-reward-overlay.loss-mode {
    background: rgba(30, 0, 0, 0.95);
}

.xp-reward-overlay.loss-mode .xp-reward-glow {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.6) 0%, rgba(239, 68, 68, 0) 70%);
    animation: xpLossGlow 0.5s ease-in-out infinite;
}

@keyframes xpLossGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

.xp-reward-overlay.loss-mode .xp-reward-sparkle {
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

.xp-reward-overlay.loss-mode .xp-reward-icon {
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.8));
    animation: xpLossShake 0.5s ease-in-out infinite;
}

@keyframes xpLossShake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    20% { transform: translateX(-5px) rotate(-5deg); }
    40% { transform: translateX(5px) rotate(5deg); }
    60% { transform: translateX(-3px) rotate(-3deg); }
    80% { transform: translateX(3px) rotate(3deg); }
}

.xp-reward-amount.xp-loss {
    color: #ef4444 !important;
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.8), 0 0 60px rgba(239, 68, 68, 0.4) !important;
    animation: xpLossAmount 0.6s ease forwards, xpLossFlash 0.3s ease-in-out 3 !important;
    animation-delay: 0.3s !important;
}

@keyframes xpLossAmount {
    from {
        opacity: 0;
        transform: scale(1.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes xpLossFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.xp-reward-overlay.loss-mode .xp-reward-continue-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.xp-reward-overlay.loss-mode .xp-reward-continue-btn:active {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* =============================================
   TASK BLOCK SECTION (Project Detail)
   ============================================= */
.task-block-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.task-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.task-block-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 14px;
}

.task-block-title svg {
    width: 18px;
    height: 18px;
}

.task-block-count {
    background: var(--accent-primary);
    color: #000;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.task-block-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-block-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.task-block-item.completed {
    opacity: 0.6;
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--accent-green);
}

.task-block-item .task-number {
    width: 24px;
    height: 24px;
    background: var(--accent-primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.task-block-item.completed .task-number {
    background: var(--accent-green);
}

.task-block-item .task-content {
    flex: 1;
}

.task-block-item .task-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.task-block-item .task-description {
    font-size: 12px;
    color: var(--text-secondary);
}

.task-loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px;
    font-size: 14px;
}

/* Task Block Item - Clickable with Checkbox */
.task-block-item.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-block-item.clickable:hover {
    background: var(--bg-tertiary);
}

.task-block-item.clickable:active {
    transform: scale(0.98);
}

.task-block-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.task-checkbox-inline {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.task-checkbox-inline svg {
    width: 14px;
    height: 14px;
    stroke: white;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.task-block-item.completed .task-checkbox-inline {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.task-block-item.completed .task-checkbox-inline svg {
    opacity: 1;
}

.task-block-item.completed .task-name {
    text-decoration: line-through;
    opacity: 0.7;
}

/* =============================================
   TASK PHASE TABS & BLOCKS
   ============================================= */
.phase-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding: 4px;
    background: var(--surface-darker);
    border-radius: 12px;
}

.phase-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

.phase-tab.active {
    background: var(--surface-lighter);
}

.phase-tab.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.phase-tab:not(.locked):hover {
    background: var(--surface-lighter);
}

.phase-icon {
    font-size: 20px;
}

.phase-name {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.phase-tab.active .phase-name {
    color: var(--accent-primary);
}

.phase-progress {
    font-size: 10px;
    color: var(--text-muted);
    background: var(--surface-darker);
    padding: 2px 6px;
    border-radius: 4px;
}

.current-phase-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: var(--surface-card);
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
}

.phase-badge {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--accent-primary);
    color: var(--bg-dark);
}

.phase-badge.preparo {
    background: #f97316;
}

.phase-badge.aplicacao {
    background: #3b82f6;
}

.phase-badge.acabamento {
    background: #22c55e;
}

.phase-status {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Phase Deadline Countdown */
.phase-deadline-countdown {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: fadeInSlide 0.3s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phase-deadline-countdown.deadline-normal {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.phase-deadline-countdown.deadline-warning {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(249, 115, 22, 0.05) 100%);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: #fb923c;
}

.phase-deadline-countdown.deadline-urgent {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    animation: fadeInSlide 0.3s ease-out, pulse 2s infinite;
}

.phase-deadline-countdown.deadline-past {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

.deadline-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.deadline-message {
    flex: 1;
    line-height: 1.3;
}

.phase-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.empty-phase-message {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
}

.empty-phase-message.completed-all {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.empty-phase-message .completed-icon {
    display: block;
    font-size: 32px;
    margin-bottom: 8px;
    color: #22c55e;
}

/* Simplified task item for task list view */
.task-block-item-simple {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface-card);
    border-radius: 10px;
    border: 1px solid var(--border-light);
}

.task-block-item-simple .task-color-bar {
    width: 4px;
    height: 32px;
    border-radius: 2px;
    flex-shrink: 0;
}

.task-block-item-simple .task-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.task-block-item-simple .task-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.task-block-item-simple .task-surface-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.task-surface-tag.piso {
    background: rgba(201, 169, 98, 0.2);
    color: #c9a962;
}

.task-surface-tag.parede {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.task-block-item-simple .task-partial-badge {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* CURA (curing) task styles */
.task-block-item-simple.cura-active {
    border: 1px solid rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.05);
    animation: cura-pulse 3s ease-in-out infinite;
}

@keyframes cura-pulse {
    0%, 100% { background: rgba(34, 197, 94, 0.05); }
    50% { background: rgba(34, 197, 94, 0.1); }
}

.cura-icon {
    animation: cura-hourglass 2s ease-in-out infinite;
    margin-right: 4px;
}

@keyframes cura-hourglass {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

.cura-countdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

.cura-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.cura-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #86efac);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.cura-time-remaining {
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 500;
}

.cura-waiting-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.cura-waiting-icon {
    font-size: 12px;
}

.cura-complete-early-btn {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cura-complete-early-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.cura-complete-early-btn:active {
    transform: scale(0.98);
}

.cura-complete-early-btn .btn-icon {
    font-size: 12px;
}

/* Checkout task item styles */
.checkout-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-task-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--surface-card);
    border-radius: 10px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.checkout-task-item.selected {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.05);
}

.checkout-task-item.partial-selected {
    border-color: rgba(249, 115, 22, 0.4);
    background: rgba(249, 115, 22, 0.05);
}

.checkout-task-color {
    width: 4px;
    height: 36px;
    border-radius: 2px;
    flex-shrink: 0;
}

.checkout-task-info {
    flex: 1;
    min-width: 120px;
}

.checkout-task-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.checkout-task-current {
    font-size: 11px;
    color: #fb923c;
    margin-top: 2px;
}

/* Checkout task header with name and surface badge */
.checkout-task-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.checkout-surface-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.checkout-surface-badge.parede {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.checkout-surface-badge.piso {
    background: rgba(201, 169, 98, 0.2);
    color: #c9a962;
}

/* Dropdown for task completion type */
.checkout-task-dropdown {
    flex-shrink: 0;
}

.checkout-task-dropdown select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: var(--surface-darker);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.checkout-task-dropdown select:focus {
    border-color: var(--accent-primary);
}

/* Load more button */
.checkout-load-more {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    margin-top: 12px;
    border: 2px dashed var(--border-light);
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkout-load-more:active {
    transform: scale(0.98);
}

.checkout-load-more:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.checkout-load-more .plus-icon {
    font-size: 20px;
    font-weight: 300;
}

/* Legacy - keep for backwards compatibility */
.checkout-task-actions {
    display: none;
}

.checkout-action-btn {
    display: none;
}

.checkout-partial-slider {
    display: none;
}

.checkout-partial-slider input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--surface-darker);
    border-radius: 3px;
    outline: none;
}

.checkout-partial-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f97316;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.checkout-partial-slider .slider-value {
    font-size: 14px;
    font-weight: 600;
    color: #fb923c;
    min-width: 40px;
    text-align: right;
}

/* Checkout deadline message */
.checkout-deadline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #60a5fa;
}

.checkout-deadline.urgent {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.checkout-deadline.past {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.08) 100%);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    font-weight: 600;
}

.checkout-deadline .deadline-icon {
    font-size: 16px;
}

.next-phase-preview {
    margin-top: 16px;
    padding: 12px;
    background: linear-gradient(135deg, var(--surface-card) 0%, var(--surface-lighter) 100%);
    border-radius: 8px;
    border: 1px dashed var(--border-light);
}

.next-phase-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.next-phase-icon {
    font-size: 18px;
}

.next-phase-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* Task item with partial completion */
.task-block-item.partial {
    border-left: 3px solid #f97316;
}

.task-block-item .task-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.task-checkbox-inline.partial {
    background: rgba(249, 115, 22, 0.2);
    border-color: #f97316;
}

.partial-indicator {
    font-size: 10px;
    font-weight: 700;
    color: #f97316;
}

.task-surface-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    margin-top: 4px;
    background: var(--surface-darker);
    color: var(--text-muted);
}

.task-surface-badge.piso {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.task-surface-badge.parede {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.task-progress-bar {
    height: 3px;
    background: var(--surface-darker);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.task-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f97316 0%, #22c55e 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Task Action Buttons */
.task-action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.task-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-action-btn .btn-icon {
    font-size: 16px;
}

.task-action-btn.partial {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.task-action-btn.partial:hover {
    background: rgba(249, 115, 22, 0.25);
}

.task-action-btn.partial.active {
    background: #f97316;
    color: white;
}

.task-action-btn.integral {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.task-action-btn.integral:hover {
    background: rgba(34, 197, 94, 0.25);
}

.task-action-btn.reset {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.task-action-btn.reset:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* Completed task styling */
.task-block-item.completed .task-action-buttons {
    border-top-color: rgba(34, 197, 94, 0.2);
}

/* =============================================
   TASK COMPLETION OPTIONS MODAL
   ============================================= */
.task-completion-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.task-completion-options-modal {
    background: var(--surface-card);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 340px;
    text-align: center;
}

.task-completion-options-modal h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.task-title-preview {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding: 8px 12px;
    background: var(--surface-darker);
    border-radius: 8px;
}

.completion-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.completion-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--surface-darker);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.completion-option:hover {
    border-color: var(--accent-primary);
}

.completion-option.integral:hover {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.completion-option.partial:hover {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.1);
}

.completion-option .option-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-lighter);
    border-radius: 10px;
}

.completion-option.integral .option-icon {
    color: #22c55e;
}

.completion-option.partial .option-icon {
    color: #f97316;
}

.completion-option .option-text {
    flex: 1;
}

.completion-option .option-text strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.completion-option .option-text small {
    font-size: 12px;
    color: var(--text-muted);
}

.completion-option .xp-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    background: var(--accent-primary);
    color: var(--bg-dark);
    border-radius: 4px;
}

.partial-slider-container {
    padding: 16px;
    background: var(--surface-darker);
    border-radius: 12px;
    margin-bottom: 16px;
}

.partial-slider-container label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.partial-slider-container input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--surface-lighter);
    border-radius: 4px;
    outline: none;
}

.partial-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #f97316;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.slider-labels #currentProgressLabel {
    font-weight: 700;
    color: #f97316;
    font-size: 14px;
}

.confirm-partial-btn {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: #f97316;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.reset-task-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: #ef4444;
    border: 1px solid #ef4444;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 8px;
}

.cancel-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: var(--text-muted);
    border: none;
    font-size: 13px;
    cursor: pointer;
}

/* =============================================
   TASK COMPLETION MODAL
   ============================================= */
.task-completion-modal {
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.task-completion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.task-completion-header svg {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
}

.task-completion-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.task-completion-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.today-tasks-list {
    flex: 1;
    overflow-y: auto;
    max-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding-right: 4px;
}

.task-checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-checkbox-item:active {
    transform: scale(0.98);
}

.task-checkbox-item.checked {
    background: rgba(34, 197, 94, 0.15);
    border-color: var(--accent-green);
}

.task-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--text-tertiary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.task-checkbox-item.checked .task-checkbox {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.task-checkbox svg {
    width: 14px;
    height: 14px;
    color: #000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.task-checkbox-item.checked .task-checkbox svg {
    opacity: 1;
}

.task-checkbox-content {
    flex: 1;
}

.task-checkbox-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.task-checkbox-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.btn-all-tasks {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: transparent;
    border: 1px dashed var(--text-tertiary);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.btn-all-tasks:active {
    background: var(--bg-card);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-all-tasks svg {
    width: 18px;
    height: 18px;
}

.task-completion-buttons {
    display: flex;
    gap: 12px;
}

.task-completion-buttons button {
    flex: 1;
}

/* =============================================
   ALL TASKS MODAL
   ============================================= */
.all-tasks-modal {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-header-with-back {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.btn-back-modal {
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back-modal:active {
    transform: scale(0.95);
    background: var(--bg-card);
}

.btn-back-modal svg {
    width: 18px;
    height: 18px;
    color: var(--text-primary);
}

.modal-header-with-back h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.all-tasks-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding-right: 4px;
}

.all-tasks-buttons {
    display: flex;
}

.all-tasks-buttons button {
    flex: 1;
}

.task-group-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    margin-top: 8px;
}

.task-group-label:first-child {
    margin-top: 0;
}

/* =============================================
   REPORT REMINDER MODAL
   ============================================= */
.report-reminder-modal {
    text-align: center;
}

.report-reminder-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.report-reminder-icon svg {
    width: 32px;
    height: 32px;
    color: #000;
}

.report-reminder-modal h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.report-reminder-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.report-reminder-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-report-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-report-option:active {
    transform: scale(0.98);
    background: var(--bg-card);
}

.btn-report-option.primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-color: var(--accent-primary);
    color: #000;
    font-weight: 600;
}

.btn-report-option.primary svg {
    color: #000;
}

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

.btn-report-option.skip {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 12px;
}

.btn-report-option.skip:active {
    color: var(--text-primary);
}

/* =============================================
   REPORT REMINDER BANNER
   ============================================= */

.reminder-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.reminder-banner.hiding {
    animation: slideUp 0.3s ease-in forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.reminder-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.reminder-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.reminder-text {
    flex: 1;
    min-width: 0;
}

.reminder-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.reminder-text p {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.reminder-action {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #fff;
    color: #ea580c;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.reminder-action:active {
    transform: scale(0.95);
}

.reminder-dismiss {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.reminder-dismiss:active {
    background: rgba(255, 255, 255, 0.3);
}

/* =============================================
   AUTO-CHECKOUT MODALS
   ============================================= */

/* Warning Modal Styles */
.auto-checkout-warning {
    text-align: center;
}

.auto-checkout-warning .warning-icon {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
}

.auto-checkout-warning .warning-icon svg {
    stroke: var(--accent-red);
}

.auto-checkout-question {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.auto-checkout-countdown {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
    color: var(--text-secondary);
}

.countdown-timer {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-red);
    min-width: 32px;
    text-align: center;
}

/* Auto-checkout Done Modal */
.auto-checkout-done-content {
    text-align: center;
    padding: 32px 24px;
}

.auto-checkout-done-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.auto-checkout-done-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-green);
}

.auto-checkout-done-content h2 {
    color: var(--text-primary);
    font-size: 20px;
    margin-bottom: 12px;
}

.auto-checkout-done-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.auto-checkout-done-content .project-name {
    color: var(--accent-primary);
    font-weight: 600;
}

.auto-checkout-done-content .hours-worked {
    font-size: 16px;
    color: var(--accent-green);
    font-weight: 500;
    margin-bottom: 24px;
}

.btn-justify {
    width: 100%;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent-blue);
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.btn-justify svg {
    width: 16px;
    height: 16px;
}

.btn-justify:active {
    transform: scale(0.98);
    background: rgba(59, 130, 246, 0.2);
}

/* Auto-checkout Justify Modal */
.auto-checkout-justify-content {
    padding: 24px;
}

.auto-checkout-justify-content h2 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 8px;
    text-align: center;
}

.auto-checkout-justify-content > p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
}

.auto-checkout-justify-content textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    resize: none;
    min-height: 120px;
}

.auto-checkout-justify-content textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.auto-checkout-justify-content textarea::placeholder {
    color: var(--text-tertiary);
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 8px;
    margin-bottom: 20px;
}

.justify-actions {
    display: flex;
    gap: 12px;
}

.justify-actions button {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.justify-actions .btn-secondary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.justify-actions .btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    color: #000;
}

.justify-actions .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ====================================== */
/* LEAVING PROJECT MODAL (Movement Tracking) */
/* ====================================== */

.leaving-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.leaving-modal-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 24px;
    max-width: 360px;
    width: 100%;
    animation: slideUpModal 0.4s ease;
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leaving-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.leaving-modal-header h2 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.leaving-modal-header p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.leaving-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.leaving-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.leaving-option:hover {
    border-color: var(--accent-primary);
    background: rgba(201, 169, 98, 0.1);
}

.leaving-option:active {
    transform: scale(0.98);
}

.leaving-option .option-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.leaving-option .option-icon.material {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.leaving-option .option-icon.lunch {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.leaving-option .option-icon.other-project {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.leaving-option .option-icon.emergency {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.leaving-option .option-icon.end-day {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.leaving-option .option-text {
    flex: 1;
}

.leaving-option .option-text .option-title {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 2px;
}

.leaving-option .option-text .option-desc {
    color: var(--text-tertiary);
    font-size: 12px;
}

.leaving-modal-actions {
    display: flex;
    gap: 12px;
}

.leaving-modal-actions button {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.leaving-modal-actions .btn-cancel {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.leaving-modal-actions .btn-cancel:hover {
    border-color: var(--accent-primary);
}

/* ====================================== */
/* MORNING ACTIVITY ALERT */
/* ====================================== */

.morning-alert {
    position: fixed;
    top: 80px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 16px;
    padding: 16px;
    z-index: 9999;
    animation: slideDown 0.5s ease;
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.4);
}

.morning-alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.morning-alert-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.morning-alert-text h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.morning-alert-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.morning-alert-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================== */
/* TIMELINE SECTION (Profile/Academia) */
/* ====================================== */

.timeline-section {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.timeline-header h3 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.timeline-date {
    color: var(--text-secondary);
    font-size: 13px;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: 12px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 36px;
    bottom: -12px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-item-icon.movement {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.timeline-item-icon.checkin {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.timeline-item-icon.checkout {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.timeline-item-icon.gps-off {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.timeline-item-icon.morning {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.timeline-item-content {
    flex: 1;
    min-width: 0;
}

.timeline-item-title {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.timeline-item-desc {
    color: var(--text-tertiary);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-item-time {
    color: var(--text-secondary);
    font-size: 12px;
    white-space: nowrap;
}

.timeline-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-tertiary);
}

.timeline-empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.timeline-empty p {
    font-size: 14px;
}

/* ====================================== */
/* GPS WARNING MODAL (3 strikes checkout) */
/* ====================================== */

.gps-warning-modal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    padding: 20px;
    animation: fadeIn 0.3s ease;
    border-radius: 32px; /* Match phone-frame inner radius */
}

.gps-warning-content {
    background: linear-gradient(180deg, #2a1a1a 0%, #1a1a1a 100%);
    border: 2px solid #ef4444;
    border-radius: 24px;
    padding: 28px 24px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    animation: shakeIn 0.5s ease;
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.4);
}

@keyframes shakeIn {
    0% { transform: scale(0.9) translateX(0); opacity: 0; }
    20% { transform: scale(1.02) translateX(-10px); }
    40% { transform: scale(1) translateX(10px); }
    60% { transform: scale(1) translateX(-5px); }
    80% { transform: scale(1) translateX(5px); }
    100% { transform: scale(1) translateX(0); opacity: 1; }
}

.gps-warning-icon {
    font-size: 56px;
    margin-bottom: 16px;
    animation: pulse 1.5s infinite;
}

.gps-warning-content h2 {
    color: #ef4444;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gps-warning-text {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.gps-warning-text strong {
    color: #ef4444;
}

.gps-warning-counter {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.gps-warning-urgent {
    background: linear-gradient(135deg, #7f1d1d, #991b1b);
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 16px;
    animation: pulseUrgent 1s infinite;
}

@keyframes pulseUrgent {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    50% { box-shadow: 0 0 20px 5px rgba(239, 68, 68, 0.3); }
}

.gps-warning-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.btn-enable-gps {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.btn-enable-gps:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

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

.btn-enable-gps span {
    font-size: 20px;
}

.btn-dismiss-gps {
    background: transparent;
    color: var(--text-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-dismiss-gps:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* GPS Instructions Modal */
.gps-warning-content.gps-instructions {
    border-color: #3b82f6;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

.gps-warning-content.gps-instructions h2 {
    color: #3b82f6;
}

.gps-instructions-text {
    text-align: left;
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.gps-instructions-text p {
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 12px;
}

.gps-instructions-text ol {
    color: var(--text-secondary);
    font-size: 14px;
    padding-left: 20px;
    margin: 0;
}

.gps-instructions-text ol li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.gps-instructions-text strong {
    color: var(--accent-primary);
}

/* ====================================== */
/* GPS AUTO-CHECKOUT MODAL (1 minute rule) */
/* ====================================== */

.gps-checkout-modal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10003;
    padding: 20px;
    animation: fadeIn 0.3s ease;
    border-radius: 32px; /* Match phone-frame inner radius */
}

.gps-checkout-content {
    background: linear-gradient(180deg, #2a1a1a 0%, #1a1a1a 100%);
    border: 3px solid #ef4444;
    border-radius: 24px;
    padding: 32px 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    animation: shakeIn 0.5s ease;
    box-shadow: 0 0 60px rgba(239, 68, 68, 0.5);
}

.gps-checkout-icon {
    font-size: 72px;
    margin-bottom: 16px;
    animation: pulseIcon 1s infinite;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.gps-checkout-content h2 {
    color: #ef4444;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.gps-checkout-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.btn-gps-checkout-ok {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.btn-gps-checkout-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5);
}

.btn-gps-checkout-ok:active {
    transform: scale(0.98);
}

.gps-checkout-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.gps-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5);
}

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

.gps-subtitle {
    color: #888 !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
}

.gps-checkout-content h3 {
    color: #ef4444;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* ====================================== */
/* GPS MOBILE-FRIENDLY MODALS (NEW)       */
/* ====================================== */

.gps-mobile-modal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 10003;
    padding: 0;
    animation: fadeIn 0.2s ease;
    border-radius: 32px; /* Match phone-frame inner radius */
}

.gps-mobile-modal.active {
    display: flex;
}

.gps-mobile-content {
    background: #1a1a1a;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 24px 20px 32px;
    width: 100%;
    max-width: 100%;
    animation: slideUpMobile 0.3s ease;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.gps-mobile-content.warning {
    border-top: 4px solid #f97316;
}

.gps-mobile-content.checkout {
    border-top: 4px solid #ef4444;
}

@keyframes slideUpMobile {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gps-mobile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.gps-mobile-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gps-mobile-icon-wrapper.warning {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    animation: pulseWarning 1.5s infinite;
}

.gps-mobile-icon-wrapper.checkout {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

@keyframes pulseWarning {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(249, 115, 22, 0.2);
    }
}

.gps-mobile-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.gps-mobile-body {
    text-align: center;
    padding: 0 10px;
}

.gps-countdown-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 4px solid #f97316;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.3);
}

.gps-countdown-circle #gps-countdown {
    font-size: 48px;
    font-weight: 800;
    color: #f97316;
    line-height: 1;
    transition: transform 0.2s ease;
}

.gps-countdown-circle #gps-countdown.pulse {
    transform: scale(1.2);
}

.gps-countdown-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.gps-mobile-message {
    font-size: 16px;
    color: #ccc;
    margin: 0 0 8px;
    line-height: 1.5;
}

.gps-mobile-hint {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* Checkout notification specific styles */
.gps-project-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2a2a2a;
    padding: 10px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.gps-project-badge svg {
    color: #c9a962;
}

.gps-mobile-message-checkout {
    font-size: 18px;
    color: #fff;
    font-weight: 600;
    margin: 0 0 12px;
}

.gps-mobile-warning {
    font-size: 16px;
    color: #ef4444;
    font-weight: 600;
    margin: 0 0 8px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.gps-mobile-reason {
    font-size: 13px;
    color: #888;
    margin: 12px 0 0;
}

.gps-mobile-btn {
    width: 100%;
    padding: 16px;
    margin-top: 24px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.gps-mobile-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.2);
}

/* Close button (X) for GPS modal */
.gps-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2a2a2a;
    border: none;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1;
}

.gps-modal-close:hover,
.gps-modal-close:active {
    background: #3a3a3a;
    color: #fff;
}

/* GPS modal content needs position relative for absolute close button */
.gps-mobile-content {
    position: relative;
}

/* GPS modal actions container */
.gps-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

/* GPS modal button styles */
.gps-modal-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gps-modal-btn.primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.gps-modal-btn.primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.2);
}

.gps-modal-btn.primary:disabled {
    background: #444;
    color: #888;
    box-shadow: none;
    cursor: not-allowed;
}

.gps-modal-btn.secondary {
    background: #2a2a2a;
    color: #888;
    border: 1px solid #3a3a3a;
}

.gps-modal-btn.secondary:active {
    background: #3a3a3a;
    color: #fff;
}

/* Spinner for loading state */
.gps-modal-btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =============================================
   PUNCTUALITY NOTIFICATION STYLES
   ============================================= */

/* Base overlay */
.punctuality-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: punctualityFadeIn 0.4s ease forwards;
    pointer-events: all;
    overflow: hidden;
}

.punctuality-overlay.punctuality-success {
    background: radial-gradient(ellipse at center, rgba(0, 30, 40, 0.95) 0%, rgba(0, 10, 20, 0.98) 100%);
}

.punctuality-overlay.punctuality-broken {
    background: radial-gradient(ellipse at center, rgba(40, 20, 0, 0.95) 0%, rgba(20, 10, 0, 0.98) 100%);
}

@keyframes punctualityFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Container */
.punctuality-container {
    position: relative;
    text-align: center;
    animation: punctualityBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    z-index: 10;
    padding: 24px;
}

@keyframes punctualityBounce {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    50% { transform: scale(1.1) rotate(3deg); }
    70% { transform: scale(0.95) rotate(-1deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Rings */
.punctuality-rings-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.punctuality-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border: 3px solid rgba(6, 182, 212, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: punctualityRingExpand 1.5s ease-out forwards infinite;
}

@keyframes punctualityRingExpand {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; border-width: 4px; }
    100% { transform: translate(-50%, -50%) scale(4); opacity: 0; border-width: 1px; }
}

/* Rays */
.punctuality-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 280px;
    transform: translate(-50%, -50%);
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(6, 182, 212, 0.12) 10deg,
        transparent 20deg,
        transparent 30deg,
        rgba(6, 182, 212, 0.12) 40deg,
        transparent 50deg
    );
    animation: punctualityRaysSpin 10s linear infinite;
    border-radius: 50%;
}

@keyframes punctualityRaysSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Glow */
.punctuality-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, transparent 70%);
    animation: punctualityGlowPulse 1.5s ease-in-out infinite;
}

@keyframes punctualityGlowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

/* Icon Container */
.punctuality-icon-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
}

.punctuality-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.4),
                0 0 60px rgba(6, 182, 212, 0.2);
    animation: punctualityIconPulse 1.5s ease-in-out infinite;
}

.punctuality-icon-bg.broken {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.4),
                0 0 60px rgba(249, 115, 22, 0.2);
}

@keyframes punctualityIconPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

.punctuality-icon-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    z-index: 2;
    animation: punctualityIconBob 2s ease-in-out infinite;
}

@keyframes punctualityIconBob {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-4px); }
}

.punctuality-icon-fire {
    position: absolute;
    top: -5px;
    right: 0;
    font-size: 28px;
    animation: fireWiggle 0.5s ease-in-out infinite;
}

@keyframes fireWiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.punctuality-icon-clock {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 24px;
    opacity: 0.6;
}

/* Title */
.punctuality-title {
    font-size: 28px;
    font-weight: 700;
    color: #06b6d4;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(6, 182, 212, 0.5);
}

.punctuality-title.broken {
    color: #f97316;
    text-shadow: 0 2px 10px rgba(249, 115, 22, 0.5);
}

.punctuality-subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 16px;
}

/* Multiplier */
.punctuality-multiplier-container {
    margin: 20px 0;
}

.punctuality-multiplier-container.broken {
    opacity: 0.7;
}

.punctuality-multiplier-badge {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
    animation: multiplierPulse 1.5s ease-in-out infinite;
}

@keyframes multiplierPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 6px 30px rgba(6, 182, 212, 0.6); }
}

.punctuality-multiplier-value {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.punctuality-broken .punctuality-multiplier-value {
    font-size: 28px;
    color: #f97316;
}

.punctuality-multiplier-label {
    font-size: 13px;
    color: #06b6d4;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.punctuality-broken .punctuality-multiplier-label {
    color: #f97316;
}

/* Streak */
.punctuality-streak {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
    padding: 10px 20px;
    background: rgba(6, 182, 212, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.streak-fire {
    font-size: 18px;
}

.streak-text {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

/* XP Breakdown */
.punctuality-xp-breakdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
    font-size: 14px;
    color: #888;
}

.punctuality-xp-breakdown .xp-base {
    color: #888;
}

.punctuality-xp-breakdown .xp-multiplied {
    color: #06b6d4;
    font-weight: 600;
}

.punctuality-xp-breakdown .xp-equals {
    color: #666;
}

.punctuality-xp-breakdown .xp-total {
    font-size: 18px;
    font-weight: 700;
    color: #22c55e;
}

/* XP Earned (for broken streak) */
.punctuality-xp-earned {
    margin: 16px 0;
}

.punctuality-xp-earned .xp-value {
    font-size: 24px;
    font-weight: 700;
    color: #22c55e;
}

.punctuality-xp-earned .xp-label {
    font-size: 16px;
    color: #22c55e;
    margin-left: 4px;
}

/* Tip */
.punctuality-tip {
    font-size: 13px;
    color: #666;
    margin: 12px 0;
    padding: 10px 16px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 12px;
    border-left: 3px solid #f97316;
}

/* Continue Button */
.punctuality-continue-btn {
    margin-top: 20px;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
    transition: all 0.2s ease;
}

.punctuality-continue-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.3);
}

.punctuality-broken .punctuality-continue-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

/* Confetti */
.punctuality-confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.punctuality-confetti {
    position: absolute;
    top: -20px;
    border-radius: 2px;
    animation: punctualityConfettiFall 2s ease-out forwards;
}

.punctuality-confetti.confetti-circle {
    border-radius: 50%;
}

@keyframes punctualityConfettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Floating Clocks */
.punctuality-floating-clocks-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.punctuality-floating-clock {
    position: absolute;
    bottom: 100%;
    font-size: 24px;
    animation: floatClockUp 2.5s ease-out forwards;
}

@keyframes floatClockUp {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }
    20% {
        opacity: 1;
        transform: translateY(-20vh) scale(1);
    }
    100% {
        transform: translateY(-100vh) scale(0.8);
        opacity: 0;
    }
}

/* =============================================
   ACADEMY EDUCATIONAL VIDEOS STYLES
   ============================================= */

/* Academy Tabs */
.academy-tabs {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
}

.academy-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.academy-tab.active {
    background: var(--accent-primary);
    color: #000;
}

.academy-tab svg {
    stroke: currentColor;
}

.academy-section {
    animation: fadeIn 0.3s ease;
}

/* Trilha XP Card */
.trilha-xp-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 16px;
}

.trilha-xp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.trilha-xp-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.trilha-xp-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.trilha-xp-bar {
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 5px;
    overflow: hidden;
}

.trilha-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #f5d485);
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* Ranking Tabs */
.ranking-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.ranking-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ranking-tab.active {
    background: var(--primary);
    color: #000;
}

.ranking-tab:hover:not(.active) {
    background: var(--bg-tertiary);
}

/* XP Value Single (for ranking items) */
.xp-value-single {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

/* Videos List */
.academy-videos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.academy-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Video Card */
.academy-video-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.academy-video-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color);
}

.academy-video-card.completed {
    border-color: rgba(34, 197, 94, 0.3);
}

.academy-video-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.video-card-thumbnail {
    position: relative;
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.video-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-card-thumbnail .play-icon svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    fill: #fff;
    margin-left: 2px;
}

.video-card-thumbnail .duration-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    font-size: 10px;
    color: #fff;
}

.video-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.video-card-level {
    font-size: 11px;
    color: var(--text-tertiary);
    padding: 2px 6px;
    background: var(--bg-secondary);
    border-radius: 4px;
}

.video-card-xp {
    font-size: 11px;
    color: var(--accent-primary);
    font-weight: 600;
}

/* XP progress states */
.video-card-xp.xp-complete {
    color: #22c55e; /* Verde - ganhou todo XP */
}

.video-card-xp.xp-partial {
    color: var(--accent-primary); /* Dourado - ganhou parcialmente */
}

.video-card-xp.xp-none {
    color: rgba(255, 255, 255, 0.5); /* Cinza - ainda nao ganhou */
}

.video-card-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-card-progress-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
}

.video-card-progress-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.video-card-progress-fill.completed {
    background: var(--accent-green);
}

.video-card-progress-text {
    font-size: 11px;
    color: var(--text-secondary);
    min-width: 30px;
    text-align: right;
}

.video-card-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

.video-card-badge.quiz {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
}

.video-card-badge.quiz-done {
    background: rgba(34, 197, 94, 0.2);
    color: var(--accent-green);
}

.video-card-badge.locked {
    background: rgba(136, 136, 136, 0.2);
    color: var(--text-secondary);
}

/* Video Player Screen */
.video-player-content {
    padding: 0 !important;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.academy-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Quality Selector */
.video-quality-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.video-quality-selector label {
    font-size: 13px;
    color: var(--text-secondary);
}

.video-quality-selector select {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
}

.video-quality-selector select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.video-overlay-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-overlay-loading.hidden {
    display: none;
}

.video-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.video-info-section {
    padding: 20px 16px;
}

.video-info-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.video-info-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.video-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.video-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.video-meta-item svg {
    stroke: var(--text-tertiary);
}

.video-meta-badge {
    font-size: 11px;
    padding: 4px 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    color: var(--text-secondary);
}

.video-watch-progress {
    margin-bottom: 20px;
}

.watch-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.watch-progress-bar {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
}

.watch-progress-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.video-quiz-section {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Claim XP Section */
.claim-xp-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.claim-xp-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #b8942e 100%);
    border: none;
    border-radius: var(--border-radius);
    color: #000;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.3);
}

.claim-xp-btn svg {
    stroke: #000;
    fill: rgba(0, 0, 0, 0.1);
}

.claim-xp-btn:disabled {
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    cursor: not-allowed;
    box-shadow: none;
}

.claim-xp-btn:disabled svg {
    stroke: var(--text-tertiary);
    fill: none;
}

.claim-xp-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 98, 0.4);
}

.claim-xp-btn:not(:disabled):active {
    transform: translateY(0);
}

.claim-xp-btn.claimed {
    background: var(--accent-green);
    color: #fff;
}

.claim-xp-btn.claimed svg {
    stroke: #fff;
}

.claim-xp-amount {
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
}

.claim-xp-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 10px;
}

.claim-xp-hint.hidden {
    display: none;
}

.quiz-unlock-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(136, 136, 136, 0.1);
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.quiz-unlock-info svg {
    stroke: var(--text-tertiary);
    flex-shrink: 0;
}

.quiz-unlock-info.unlocked {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.2) 0%, rgba(184, 148, 63, 0.15) 100%);
    border: 1px solid rgba(201, 169, 98, 0.3);
    color: var(--primary-color);
}

.quiz-unlock-info.unlocked svg {
    stroke: var(--primary-color);
}

.video-quiz-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--accent-blue);
    border: none;
    border-radius: var(--border-radius);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.video-quiz-btn:disabled {
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    cursor: not-allowed;
}

.video-quiz-btn:not(:disabled):hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.quiz-xp-badge {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 12px;
}

.quiz-xp-badge.claimed {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    font-weight: 600;
}

/* Quiz button unlocked state - golden glow */
.video-quiz-btn:not(:disabled) {
    background: linear-gradient(135deg, #c9a962 0%, #b8943f 100%);
    box-shadow: 0 0 20px rgba(201, 169, 98, 0.4);
    animation: quizPulse 2s ease-in-out infinite;
}

.video-quiz-btn:not(:disabled):hover {
    background: linear-gradient(135deg, #d4b872 0%, #c9a962 100%);
    box-shadow: 0 0 25px rgba(201, 169, 98, 0.6);
    transform: translateY(-2px);
}

.video-quiz-btn:not(:disabled) .quiz-xp-badge {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-weight: 700;
}

@keyframes quizPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(201, 169, 98, 0.4); }
    50% { box-shadow: 0 0 30px rgba(201, 169, 98, 0.7); }
}

/* Quiz Screen */
.quiz-content {
    padding: 20px 16px;
}

.quiz-progress-indicator {
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: 12px;
}

.quiz-question-card {
    padding: 24px 20px;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    margin-bottom: 24px;
}

.quiz-question-text {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
}

.quiz-question-image {
    width: 100%;
    margin-top: 16px;
    border-radius: var(--border-radius);
}

.quiz-answer-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.quiz-answer-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-answer-option:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
}

.quiz-answer-option.selected {
    border-color: var(--accent-primary);
    background: rgba(201, 169, 98, 0.1);
}

.quiz-answer-option.correct {
    border-color: var(--accent-green);
    background: rgba(34, 197, 94, 0.1);
}

.quiz-answer-option.incorrect {
    border-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}

.quiz-answer-option.disabled {
    pointer-events: none;
}

.answer-indicator {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.quiz-answer-option.selected .answer-indicator {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
}

.quiz-answer-option.correct .answer-indicator {
    border-color: var(--accent-green);
    background: var(--accent-green);
}

.quiz-answer-option.incorrect .answer-indicator {
    border-color: var(--accent-red);
    background: var(--accent-red);
}

.answer-indicator svg {
    width: 14px;
    height: 14px;
    stroke: #000;
    display: none;
}

.quiz-answer-option.correct .answer-indicator svg,
.quiz-answer-option.incorrect .answer-indicator svg {
    display: block;
    stroke: #fff;
}

.answer-text {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.4;
    flex: 1;
}

/* Review mode correct badge */
.review-correct-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-green);
    background: rgba(34, 197, 94, 0.15);
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: auto;
}

.quiz-explanation {
    padding: 16px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    border-left: 3px solid var(--accent-blue);
}

.explanation-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 8px;
}

.explanation-header svg {
    stroke: var(--accent-blue);
}

.quiz-explanation p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.quiz-progress-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.quiz-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-secondary);
    transition: all 0.2s ease;
}

.quiz-dot.current {
    background: var(--accent-primary);
    transform: scale(1.2);
}

.quiz-dot.correct {
    background: var(--accent-green);
}

.quiz-dot.incorrect {
    background: var(--accent-red);
}

.quiz-dot.reviewed {
    background: var(--accent-blue);
    opacity: 0.6;
}

.quiz-next-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: var(--accent-primary);
    border: none;
    border-radius: var(--border-radius);
    color: #000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-next-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

/* Quiz Result Modal */
.quiz-result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.quiz-result-overlay.active {
    display: flex;
}

.quiz-result-modal {
    width: 100%;
    max-width: 340px;
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    padding: 32px 24px;
    text-align: center;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.quiz-result-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.quiz-result-modal h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.quiz-result-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.quiz-result-score {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.score-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.score-circle.passed {
    background: linear-gradient(135deg, var(--accent-green), #16a34a);
}

.score-circle.failed {
    background: linear-gradient(135deg, var(--accent-red), #dc2626);
}

.score-details {
    flex: 1;
    text-align: left;
}

.score-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 0;
}

.score-row span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.quiz-result-xp {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.2), rgba(201, 169, 98, 0.05));
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    border: 1px solid rgba(201, 169, 98, 0.3);
}

.quiz-result-xp .xp-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-primary);
}

.quiz-result-xp .xp-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.quiz-result-actions {
    display: flex;
    gap: 12px;
}

.quiz-result-btn {
    flex: 1;
    padding: 14px 16px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-result-btn.primary {
    background: var(--accent-primary);
    color: #000;
}

.quiz-result-btn.primary:hover {
    background: var(--accent-secondary);
}

.quiz-result-btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.quiz-result-btn.secondary:hover {
    background: var(--border-color);
}

.quiz-result-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =============================================
   SETTINGS SCREEN STYLES
   ============================================= */

.settings-section {
    margin-bottom: 24px;
}

.settings-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding: 0 4px;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 8px;
}

.settings-item.clickable {
    cursor: pointer;
    transition: background 0.2s;
}

.settings-item.clickable:hover {
    background: var(--bg-card-hover);
}

.settings-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.settings-item-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.settings-item-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.settings-chevron {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent-primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* =============================================
   HELP SCREEN STYLES
   ============================================= */

.help-section {
    margin-bottom: 24px;
}

.help-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding: 0 4px;
}

.help-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    overflow: hidden;
    cursor: pointer;
}

.help-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.help-chevron {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    transition: transform 0.3s;
}

.help-item.expanded .help-chevron {
    transform: rotate(180deg);
}

.help-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
    padding: 0 16px;
}

.help-item.expanded .help-answer {
    max-height: 200px;
    padding: 0 16px 16px;
}

.help-answer p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.help-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s;
}

.help-contact-item:hover {
    background: var(--bg-card-hover);
}

.help-contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

.help-contact-item span {
    font-size: 14px;
}

/* =============================================
   TUTORIAL VISUAL - REDESIGN COMPLETO
   ============================================= */

/* Overlay escuro semi-transparente */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9990;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tutorial-overlay.active {
    display: block;
    opacity: 1;
}

/* Spotlight pulsante - círculo que destaca elemento */
.tutorial-pulse {
    position: fixed;
    z-index: 9995;
    pointer-events: none;
    display: none;
    width: 60px;
    height: 60px;
}

.tutorial-pulse.active {
    display: block;
}

.tutorial-pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: pulseRing 1.5s ease-out infinite;
    box-sizing: border-box;
}

.tutorial-pulse-ring:nth-child(1) { animation-delay: 0s; }
.tutorial-pulse-ring:nth-child(2) { animation-delay: 0.3s; }
.tutorial-pulse-ring:nth-child(3) { animation-delay: 0.6s; }

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Círculo central do spotlight */
.tutorial-pulse-center {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    background: rgba(201, 169, 98, 0.5);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(201, 169, 98, 0.8), 0 0 80px rgba(201, 169, 98, 0.4);
    box-sizing: border-box;
}

/* Backdrop com furo - não usado mais */
.tutorial-backdrop {
    display: none !important;
}

.tutorial-spotlight {
    display: none !important;
}

/* Tooltip do tutorial - posicionamento dinâmico */
.tutorial-tooltip {
    position: absolute;
    z-index: 10000;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 2px solid var(--accent-primary);
    border-radius: 16px;
    padding: 16px 20px;
    max-width: 300px;
    box-shadow: 0 10px 40px rgba(201, 169, 98, 0.4),
                0 0 20px rgba(201, 169, 98, 0.2);
    display: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.tutorial-tooltip.active {
    display: block;
    animation: tooltipPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tooltipPop {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* Seta do tooltip apontando para o elemento */
.tutorial-tooltip::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 12px solid transparent;
}

.tutorial-tooltip.arrow-down::after {
    bottom: -24px;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    border-top-color: var(--accent-primary);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.tutorial-tooltip.arrow-up::after {
    top: -24px;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    border-bottom-color: var(--accent-primary);
    filter: drop-shadow(0 -2px 4px rgba(0,0,0,0.5));
}

.tutorial-tooltip.arrow-left::after {
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: var(--accent-primary);
}

.tutorial-tooltip.arrow-right::after {
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: var(--accent-primary);
}

@keyframes tooltipAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Seta do tooltip - escondida pois tooltip está fixo na parte inferior */
.tutorial-tooltip::before {
    display: none;
}

.tutorial-tooltip.arrow-top::before {
    top: -10px;
    left: 50%;
    margin-left: -8px;
    transform: rotate(45deg);
}

.tutorial-tooltip.arrow-bottom::before {
    bottom: -10px;
    left: 50%;
    margin-left: -8px;
    transform: rotate(225deg);
}

.tutorial-tooltip.arrow-left::before {
    left: -10px;
    top: 50%;
    margin-top: -8px;
    transform: rotate(-45deg);
}

.tutorial-tooltip.arrow-right::before {
    right: -10px;
    top: 50%;
    margin-top: -8px;
    transform: rotate(135deg);
}

/* Header do tooltip */
.tutorial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tutorial-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.tutorial-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Conteúdo do tooltip */
.tutorial-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.tutorial-content strong {
    color: var(--accent-primary);
}

.tutorial-content .highlight {
    background: rgba(201, 169, 98, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent-primary);
}

/* Aviso importante */
.tutorial-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tutorial-warning svg {
    width: 16px;
    height: 16px;
    color: var(--accent-red);
    flex-shrink: 0;
    margin-top: 2px;
}

.tutorial-warning span {
    font-size: 12px;
    color: var(--accent-red);
    line-height: 1.4;
}

/* Dica verde */
.tutorial-tip {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tutorial-tip svg {
    width: 16px;
    height: 16px;
    color: var(--accent-green);
    flex-shrink: 0;
    margin-top: 2px;
}

.tutorial-tip span {
    font-size: 12px;
    color: var(--accent-green);
    line-height: 1.4;
}

/* Footer com navegação */
.tutorial-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
}

.tutorial-progress {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.tutorial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s;
}

.tutorial-dot.active {
    background: var(--accent-primary);
    width: 24px;
    border-radius: 4px;
}

.tutorial-dot.completed {
    background: var(--accent-green);
}

.tutorial-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

.tutorial-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.tutorial-btn-skip {
    background: transparent;
    color: var(--text-tertiary);
}

.tutorial-btn-skip:hover {
    color: var(--text-secondary);
}

.tutorial-btn-next {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #000;
}

.tutorial-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 98, 0.4);
}

.tutorial-btn-prev {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.tutorial-btn-prev:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Botão de iniciar tutorial (na tela de ajuda) */
.tutorial-start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: var(--border-radius);
    color: #000;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 24px;
    transition: all 0.3s;
}

.tutorial-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 169, 98, 0.4);
}

.tutorial-start-btn svg {
    width: 24px;
    height: 24px;
}

/* Pulsação para elementos destacados */
@keyframes tutorialPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 169, 98, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(201, 169, 98, 0);
    }
}

.tutorial-highlight {
    animation: tutorialPulse 2s infinite;
    position: relative;
    z-index: 10001;
}

/* Contador de passos - hidden, using progress dots instead */
.tutorial-step-counter {
    display: none;
}

/* Mascote animado */
.tutorial-mascot {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 60px;
    height: 60px;
    z-index: 10002;
    animation: mascotBounce 2s ease-in-out infinite;
    cursor: pointer;
    display: none;
}

.tutorial-mascot.active {
    display: block;
}

.tutorial-mascot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes mascotBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Confete para conclusão */
.tutorial-confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10003;
    overflow: hidden;
    display: none;
}

.tutorial-confetti.active {
    display: block;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall 3s ease-in forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Tela de conclusão */
.tutorial-complete {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 2px solid var(--accent-green);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(34, 197, 94, 0.3);
    display: none;
}

.tutorial-complete.active {
    display: block;
    animation: tutorialCompleteAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tutorialCompleteAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.tutorial-complete-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-green), #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
}

.tutorial-complete h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.tutorial-complete p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.tutorial-complete-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--accent-green), #16a34a);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.tutorial-complete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

/* =============================================
   SIMULAÇÃO DE CHECK-IN - PARTE 2 DO TUTORIAL
   ============================================= */

/* Container da simulação */
.checkin-simulation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9998;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.checkin-simulation.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

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

/* Mockup do telefone na simulação */
.sim-phone {
    width: 280px;
    height: 680px;
    background: var(--bg-primary);
    border-radius: 32px;
    border: 6px solid #333;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
}

.sim-phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #000;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

/* Header do projeto simulado */
.sim-header {
    background: var(--bg-card);
    padding: 40px 16px 16px;
    text-align: center;
}

.sim-project-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.sim-project-address {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Área do mapa simulado */
.sim-map {
    height: 180px;
    background: linear-gradient(145deg, #1a2e1a, #0f1f0f);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sim-map-pin {
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: relative;
}

.sim-map-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
}

/* Indicador de distância */
.sim-distance-container {
    padding: 16px;
    text-align: center;
}

.sim-distance-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.sim-distance-value {
    font-size: 32px;
    font-weight: 700;
    transition: all 0.5s ease;
}

.sim-distance-value.far {
    color: var(--accent-red);
}

.sim-distance-value.approaching {
    color: var(--accent-orange);
}

.sim-distance-value.inside {
    color: var(--accent-green);
}

/* Botão de check-in simulado */
.sim-checkin-btn {
    margin: 16px;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sim-checkin-btn.disabled {
    background: var(--bg-card);
    color: var(--text-tertiary);
    border: 2px dashed var(--border-color);
}

.sim-checkin-btn.enabled {
    background: linear-gradient(135deg, var(--accent-green), #16a34a);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

.sim-checkin-btn.checkout {
    background: linear-gradient(135deg, var(--accent-orange), #ea580c);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}

.sim-checkin-btn.clicked {
    transform: scale(0.95);
}

/* Botões de Ação na simulação (Portaria e Material) */
.sim-action-buttons {
    display: flex;
    gap: 8px;
    margin: 8px 16px;
}

.sim-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.sim-action-btn .sim-action-icon {
    font-size: 14px;
}

.sim-action-btn.highlight {
    animation: pulseHighlightBlue 1s ease infinite;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

@keyframes pulseHighlightBlue {
    0%, 100% {
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
        transform: scale(1.02);
    }
}

/* Botão Avisar Falta na simulação */
.sim-falta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 16px 16px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.sim-falta-btn .sim-falta-icon {
    font-size: 16px;
}

.sim-falta-btn.highlight {
    animation: pulseHighlight 1s ease infinite;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

@keyframes pulseHighlight {
    0%, 100% {
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
        transform: scale(1.02);
    }
}

/* Cursor animado */
.sim-cursor {
    position: absolute;
    width: 50px;
    height: 50px;
    pointer-events: none;
    z-index: 100;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.sim-cursor.active {
    display: block;
}

.sim-cursor-finger {
    font-size: 40px;
    transform: rotate(-20deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

/* Animação de toque */
.sim-cursor.tapping .sim-cursor-finger {
    animation: tapAnimation 0.3s ease;
}

@keyframes tapAnimation {
    0% { transform: rotate(-20deg) scale(1); }
    50% { transform: rotate(-20deg) scale(0.8); }
    100% { transform: rotate(-20deg) scale(1); }
}

/* Ripple de clique */
.sim-ripple {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    pointer-events: none;
}

.sim-ripple.active {
    animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Mensagem explicativa da simulação */
.sim-message {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 2px solid var(--accent-primary);
    border-radius: 16px;
    padding: 16px 24px;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(201, 169, 98, 0.3);
}

.sim-message-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.sim-message-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.sim-message-content strong {
    color: var(--accent-primary);
}

/* Botões de navegação da simulação */
.sim-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.sim-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.sim-btn-skip {
    background: transparent;
    color: var(--text-tertiary);
    border: 1px solid var(--border-color);
}

.sim-btn-skip:hover {
    color: var(--text-secondary);
    border-color: var(--text-secondary);
}

.sim-btn-next {
    background: var(--accent-primary);
    color: #000;
}

.sim-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 98, 0.4);
}

/* Estado de check-in ativo */
.sim-active-checkin {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin: 8px 16px;
    display: none;
}

.sim-active-checkin.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sim-checkin-timer {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-green);
    text-align: center;
}

.sim-checkin-status {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 4px;
}

/* =============================================
   LUNCH SKIPPED NOTIFICATION MODAL
   ============================================= */
.lunch-skipped-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lunch-skipped-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lunch-skipped-modal {
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 24px;
    padding: 32px 24px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    border: 2px solid #f97316;
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.3);
    animation: lunchSkippedPulse 2s ease-in-out infinite;
}

@keyframes lunchSkippedPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(249, 115, 22, 0.3); }
    50% { box-shadow: 0 0 50px rgba(249, 115, 22, 0.5); }
}

.lunch-skipped-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: lunchSkippedBounce 1s ease-out;
}

@keyframes lunchSkippedBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.lunch-skipped-title {
    font-size: 22px;
    font-weight: 700;
    color: #f97316;
    margin-bottom: 16px;
}

.lunch-skipped-message {
    background: rgba(249, 115, 22, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.lunch-skipped-message p {
    font-size: 14px;
    color: #fff;
    line-height: 1.5;
    margin: 0;
}

.lunch-skipped-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.lunch-skipped-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 16px;
    border-radius: 8px;
}

.lunch-skipped-detail .detail-icon {
    font-size: 18px;
}

.lunch-skipped-detail span:last-child {
    font-size: 14px;
    color: #ccc;
}

.lunch-skipped-detail.warning {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.lunch-skipped-detail.warning span:last-child {
    color: #ef4444;
    font-weight: 600;
}

.lunch-skipped-tip {
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
    line-height: 1.4;
}

.lunch-skipped-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lunch-skipped-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}
