/* ============================================
   1. RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* ============================================
   2. LAYOUT & CONTAINERS
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

.doctor-view-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
}

.app-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(10px);
}

.app-container > div:first-child {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
.header {
    text-align: center;
    margin-bottom: 10px;
}

.header h1 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 2rem;
}

.header p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.5rem;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #4a5568;
}

#current-tab-title {
    color: #2d3748;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

/* ============================================
   4. CARDS
   ============================================ */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.child-card {
    background: #f7fafc;
    padding: 0;
    border-radius: 8px;
    border: 2px solid transparent;
    border-left: 4px solid #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.child-card:hover,
.child-card.selected {
    border-color: #667eea;
    background: #edf2f7;
}

.stats-card {
    background: linear-gradient(135deg, #4fd1c7 0%, #38b2ac 100%);
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
}

.stats-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

/* ============================================
   5. FORM ELEMENTS
   ============================================ */
.form-group {
    margin-bottom: 10px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

select {
    font-weight: bolder;
    color: #718096;
    text-align: center;
}

input[type="datetime-local"] {
    width: 100%;
    max-width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

/* For mobile devices, ensure proper scaling */
@media (max-width: 768px) {
    input[type="datetime-local"] {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px 8px;
    }
    
    /* Ensure form container doesn't overflow */
    .reading-form-container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .reading-form-container form {
        width: 100%;
        max-width: 100%;
    }
    
    .form-group {
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }
}

/* Checkbox Styles */
.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
    font-size: 14px;
    line-height: 1.4;
    color: #4a5568;
    margin-bottom: 0;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0 12px 0 0;
    margin-top: 2px;
    opacity: 0;
    flex-shrink: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    background-color: #e2e8f0;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    position: absolute;
    left: 0;
    top: 2px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label:hover .checkmark {
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.1);
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ============================================
   6. BUTTONS
   ============================================ */
button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Button Variants */
.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-danger,
.btn-reject {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.btn-danger:hover,
.btn-reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 62, 62, 0.4);
}

.btn-parent-share,
.btn-doctor-share,
.btn-accept {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    text-transform: uppercase;
}

.btn-parent-share:hover,
.btn-doctor-share:hover,
.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.4);
}

.btn-parent-share,
.btn-doctor-share {
    padding: 12px 20px;
}

.btn-accept,
.btn-reject {
    width: auto;
    padding: 8px 16px;
    text-transform: none;
    letter-spacing: normal;
}

.donate-btn {
    width: 100%;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    text-transform: none;
    letter-spacing: normal;
}

.gender-btn {
    all: unset;
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #4a5568;
    z-index: 1;
    position: relative;
    box-sizing: border-box;
}

.gender-btn:hover {
    color: #2d3748;
}

.gender-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.gender-btn.active:hover {
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.5);
}

/* Delete Buttons */
.reading-delete-btn,
.child-delete-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.reading-delete-btn:hover,
.child-delete-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: none;
    box-shadow: none;
}

/* ============================================
   7. TABS & NAVIGATION
   ============================================ */
.tabs {
    display: flex;
    margin-bottom: 10px;
    background: #f7fafc;
    border-radius: 8px;
    padding: 4px;
}

.tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: #718096;
    text-transform: none;
    letter-spacing: normal;
}

.tab.active {
    background: white;
    color: #4a5568;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-content,
.auth-section,
.app-section {
    display: none;
}

.tab-content.active,
.auth-section.active,
.app-section.active {
    display: block;
}

/* ============================================
   8. STATUS & ALERTS
   ============================================ */
.status-pending {
    color: #d69e2e;
    font-weight: 600;
}

.status-accepted {
    color: #38a169;
    font-weight: 600;
}

.status-rejected {
    color: #e53e3e;
    font-weight: 600;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
}

.alert-error {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.valid-text {
    color: #22543d;
    font-weight: 600;
}

.expired-text {
    color: #c53030;
    font-weight: 600;
}

.loading,
.loading-doctor {
    text-align: center;
    padding: 0;
}

.loading-doctor {
    padding: 60px 20px;
}

.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px auto;
    max-width: 600px;
}

/* ============================================
   9. TEMPERATURE READINGS
   ============================================ */
.temperature-reading {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border-left: 4px solid #667eea;
}

.temp-fever {
    border-left-color: #e53e3e;
}

.temp-fever .temp-value {
    color: #e53e3e;
}

.reading-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.reading-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f7fafc;
    width: 100%;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    touch-action: pan-y;
    flex-direction: row-reverse;
}

