:root {
    /* Colors - HSL */
    --primary-h: 354;
    --primary-s: 70%;
    --primary-l: 54%;
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-dark: hsl(var(--primary-h), var(--primary-s), 40%);
    --primary-glow: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.3);

    --bg: #FAFAFA;
    --surface: #FFFFFF;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --border: #E0E0E0;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Utils */
.hidden {
    display: none !important;
}

.full-width {
    width: 100%;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

.logo-icon {
    font-size: 2rem;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--surface);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.user-badge img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 50%;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: #f0f0f0;
    color: var(--primary);
}

/* Main Views */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.view {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.view.active-view {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    padding: 2rem 0;
}

.hero-content {
    max-width: 500px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 15px 25px -5px var(--primary-glow);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.huge-icon {
    font-size: 10rem;
    color: var(--primary);
    z-index: 2;
}

.pulse-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.1;
    animation: pulse 3s infinite;
}

.delay-1 {
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Partner Float Animation */
.partner-float {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.2);
    border: 1px solid var(--primary-glow);
    text-align: center;
    z-index: 10;
    animation: floatPartner 4s ease-in-out infinite;
    white-space: nowrap;
}

.partner-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 2px;
}

.partner-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

@keyframes floatPartner {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -15px);
    }
}

/* Card */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    margin: 2rem auto;
}

.profile-card h2 {
    margin-bottom: 0.5rem;
}

.subtext {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Blood Grid */
.blood-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.blood-opt {
    aspect-ratio: 1;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.blood-opt:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.blood-opt.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Inputs */
input[type="tel"],
input[type="date"],
input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--bg);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
}

/* Location */
.location-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.location-status.success {
    color: #10B981;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

/* Search View */
.search-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-controls {
    background: var(--surface);
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.search-bar-row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.search-input-group {
    flex-grow: 1;
}

.search-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.search-actions {
    display: flex;
    gap: 0.8rem;
}

.btn.icon-only {
    padding: 0.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.donor-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--primary);
    transition: transform 0.2s;
    gap: 1rem;
}

.donor-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.donor-main {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.donor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f0;
    border: 2px solid var(--border);
}

.donor-details span {
    display: block;
}

.donor-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f9f9f9;
    padding: 2px 8px;
    border-radius: 4px;
}

.donor-info h3 {
    margin-bottom: 0.2rem;
}

.distance-badge {
    font-size: 0.85rem;
    background: #F3F4F6;
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}

.empty-state span {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.3;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 20px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Mobile & Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        justify-content: center;
        padding-top: 1rem;
        min-height: auto;
    }

    .hero-visual {
        width: 280px;
        height: 280px;
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .action-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .card {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .blood-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .blood-opt {
        font-size: 0.9rem;
    }

    .search-controls {
        flex-direction: column;
        padding: 1rem;
    }

    .search-controls>div {
        flex-direction: column;
        align-items: stretch !important;
    }

    .search-controls button {
        width: 100%;
        margin-top: 0.5rem;
    }

    .donor-card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        border-left: none;
        border-top: 4px solid var(--primary);
    }

    .donor-action {
        width: 100%;
    }

    .donor-action .btn {
        width: 100%;
    }

    #locationMap,
    #searchLocationMap {
        height: 250px;
    }
}

/* FAQ & Release Notes */
.content-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.release-note-box {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 4rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.05rem;
    white-space: pre-wrap;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.faq-item.faq-active {
    border-color: var(--primary-glow);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--text-main);
}

.faq-question span.material-icons-round {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-item.faq-active .faq-question span.material-icons-round {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-item.faq-active .faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    max-height: 800px;
}

/* Referral Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: 4rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
 / *   R e f e r r a l   L i s t   S c r o l l b a r   * / 
 # m y R e f e r r a l s L i s t : : - w e b k i t - s c r o l l b a r   { 
         w i d t h :   6 p x ; 
 } 
 # m y R e f e r r a l s L i s t : : - w e b k i t - s c r o l l b a r - t r a c k   { 
         b a c k g r o u n d :   # f 1 f 1 f 1 ; 
         b o r d e r - r a d i u s :   1 0 p x ; 
 } 
 # m y R e f e r r a l s L i s t : : - w e b k i t - s c r o l l b a r - t h u m b   { 
         b a c k g r o u n d :   # e 0 e 0 e 0 ; 
         b o r d e r - r a d i u s :   1 0 p x ; 
 } 
 # m y R e f e r r a l s L i s t : : - w e b k i t - s c r o l l b a r - t h u m b : h o v e r   { 
         b a c k g r o u n d :   # d 0 d 0 d 0 ; 
 }  
 
.partner-name { transition: opacity 0.5s ease-out; }
