* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
}

.language-switch {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.language-switch__option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    color: #4a4a4a;
    font-size: 0.9em;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    min-width: 70px;
    justify-content: center;
}

.language-switch__option .flag {
    font-size: 1.1em;
}

.language-switch__option .code {
    letter-spacing: 0.08em;
}

.language-switch__option.is-active {
    background: #ffffff;
    font-weight: 700;
    color: #2d2d2d;
}

.language-switch__option:not(.is-active):hover {
    background: rgba(255, 255, 255, 0.65);
}

@media (max-width: 640px) {
    .language-switch {
        top: 12px;
        right: 12px;
        padding: 3px;
    }

    .language-switch__option {
        padding: 5px 10px;
        font-size: 0.85em;
        min-width: auto;
    }
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.brand-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.brand-logo img {
    width: min(180px, 45vw);
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

header p {
    font-size: 1.2em;
    opacity: 0.95;
}

.hero-intro {
    margin-top: 25px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px 25px 25px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.hero-intro h2 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #ffffff;
}

.hero-intro p {
    font-size: 1em;
    opacity: 0.9;
    margin-bottom: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 12px;
}

.hero-btn {
    border-radius: 999px;
    border: none;
    padding: 10px 20px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.hero-btn.primary {
    background: #ffffff;
    color: #5a55ea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.hero-btn.secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}

.hero-chip {
    border-radius: 999px;
    border: none;
    padding: 6px 14px;
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.12);
    color: #f5f5f5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-chip:hover {
    background: rgba(255, 255, 255, 0.22);
}

nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: #f5f5f5;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 12px 25px;
    border: none;
    background: white;
    color: #667eea;
    font-size: 1em;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.nav-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

main {
    padding: 40px;
    min-height: 500px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

h2 {
    color: #667eea;
    font-size: 2.2em;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.section-intro {
    text-align: center;
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}

/* PAIN MAP */
.pain-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.pain-card {
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.pain-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.pain-card.low {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.pain-card.medium {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.pain-card.high {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.pain-card h3 {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.pain-card ul {
    list-style: none;
    margin: 15px 0;
}

.pain-card ul li {
    padding: 8px 0;
    color: #444;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.pain-card ul li:last-child {
    border-bottom: none;
}

.healing-time {
    margin-top: 20px;
    font-weight: bold;
    text-align: center;
    font-size: 1.1em;
    color: #555;
    background: rgba(255,255,255,0.5);
    padding: 10px;
    border-radius: 8px;
}

/* INFO BOX */
.info-box {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-box h3 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.info-box ul {
    list-style: none;
}

.info-box ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #333;
}

.info-box ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.3em;
}

/* PIERCING TYPES */
.piercing-category {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}

.piercing-category h3 {
    color: #667eea;
    font-size: 1.8em;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.piercing-item {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border-left: 5px solid #667eea;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.piercing-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.piercing-item h4 {
    color: #333;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.piercing-item p {
    color: #666;
    margin: 8px 0;
    line-height: 1.6;
}

.piercing-item p strong {
    color: #667eea;
}

/* AFTERCARE GUIDE */
.care-guide {
    max-width: 900px;
    margin: 0 auto;
}

.care-section {
    background: #f8f9fa;
    padding: 30px;
    margin: 25px 0;
    border-radius: 15px;
    border-left: 5px solid #667eea;
}

.care-section.danger {
    background: #fff5f5;
    border-left: 5px solid #e74c3c;
}

.care-section h3 {
    color: #667eea;
    font-size: 1.6em;
    margin-bottom: 20px;
    text-align: left;
}

.care-section.danger h3 {
    c
/* Accordion Styles */
.care-accordion {
    margin-top: 20px;
}

.accordion-item {
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: #667eea;
}

.accordion-button {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    text-align: left;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion-button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.accordion-button::after {
    content: '▼';
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-button::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9f9f9;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: 20px;
}

.accordion-content h4 {
    color: #667eea;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.accordion-content h4:first-child {
    margin-top: 0;
}

.accordion-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.accordion-content li {
    margin-bottom: 8px;
}

.accordion-content .warning {
    margin-top: 15px;
}

/* ========================================
    PERSONAL TRACKER STYLES
======================================== */

.tracker-container {
    max-width: 900px;
    margin: 0 auto;
}

.tracker-intro {
    background: linear-gradient(135deg, #667eea15, #764ba215);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.tracker-intro p {
    margin: 0;
    color: #555;
    font-size: 1.05em;
}

/* Add Piercing Button */
.add-piercing-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.add-piercing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

/* Tracker Form */
.piercing-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid #667eea;
    animation: slideDown 0.3s ease;
}

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

.piercing-form.hidden {
    display: none;
}

.piercing-form h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn-save,
.btn-cancel {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save {
    background: #28a745;
    color: white;
}

.btn-save:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-cancel {
    background: #dc3545;
    color: white;
}

.btn-cancel:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Piercing Cards */
.piercing-list {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.piercing-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(102, 126, 234, 0.18);
    border-radius: 16px;
    padding: 28px 24px 24px;
    transition: all 0.35s ease;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    --card-accent: linear-gradient(135deg, #cfd8ff, #f1f4ff);
}

.piercing-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--card-accent);
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.piercing-card:hover {
    border-color: transparent;
    box-shadow: 0 18px 38px rgba(102, 126, 234, 0.25);
    transform: translateY(-4px);
}

/* Card color variations */
.piercing-card--ear {
    border-color: transparent;
    background: linear-gradient(180deg, rgba(108, 99, 255, 0.12) 0%, #ffffff 70%);
    --card-accent: linear-gradient(135deg, #6c63ff, #918bff);
}

.piercing-card--nose {
    border-color: transparent;
    background: linear-gradient(180deg, rgba(255, 111, 181, 0.12) 0%, #ffffff 70%);
    --card-accent: linear-gradient(135deg, #ff6fb5, #ff9fcb);
}

.piercing-card--tongue {
    border-color: transparent;
    background: linear-gradient(180deg, rgba(255, 152, 0, 0.12) 0%, #ffffff 70%);
    --card-accent: linear-gradient(135deg, #ffb347, #ffcc33);
}

.piercing-card--navel {
    border-color: transparent;
    background: linear-gradient(180deg, rgba(38, 198, 218, 0.12) 0%, #ffffff 70%);
    --card-accent: linear-gradient(135deg, #26c6da, #5be0f1);
}

.piercing-card--body {
    border-color: transparent;
    background: linear-gradient(180deg, rgba(139, 195, 74, 0.12) 0%, #ffffff 70%);
    --card-accent: linear-gradient(135deg, #8bc34a, #b2df7d);
}

.piercing-card--default {
    border-color: transparent;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.08) 0%, #ffffff 70%);
}

.piercing-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.piercing-card-title {
    flex: 1;
}

.piercing-card-title h3 {
    color: #667eea;
    margin-bottom: 5px;
    font-size: 1.3em;
}

.piercing-card-title .location {
    color: #666;
    font-size: 0.95em;
}

.piercing-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.piercing-card-actions {
    display: flex;
    gap: 8px;
}

.btn-edit,
.btn-delete {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #ffc107;
    color: #333;
}

.btn-edit:hover {
    background: #e0a800;
    transform: scale(1.05);
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
    transform: scale(1.05);
}

.piercing-card-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.info-row {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    background: #fdfdff;
    border-radius: 14px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.info-row::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    top: 12px;
    right: 12px;
    background: var(--card-accent, linear-gradient(135deg, #667eea, #764ba2));
    border-radius: 50%;
    opacity: 0.15;
    pointer-events: none;
}

.info-row strong {
    color: #636a9e;
    font-size: 0.78em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.info-row span {
    color: #1f2559;
    font-size: 1.05em;
    font-weight: 600;
}

.piercing-card-notes {
    margin-top: 20px;
    padding: 18px;
    border-radius: 12px;
    background: #f8f9ff;
    border: 1px dashed rgba(102, 126, 234, 0.4);
}

.piercing-card-notes h4 {
    color: #4d56c8;
    margin-bottom: 10px;
    font-size: 1em;
}

.piercing-card-notes p {
    color: #2f3360;
    line-height: 1.7;
    font-style: normal;
}

.days-since {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.85em;
    font-weight: bold;
}

.piercing-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.piercing-badge.badge-new {
    background: #e8f5e9;
    color: #2e7d32;
}

.piercing-badge.badge-healing {
    background: #fff8e1;
    color: #ff8f00;
}

.piercing-badge.badge-stable {
    background: #e3f2fd;
    color: #1565c0;
}

.piercing-badge.badge-warning {
    background: #ffebee;
    color: #c62828;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 2px dashed #ccc;
}

.empty-state.hidden {
    display: none;
}

.empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
}

/* Export buttons */
.export-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-export {
    flex: 1;
    min-width: 140px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 2px solid #667eea;
    background: #fff;
    color: #667eea;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-export:hover {
    background: #667eea;
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.btn-export-secondary {
    border-color: #ff9800;
    color: #ff9800;
}

.btn-export-secondary:hover {
    background: #ff9800;
    color: #fff;
}

/* Care tips block */
.care-tips {
    background: linear-gradient(135deg, #fff5e6, #ffe4cc);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #ff9800;
    margin-top: 30px;
}

.care-tips h3 {
    color: #ff9800;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.care-tips ul {
    list-style: none;
    padding: 0;
}

.care-tips li {
    padding: 8px 0;
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Responsive layout */
@media (max-width: 768px) {
    .piercing-card-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .piercing-card-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .btn-save,
    .btn-cancel {
        width: 100%;
    }
}