.reading-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.reading-info {
    flex: 1;
    margin-left: 0;
}

.reading-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.temp-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a5568;
}

/* Temperature Chart */
.temperature-chart {
    margin-top: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
}

.temperature-chart h3 {
    color: #2d3748;
    margin-bottom: 10px;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* ============================================
   10. AVATARS
   ============================================ */
.child-avatar,
.child-avatar-ai {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 40px;
    text-transform: uppercase;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: visible;
    animation: breathe 3s ease-in-out infinite;
    line-height: 1;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.child-avatar.shared,
.child-avatar-ai.shared {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.child-avatar-ai {
    animation: avatarEntrance 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
               breathe 3s ease-in-out 0.6s infinite;
}

.child-avatar-ai:hover {
    animation: bounce 0.6s ease-in-out, breathe 3s ease-in-out infinite;
    cursor: pointer;
}

.temperature-reading:hover .child-avatar-ai {
    transform: scale(1.1) rotate(5deg);
}

.temperature-reading:nth-child(-n+3) .child-avatar-ai {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6);
}

.temperature-reading:nth-child(-n+3) .child-avatar-ai.shared {
    box-shadow: 0 4px 20px rgba(72, 187, 120, 0.6);
}

.temp-fever .child-avatar-ai {
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
    animation: feverPulse 1.5s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.6);
}

.child-avatar-ai .loading-emoji {
    font-size: 24px;
    animation: spin 2s linear infinite;
}

.avatar-boy {
    animation: breathe 3s ease-in-out infinite, 
               subtleBounce 4s ease-in-out infinite;
}

.avatar-girl {
    animation: breathe 3s ease-in-out infinite, 
               subtleSway 4s ease-in-out infinite;
}

/* ============================================
   11. CHILD FILTER CARDS
   ============================================ */
.child-filter-cards {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    margin-bottom: 20px;
    padding-bottom: 10px;
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.child-filter-cards::-webkit-scrollbar {
    height: 8px;
}

.child-filter-cards::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 4px;
}

.child-filter-cards::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.child-filter-cards::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.child-filter-card {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    white-space: nowrap;
    min-width: 160px !important;
    max-width: 200px !important;
    width: auto !important;
}

.child-filter-card:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.child-filter-card.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.child-filter-card.all-children {
    background: #e6fffa;
    border-color: #38b2ac;
}

.child-filter-card.all-children:hover {
    background: #b2f5ea;
    border-color: #319795;
}

.child-filter-card.all-children.selected {
    background: linear-gradient(135deg, #38b2ac 0%, #2c7a7b 100%);
    border-color: #38b2ac;
    color: white;
}

.child-filter-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.child-filter-card.selected .child-filter-avatar {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.6);
}

.child-filter-card.all-children .child-filter-avatar {
    background: linear-gradient(135deg, #38b2ac 0%, #2c7a7b 100%);
}

.child-filter-card.all-children.selected .child-filter-avatar {
    background: white;
    color: #38b2ac;
}

.child-filter-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.child-filter-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.child-filter-card.selected .child-filter-name {
    color: white;
}

/* Scroll Arrows */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.scroll-arrow:hover {
    background: #667eea;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.scroll-arrow:hover svg {
    stroke: white;
}

.scroll-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.scroll-arrow-left {
    left: -18px;
}

.scroll-arrow-right {
    right: -18px;
}

/* ============================================
   12. SHARING SECTIONS
   ============================================ */
.parent-sharing-section,
.doctor-sharing-section {
    margin-bottom: 10px;
}

.doctor-sharing-section {
    margin-top: 30px;
}

.parent-share-item,
.doctor-share-item {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #48bb78;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.parent-share-item.incoming {
    border-left-color: #38b2ac;
    background: #e6fffa;
}

.parent-share-item.outgoing {
    border-left-color: #48bb78;
    background: #f7fafc;
}

.doctor-share-item.expired {
    opacity: 0.7;
    border-left-color: #e53e3e;
    background: #fed7d7;
}

.parent-share-info,
.doctor-share-info {
    flex: 1;
}

.parent-share-info {
    text-align: left;
}

.parent-share-info strong,
.doctor-share-info strong {
    font-size: 1.1rem;
    color: #2d3748;
    display: block;
    margin-bottom: 10px;
}

.doctor-share-info strong {
    margin-bottom: 8px;
}

.parent-share-info p,
.doctor-share-info p {
    margin: 4px 0;
    color: #4a5568;
    font-size: 0.95rem;
}

.parent-share-info p {
    text-align: left;
}

.parent-share-actions,
.doctor-share-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ============================================
   13. DOCTOR VIEW
   ============================================ */
.doctor-view-header {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 30px;
    border-radius: 15px 15px 0 0;
    text-align: center;
}

.doctor-view-header h1 {
    margin-bottom: 10px;
    font-size: 2rem;
}

.doctor-view-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.doctor-view-content {
    background: white;
    border-radius: 0 0 15px 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.doctor-info-card {
    background: #f0fdf4;
    border-left: 4px solid #48bb78;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.doctor-info-card h3 {
    color: #22543d;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.child-info-section {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 0;
}

.child-info-section h2 {
    color: #2d3748;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #4a5568;
}

.info-value {
    color: #2d3748;
}

.readings-section {
    margin-top: 30px;
}

.readings-section h2 {
    color: #2d3748;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.no-readings {
    text-align: center;
    padding: 40px;
    color: #718096;
    background: #f7fafc;
    border-radius: 8px;
}

.share-expired {
    background: #fed7d7;
    color: #c53030;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.share-expired h2 {
    margin-bottom: 10px;
}

/* ============================================
   14. SWIPE TO DELETE
   ============================================ */
.reading-delete-action,
.child-delete-action {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.reading-main.swiping,
.child-main.swiping {
    transition: none;
}

.reading-main.swiped,
.child-main.swiped {
    transform: translateX(-80px);
}

.reading-main.auto-return,
.child-main.auto-return {
    transition: transform 0.3s ease;
    transform: translateX(0);
}

.child-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.child-main {
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f7fafc;
    width: 100%;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    touch-action: pan-y;
}

/* ============================================
   15. BLOG & CONTENT
   ============================================ */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post h1 {
    color: #2d3748;
    font-size: 2.2rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-meta {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.blog-post h2 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 15px;
}

.blog-post h3 {
    color: #4a5568;
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

.blog-post p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 15px;
}

.blog-post ul,
.blog-post ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-post li {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 10px;
}

.info-box {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(56, 161, 105, 0.1) 100%);
    border-left: 4px solid #48bb78;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.info-box h3 {
    color: #22543d;
    margin-top: 0;
}

.warning-box {
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.1) 0%, rgba(197, 48, 48, 0.1) 100%);
    border-left: 4px solid #e53e3e;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.warning-box h3 {
    color: #c53030;
    margin-top: 0;
}

.cta-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid #667eea;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    text-align: center;
}

.cta-box h3 {
    color: #2d3748;
    margin-top: 0;
}

.cta-box p {
    margin-bottom: 20px;
}

.cta-box a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.cta-box a:hover {
    text-decoration: underline;
}

/* ============================================
   16. DONATE SECTION
   ============================================ */
.donate {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
}

.donate h2 {
    margin-bottom: 20px;
}

.donate p {
    margin-bottom: 20px;
    color: #4a5568;
    font-size: 1.1rem;
}

.donate .description {
    text-align: center;
    margin-bottom: 30px;
}

.donate .description h2 {
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
}

.donate .description p {
    margin-bottom: 15px;
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
}

.donate-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.donate-card {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.faq-item h3 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.faq-item p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   17. READING FORM
   ============================================ */
.reading-form-container {
    background: transparent;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.reading-form-container form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reading-form-container .form-group {
    margin-bottom: 0;
}

.reading-form-container button {
    margin-top: 8px;
}

.reading-form-container.disabled,
#add-reading-form.disabled {
    opacity: 0.6;
    pointer-events: none;
}

#add-reading-form .card {
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

#add-reading-form .card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reading-form-container .info-message,
#add-reading-form .info-message {
    background: #e6fffa;
    border: 2px solid #38b2ac;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    color: #234e52;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reading-form-container .warning-message,
#add-reading-form .warning-message {
    background: #fef5e7;
    border: 2px solid #f39c12;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    color: #7d6608;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reading-form-container label {
    color: #2d3748;
    font-weight: 600;
    font-size: 14px;
}

.tab-content h4 {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ============================================
   18. USER MENU
   ============================================ */
.user-menu {
    position: relative;
    z-index: 1001;
}

.user-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-menu-button:hover {
    transform: translateY(-2px);
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    overflow: hidden;
    animation: menuSlideDown 0.2s ease;
    z-index: 1000;
}

.user-menu-dropdown.active {
    display: block;
}

.user-menu-item {
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: none;
    border-radius: 0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4a5568;
    font-weight: 500;
    font-size: 14px;
    text-transform: none;
    letter-spacing: normal;
}

.user-menu-item:hover {
    background: #f7fafc;
    transform: none;
    box-shadow: none;
}

.user-menu-item svg {
    flex-shrink: 0;
}

.user-menu-item-danger {
    color: #e53e3e;
    border-top: 1px solid #e2e8f0;
}

.user-menu-item-danger:hover {
    background: #fff5f5;
    color: #c53030;
}

.user-menu-nav {
    border-bottom: 1px solid #e2e8f0;
}

.user-menu-nav.active {
    background: #edf2f7;
    color: #667eea;
    font-weight: 600;
}

.user-menu-nav.active svg {
    stroke: #667eea;
}

.user-menu-nav:hover {
    background: #f7fafc;
}

.user-menu-nav.active:hover {
    background: #e6f2ff;
}

/* ============================================
   19. MODALS
   ============================================ */
#delete-account-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.delete-modal {
    display: none;
}

.delete-modal[style*="display: flex"] {
    display: flex !important;
}

#delete-account-modal .card {
    max-width: 500px;
    width: 100%;
    margin: auto;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.warning-box-modal {
    background: #fed7d7;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #e53e3e;
}

.info-box-modal {
    background: #e6fffa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #38b2ac;
}

.modal-buttons {
    display: flex;
    gap: 10px;
}

.modal-buttons button {
    flex: 1;
}

/* ============================================
   20. ANIMATIONS
   ============================================ */
@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes avatarEntrance {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% { transform: scale(1.2) rotate(0deg); }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-10px) scale(1.1); }
    50% { transform: translateY(0) scale(1); }
    75% { transform: translateY(-5px) scale(1.05); }
}

