:root {
    --primary-color: #008489; /* Teal - Airbnb style but medical friendly */
    --primary-hover: #006c70;
    --text-color: #484848;
    --text-light: #767676;
    --bg-color: #ffffff;
    --bg-secondary: #f7f7f7;
    --border-color: #e4e4e4;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 6px 16px rgba(0,0,0,0.12);
    --radius: 8px;
    --font-family: system-ui, sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.43;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Header */
header {
    height: 80px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 24px; /* Mobile first padding */
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 101; /* Above mobile menu */
}

/* Burger Menu Button */
.burger-menu {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 102; /* Above everything */
}

.burger-menu span {
    width: 30px;
    height: 3px;
    background: var(--text-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Burger Animation */
.burger-menu.active span:first-child {
    transform: rotate(45deg);
}
.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}
.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

nav a {
    font-weight: 500;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 22px;
    transition: background 0.2s;
    display: block;
}

nav a:hover {
    background-color: var(--bg-secondary);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%; /* Full width or 70-80% */
        max-width: 300px;
        background-color: #fff;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        padding-top: 80px; /* Space for header */
        transition: right 0.3s ease-in-out;
        z-index: 100;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 10px;
    }

    nav li {
        width: 100%;
    }

    nav a {
        padding: 15px 20px;
        width: 100%;
        border-radius: 8px;
        font-size: 16px;
    }
    
    nav a:hover {
        background-color: var(--bg-secondary);
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

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

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 50px 24px;
    text-align: center;
    background: linear-gradient(180deg, #f7f7f7 0%, #fff 100%);
}

.hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(to right, #FF5A5F, #FF385C); /* Keep a bit of that urgency/action color */
    background: var(--primary-color);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.1s;
}

.cta-button:active {
    transform: scale(0.98);
}

/* Auth Forms */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.auth-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.auth-header h2 {
    font-size: 22px;
    font-weight: 600;
}

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

.checkbox-group {
    margin-bottom: 10px;
}

.form-row {
    display: flex;
    gap: 16px; /* Space between fields */
    margin-bottom: 20px;
}

.form-row .form-group {
    margin-bottom: 0; /* Remove bottom margin inside row */
    flex: 1; /* Equal width */
}

.form-input {
    width: 100%;
    padding: 16px 12px; /* Large touch targets */
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--primary-color);
    border-width: 2px;
    padding: 15px 11px; /* Adjust for border width change */
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
}

/* Dashboard & Tools Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    text-decoration: none; /* For link cards */
    color: inherit;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tool-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-secondary);
}

.tool-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.tool-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
/* User Credits Badge */
.user-credits {
    display: flex;
    align-items: center;
    background-color: #fffae5; /* Light yellow/gold bg */
    border: 1px solid #f0e68c;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #b7791f; /* Gold/Bronze text */
    margin-right: 10px;
}

.user-credits .credit-icon {
    margin-right: 6px;
    font-size: 16px;
}

.user-credits .credit-amount {
    font-variant-numeric: tabular-nums;
}

/* Mobile adjustments for credits */
@media (max-width: 768px) {
    .user-credits {
        margin-right: 0;
        margin-bottom: 10px;
        width: fit-content;
    }
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    box-shadow: 0 10px 15px -3px rgba(0, 132, 137, 0.1);
}

.popular-tag {
    position: absolute;
    top: 30px;
    right: -40px;
    background: var(--primary-color);
    color: white;
    padding: 6px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 700;
}

.pricing-header .price {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pricing-header .currency {
    font-size: 1.25rem;
    font-weight: 500;
    vertical-align: top;
    margin-top: 0.5rem;
    display: inline-block;
    color: var(--text-light);
}

.pricing-header .period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

.pricing-header .credits-amount {
    display: inline-block;
    background: #e6fffa;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.pricing-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
    text-align: left;
    padding: 0;
}

.pricing-features li {
    margin-bottom: 0.75rem;
    color: #4a5568;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.pricing-features li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: 900;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.pricing-card.membership-highlight {
    background: #fff;
    border: 2px solid #007a5a;
    transform: scale(1.05);
    z-index: 5;
    box-shadow: 0 25px 50px -12px rgba(0, 122, 90, 0.25);
}

.pricing-card.membership-highlight:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-card.membership-highlight .pricing-header h3 {
    color: #007a5a;
}

.pricing-card.membership-highlight .credits-amount {
    background: #f0fdf4;
    color: #15803d;
}

.pricing-card.membership-highlight .pricing-features li::before {
    color: #15803d;
}

/* User Credits Link Hover */
a.user-credits:hover {
    background-color: #fff3c4;
    border-color: #d69e2e;
}