@keyframes feverPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(245, 101, 101, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 20px rgba(245, 101, 101, 0.9);
    }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes subtleBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-2px) scale(1.02); }
}

@keyframes subtleSway {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(3deg) scale(1.02); }
}

@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   21. PRINT STYLES
   ============================================ */
@media print {
    .doctor-view-header {
        background: none;
        color: black;
        box-shadow: none;
    }
    
    .doctor-view-content {
        box-shadow: none;
    }
    
    .btn-secondary {
        display: none;
    }
}

/* ============================================
   22. RESPONSIVE STYLES
   ============================================ */
@media (min-width: 769px) {
    .app-container {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    /* Layout */
    body {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .container {
        padding: 10px;
    }
    
    .app-container {
        padding: 5px;
        border-radius: 12px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    .app-container > div:first-child {
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
    
    .card {
        padding: 20px;
        margin-bottom: 10px;
    }
    
    /* Header */
    .header {
        margin-bottom: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    #current-tab-title {
        font-size: 1.3rem;
    }
    
    /* Forms */
    .reading-form-container {
        padding: 10px 0;
        margin-bottom: 15px;
    }
    
    .reading-form-container form {
        gap: 10px;
    }
    
    /* Tabs */
    .tabs {
        flex-direction: column;
    }
    
    /* Buttons */
    button,
    #filter-child {
        width: 100% !important;
    }
    
    .gender-toggle {
    display: flex;
    background: #e2e8f0;
    border-radius: 10px;
    padding: 4px;
    width: 100%;
    position: relative;
}
    
    /* Child Filter Cards - Keep horizontal scrolling */
    .child-filter-cards {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .child-filter-card {
        flex: 0 0 auto !important;
        min-width: 140px !important;
    }
    
    /* Scroll Arrows */
    .scroll-arrow-left {
        left: 5px;
    }
    
    .scroll-arrow-right {
        right: 5px;
    }
    
    .scroll-arrow {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    /* Temperature Readings */
    .temperature-reading,
    .child-card {
        margin-bottom: 8px;
    }
    
    /* Sharing Items */
    .parent-share-item,
    .doctor-share-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .parent-share-actions,
    .doctor-share-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .parent-share-actions button,
    .doctor-share-actions button {
        width: 100%;
        margin-bottom: 5px;
    }
    
    /* Doctor View */
    .doctor-view-header {
        padding: 20px;
    }
    
    .doctor-view-header h1 {
        font-size: 1.5rem;
    }
    
    .doctor-view-content {
        padding: 20px;
    }
    
    .info-row {
        flex-direction: column;
        gap: 5px;
    }
    
    /* Readings Controls */
    .readings-header-controls,
    #readings-tab > div[style*="display: flex"] {
        flex-direction: column-reverse !important;
        gap: 15px !important;
        align-items: stretch !important;
    }
    
    .readings-header-controls > div,
    .readings-header-controls > button,
    #readings-tab > div[style*="display: flex"] > div,
    #readings-tab > div[style*="display: flex"] > button {
        width: 100% !important;
    }
    
    .readings-header-controls select {
        width: 100%;
    }
    
    #readings-tab > div[style*="justify-content: flex-end"] {
        justify-content: stretch !important;
    }
    
    #readings-tab > div[style*="justify-content: flex-end"] button {
        width: 100% !important;
    }
    
    /* Swipe Actions */
    .reading-delete-action,
    .child-delete-action {
        width: 100px;
    }
    
    .reading-main.swiped,
    .child-main.swiped {
        transform: translateX(-100px);
    }
    
    /* Blog */
    .blog-post h1 {
        font-size: 1.6rem;
    }
    
    .blog-post h2 {
        font-size: 1.4rem;
    }
    
    .blog-post h3 {
        font-size: 1.1rem;
    }
    
    /* Donate */
    .donate {
        padding: 20px;
    }
    
    .donate .description p {
        font-size: 0.95rem;
    }
    
    .donate-options {
        flex-direction: column;
    }
    
    .donate-card {
        max-width: 100%;
    }
    
    /* User Menu */
    .user-menu-dropdown {
        min-width: 180px;
    }
    
    /* Delete Modal */
    #delete-account-modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 40px;
    }
    
    #delete-account-modal .card {
        max-width: 100%;
        padding: 20px;
        max-height: 85vh;
        font-size: 14px;
    }
    
    #delete-account-modal h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    #delete-account-modal p,
    #delete-account-modal ul {
        font-size: 14px;
    }
    
    #delete-account-modal ul {
        margin: 10px 0 0 15px;
    }
    
    #delete-account-modal li {
        margin-bottom: 8px;
    }
    
    .warning-box-modal,
    .info-box-modal {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    #delete-account-modal .form-group {
        margin-bottom: 15px;
    }
    
    #delete-account-modal button {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-buttons button {
        width: 100%;
    }
}

/* ============================================
   23. ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .child-avatar,
    .child-avatar-ai {
        animation: none !important;
    }
    
    .child-avatar-ai::before {
        animation: none !important;
    }
}
/* ============================================
   24. LANDINGPAGE
   ============================================ */

        /* Hero Section */
        .hero-section {
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding: 40px 20px;
            position: relative;
            overflow: hidden;
        }
        
        .hero-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
            z-index: 2;
        }
        
        .hero-text {
            color: white;
        }
        
        .hero-text h1 {
            font-size: 3.5rem;
            font-weight: 800;
            line-height: 1.2;
            margin-bottom: 24px;
            text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
        }
        
        .hero-text .subtitle {
            font-size: 1.5rem;
            margin-bottom: 20px;
            opacity: 0.95;
            line-height: 1.6;
        }
        
        .hero-stats {
            display: flex;
            gap: 40px;
            margin-top: 40px;
        }
        
        .stat-item {
            text-align: center;
        }
        
        .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            display: block;
        }
        
        .stat-label {
            font-size: 0.9rem;
            opacity: 0.9;
        }
        
        .hero-auth {
            background: rgba(255, 255, 255, 0.98);
            border-radius: 24px;
            padding: 40px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
            backdrop-filter: blur(10px);
        }
        
        /* Features Section */
        .features-section {
            padding: 40px 20px;
            background: white;
        }
        
        .section-header {
            text-align: center;
            max-width: 800px;
            margin: 0 auto 20px;
        }
        
        .section-header h2 {
            font-size: 2.5rem;
            color: #2d3748;
            margin-bottom: 20px;
        }
        
        .section-header p {
            font-size: 1.2rem;
            color: #718096;
            line-height: 1.8;
        }
        
        .features-grid {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 40px;
        }
        
        .feature-card {
            background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
            border-radius: 20px;
            padding: 40px;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }
        
        .feature-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
            border-color: #667eea;
        }
        
        .feature-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            margin-bottom: 24px;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
        }
        
        .feature-card h3 {
            font-size: 1.5rem;
            color: #2d3748;
            margin-bottom: 16px;
        }
        
        .feature-card p {
            color: #4a5568;
            line-height: 1.7;
            font-size: 1.05rem;
        }
        
        /* Video/Image Placeholder */
        .media-placeholder {
            background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
            border-radius: 20px;
            aspect-ratio: 16/9;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #718096;
            font-size: 1.2rem;
            font-weight: 600;
            position: relative;
            overflow: hidden;
        }
        
        .media-placeholder::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: shimmer 2s infinite;
        }
        
        @keyframes shimmer {
            to {
                left: 100%;
            }
        }
        
        .media-placeholder svg {
            width: 80px;
            height: 80px;
            opacity: 0.3;
        }
        
        /* Blog CTA Section */
        .blog-cta-section {
            padding: 80px 20px;
            background: linear-gradient(135deg, #fff5f7 0%, #fef5e7 100%);
        }
        
        .blog-cta-card {
            max-width: 900px;
            margin: 0 auto;
            background: white;
            border-radius: 24px;
            padding: 50px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            align-items: center;
        }
        
        .blog-cta-content h3 {
            font-size: 2rem;
            color: #2d3748;
            margin-bottom: 16px;
        }
        
        .blog-cta-content p {
            color: #4a5568;
            line-height: 1.7;
            font-size: 1.1rem;
            margin-bottom: 24px;
        }
        
        .blog-cta-button {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 16px 32px;
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
        }
        
        .blog-cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
        }
        
        .blog-cta-image {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border-radius: 16px;
            aspect-ratio: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 5rem;
        }
        
        /* How it Works Section */
        .how-it-works {
            padding: 40px 20px;
            background: linear-gradient(135deg, #f7fafc 0%, #e6fffa 100%);
        }
        
        .steps-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            gap: 10px;
        }
        
        .step-item {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            align-items: center;
        }
        
        .step-item:nth-child(even) {
            direction: rtl;
        }
        
        .step-item:nth-child(even) > * {
            direction: ltr;
        }
        
        .step-content {
            padding: 20px;
        }
        
        .step-number {
            display: inline-block;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 20px;
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
        }
        
        .step-content h3 {
            font-size: 2rem;
            color: #2d3748;
            margin-bottom: 16px;
        }
        
        .step-content p {
            font-size: 1.1rem;
            color: #4a5568;
            line-height: 1.8;
        }
        
        /* Testimonials Section */
        .testimonials-section {
            padding: 100px 20px;
            background: white;
        }
        
        .testimonial-card {
            max-width: 800px;
            margin: 0 auto;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 24px;
            padding: 60px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        
        .testimonial-card::before {
            content: '"';
            position: absolute;
            top: 20px;
            left: 40px;
            font-size: 10rem;
            opacity: 0.1;
            font-family: Georgia, serif;
        }
        
        .testimonial-text {
            font-size: 1.5rem;
            line-height: 1.8;
            margin-bottom: 32px;
            position: relative;
        }
        
        .testimonial-author {
            font-size: 1.1rem;
            font-weight: 600;
            opacity: 0.9;
        }
        
        /* FAQ Section */
        .faq-section {
            padding: 40px 20px;
            background: linear-gradient(135deg, #f7fafc 0%, #fff5f7 100%);
        }
        
        .faq-grid {
            max-width: 1000px;
            margin: 0 auto;
            display: grid;
            gap: 20px;
        }
        
        .faq-item-new {
            background: white;
            border-radius: 16px;
            padding: 32px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }
        
        .faq-item-new:hover {
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }
        
        .faq-item-new h3 {
            color: #2d3748;
            font-size: 1.3rem;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .faq-item-new h3::before {
            content: '❓';
            font-size: 1.5rem;
        }
        
        .faq-item-new p {
            color: #4a5568;
            line-height: 1.7;
            font-size: 1.05rem;
        }
        
        /* CTA Section */
        .cta-section {
            padding: 100px 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            text-align: center;
            color: white;
        }
        
        .cta-content {
            max-width: 800px;
            margin: 0 auto;
        }
        
        .cta-content h2 {
            font-size: 3rem;
            margin-bottom: 24px;
        }
        
        .cta-content p {
            font-size: 1.3rem;
            margin-bottom: 40px;
            opacity: 0.95;
        }
        
        .cta-button {
            display: inline-block;
            padding: 20px 50px;
            background: white;
            color: #667eea;
            border-radius: 50px;
            font-size: 1.2rem;
            font-weight: 700;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }
        
        .cta-button:hover {
            transform: translateY(-4px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
        }

        .coffee-btn {
            background: rgba(255,255,255,0.2);
            max-width: 400px; 
            border: 2px solid white;
        }
        
        /* Footer */
        .footer {
            padding: 60px 20px;
            background: #2d3748;
            color: white;
            text-align: center;
        }
        
        .footer-links {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }
        
        .footer-links a {
            color: white;
            text-decoration: none;
            transition: opacity 0.3s ease;
        }
        
        .footer-links a:hover {
            opacity: 0.7;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .hero-content {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .hero-text h1 {
                font-size: 2.5rem;
            }
            
            .hero-text .subtitle {
                font-size: 1.2rem;
            }
            
            .hero-stats {
                gap: 10px;
            }
            
            .step-item {
                grid-template-columns: 1fr;
                gap: 10px;
            }
            
            .section-header h2 {
                font-size: 2rem;
            }
            
            .cta-content h2 {
                font-size: 2rem;
            }
        }

/* ============================================
   24. Cookie Banner
   ============================================ */

    #cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px;
    z-index: 10000;
    display: none;
}

#cookie-banner.active {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}
