/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #E5E9F0; /* nord5 */
    color: #3B4252; /* nord1 */
    line-height: 1.6;
}

h1, h2 {
    color: #5E81AC; /* nord10 */
    text-align: center;
}

a {
    color: #8FBCBB; /* nord7 */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    background-color: #88C0D0; /* nord8 */
    color: #ECEFF4; /* nord6 */
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #81A1C1; /* nord9 */
}

input, select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #D8DEE9; /* nord4 */
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #fff; /* nord6 */
    color: #3B4252; /* nord1 */
}

form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #fff; /* nord6 */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Main Navigation */
.main-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(216, 222, 233, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2E3440;
    letter-spacing: 2px;
    text-align: left;
    white-space: nowrap;
    text-decoration: none;
}


.nav-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav-link {
    color: #5E81AC;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-right: 12px;
}

.nav-link:hover {
    color: #2E3440;
    background: rgba(94, 129, 172, 0.1);
    transform: translateY(-1px);
}

.nav-btn {
    background: transparent;
    color: #5E81AC;
    border: 2px solid #5E81AC;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-btn:hover {
    background: #5E81AC;
    color: #ECEFF4;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(94, 129, 172, 0.3);
}

/* Responsive navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 12px 20px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .nav-btn {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 8px 16px;
    }
    
    .logo-text {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    .nav-actions {
        gap: 6px;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 4px 8px;
        margin-right: 6px;
    }
    
    .nav-btn {
        padding: 4px 12px;
        font-size: 0.75rem;
    }
}

/* Header/Landing Specific */
header {
    background: linear-gradient(135deg, #88C0D0, #A3BE8C); /* nord8 to nord14 */
    color: #ECEFF4; /* nord6 */
    padding: 40px 20px;
    text-align: center;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #ECEFF4; /* nord6 */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Profile/Settings */
#settings-section {
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

#settings-form {
    background: #fff;
    padding: 32px 28px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(94,129,172,0.15);
    margin-top: 24px;
}

#settings-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2E3440;
    font-size: 0.95rem;
}

#settings-form input,
#settings-form select {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 2px solid #D8DEE9;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fff;
    color: #3B4252;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#settings-form input:focus,
#settings-form select:focus {
    border-color: #88C0D0;
    box-shadow: 0 0 8px rgba(136, 192, 208, 0.3);
    outline: none;
}

#settings-form button {
    background: linear-gradient(135deg, #A3BE8C, #88C0D0);
    color: #2E3440;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 8px;
}

#settings-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(163,190,140,0.4);
}

/* Profile Page Responsive */
@media (max-width: 768px) {
    #settings-section {
        padding: 0 16px;
        margin-top: 20px;
    }
    
    #settings-form {
        padding: 24px 20px;
        margin-top: 20px;
    }
    
    #settings-form label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    #settings-form input,
    #settings-form select {
        padding: 14px 16px;
        margin-bottom: 16px;
        font-size: 16px;
    }
    
    #settings-form button {
        padding: 16px 24px;
        font-size: 16px;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    #settings-section {
        padding: 0 12px;
        margin-top: 16px;
    }
    
    #settings-form {
        padding: 20px 16px;
        margin-top: 16px;
    }
    
    #settings-form label {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    #settings-form input,
    #settings-form select {
        padding: 12px 14px;
        margin-bottom: 14px;
        font-size: 16px;
    }
    
    #settings-form button {
        padding: 14px 20px;
        font-size: 16px;
        margin-top: 10px;
    }
}

#bmi-section {
    background: linear-gradient(135deg, #ECEFF4 0%, #E5E9F0 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(94,129,172,0.15);
    padding: 32px 28px;
    margin: 32px auto;
    max-width: 500px;
    text-align: center;
    border: 1px solid rgba(216, 222, 233, 0.3);
}

#bmi-section h2 {
    color: #2E3440;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

#bmi-value {
    background: linear-gradient(135deg, #A3BE8C, #88C0D0);
    color: #2E3440;
    font-size: 2.5rem;
    font-weight: 800;
    padding: 20px 32px;
    border-radius: 12px;
    margin: 20px 0;
    display: inline-block;
    box-shadow: 0 4px 16px rgba(163,190,140,0.3);
    min-width: 120px;
}

#bmi-category {
    background: #fff;
    color: #5E81AC;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    margin-top: 16px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(136,192,208,0.12);
    border: 1px solid rgba(136,192,208,0.2);
}

/* BMI Section Responsive */
@media (max-width: 768px) {
    #bmi-section {
        padding: 24px 20px;
        margin: 24px 12px;
    }
    
    #bmi-section h2 {
        font-size: 1.6rem;
    }
    
    #bmi-value {
        font-size: 2.2rem;
        padding: 16px 24px;
        min-width: 100px;
    }
    
    #bmi-category {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    #bmi-section {
        padding: 20px 16px;
        margin: 20px 8px;
    }
    
    #bmi-section h2 {
        font-size: 1.4rem;
    }
    
    #bmi-value {
        font-size: 1.8rem;
        padding: 12px 20px;
        min-width: 80px;
    }
    
    #bmi-category {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

/* Workout Page */
#workout-section, #history-section, #calorie-tracker-section, #previous-meals-section {
    margin: 20px auto;
    max-width: 800px;
    padding: 0 20px;
}

#workout-section {
    background: #fff;
    padding: 32px 28px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(94,129,172,0.15);
    margin-bottom: 32px;
    text-align: center;
}

#workout-section h2 {
    color: #2E3440;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

#workout-section p {
    color: #4C566A;
    font-size: 1.1rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

#workout-section button {
    background: linear-gradient(135deg, #A3BE8C, #88C0D0);
    color: #2E3440;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(163,190,140,0.3);
}

#workout-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(163,190,140,0.4);
}

#calorie-tracker-section {
    background: #fff;
    padding: 32px 28px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(94,129,172,0.15);
    margin-bottom: 32px;
}

#calorie-tracker-section h2 {
    color: #2E3440;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

#calorie-tracker-section h3 {
    color: #2E3440;
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 16px;
    text-align: center;
}

#calorie-form {
    background: #ECEFF4;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#calorie-form .form-group {
    margin-bottom: 16px;
}

#calorie-form label {
    display: block;
    margin-bottom: 8px;
    color: #2E3440;
    font-weight: 600;
    font-size: 0.95rem;
}

#calorie-form input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 8px;
    border: 2px solid #D8DEE9;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fff;
    color: #3B4252;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#calorie-form input:focus {
    border-color: #88C0D0;
    box-shadow: 0 0 8px rgba(136, 192, 208, 0.3);
    outline: none;
}

#calorie-form button {
    background: linear-gradient(135deg, #A3BE8C, #88C0D0);
    color: #2E3440;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 16px;
}

#calorie-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(163,190,140,0.4);
}

#meals-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#meals-table th, #meals-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #D8DEE9;
}

#meals-table th {
    background-color: #5E81AC;
    color: #ECEFF4;
}

#history-section {
    background: #fff;
    padding: 32px 28px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(94,129,172,0.15);
}

#previous-meals-section {
    background: #fff;
    padding: 32px 28px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(94,129,172,0.15);
    margin-bottom: 32px;
}

#previous-meals-section h2 {
    color: #2E3440;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

#history-section h2 {
    color: #2E3440;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    text-align: center;
    border: 1px solid #D8DEE9; /* nord4 */
}

th {
    background-color: #5E81AC; /* nord10 */
    color: #ECEFF4; /* nord6 */
}

#progress {
    text-align: center;
    margin: 20px 0;
    font-size: 18px;
}

/* Workout Page Responsive */
@media (max-width: 768px) {
    #workout-section, #history-section, #calorie-tracker-section {
        margin: 16px 12px;
        padding: 0 8px;
    }
    
    #calorie-tracker-section {
        padding: 24px 20px;
        margin-bottom: 24px;
    }
    
    #calorie-tracker-section h2 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    #calorie-tracker-section h3 {
        font-size: 1.3rem;
        margin-top: 20px;
        margin-bottom: 12px;
    }
    
    #calorie-form {
        padding: 20px 16px;
        margin-bottom: 20px;
    }
    
    #calorie-form input {
        padding: 10px 14px;
        margin-bottom: 6px;
    }
    
    #calorie-form button {
        padding: 12px 24px;
        margin-top: 12px;
    }
    
    #meals-table {
        font-size: 13px;
    }
    
    #meals-table th, #meals-table td {
        padding: 8px 6px;
    }
    
    #workout-section {
        padding: 24px 20px;
        margin-bottom: 24px;
    }
    
    #workout-section h2 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    #workout-section p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    #workout-section button {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    #history-section {
        padding: 24px 20px;
    }
    
    #history-section h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    #progress {
        font-size: 16px;
        margin: 16px 0;
    }
    
    table {
        font-size: 13px;
    }
    
    th, td {
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    #workout-section, #history-section, #calorie-tracker-section {
        margin: 12px 8px;
        padding: 0 4px;
    }
    
    #calorie-tracker-section {
        padding: 20px 16px;
        margin-bottom: 20px;
    }
    
    #calorie-tracker-section h2 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    #calorie-tracker-section h3 {
        font-size: 1.2rem;
        margin-top: 16px;
        margin-bottom: 10px;
    }
    
    #calorie-form {
        padding: 16px 12px;
        margin-bottom: 16px;
    }
    
    #calorie-form label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    #calorie-form input {
        padding: 10px 12px;
        margin-bottom: 6px;
        font-size: 14px;
    }
    
    #calorie-form button {
        padding: 10px 20px;
        margin-top: 10px;
        font-size: 14px;
    }
    
    #meals-table {
        font-size: 11px;
    }
    
    #meals-table th, #meals-table td {
        padding: 6px 4px;
    }
    
    #workout-section {
        padding: 20px 16px;
        margin-bottom: 20px;
    }
    
    #workout-section h2 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    #workout-section p {
        font-size: 0.95rem;
        margin-bottom: 18px;
    }
    
    #workout-section button {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
    }
    
    #history-section {
        padding: 20px 16px;
    }
    
    #history-section h2 {
        font-size: 1.4rem;
        margin-bottom: 18px;
    }
    
    #progress {
        font-size: 14px;
        margin: 12px 0;
    }
    
    table {
        font-size: 11px;
    }
    
    th, td {
        padding: 6px 4px;
    }
    
    /* Make table scrollable on very small screens */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 360px) {
    #workout-section, #history-section, #calorie-tracker-section, #previous-meals-section {
        margin: 8px 4px;
    }
    
    #calorie-tracker-section {
        padding: 16px 12px;
        margin-bottom: 16px;
    }
    
    #calorie-tracker-section h2 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    #calorie-tracker-section h3 {
        font-size: 1.1rem;
        margin-top: 12px;
        margin-bottom: 8px;
    }
    
    #calorie-form {
        padding: 12px 10px;
        margin-bottom: 12px;
    }
    
    #calorie-form label {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    #calorie-form input {
        padding: 8px 10px;
        margin-bottom: 4px;
        font-size: 13px;
    }
    
    #calorie-form button {
        padding: 8px 16px;
        margin-top: 8px;
        font-size: 13px;
    }
    
    #meals-table {
        font-size: 10px;
    }
    
    #meals-table th, #meals-table td {
        padding: 4px 2px;
    }
    
    #workout-section {
        padding: 16px 12px;
        margin-bottom: 16px;
    }
    
    #workout-section h2 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    #workout-section p {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
    
    #workout-section button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    #history-section {
        padding: 16px 12px;
    }
    
    #history-section h2 {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }
    
    table {
        font-size: 10px;
    }
    
    th, td {
        padding: 4px 2px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 8px 12px;
    }

    h1, h2 {
        font-size: 28px;
    }

    form {
        padding: 16px;
        margin: 10px 12px;
    }

    input, select, button {
        font-size: 16px; /* Better for mobile touch */
        padding: 12px;
    }

    table {
        font-size: 14px;
    }

    header {
        padding: 20px 12px;
    }

    .container {
        padding: 16px;
        margin: 10px 12px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 4px 8px;
    }

    h1, h2 {
        font-size: 24px;
    }

    form {
        padding: 12px;
        margin: 8px 10px;
    }

    input, select, button {
        font-size: 16px;
        padding: 10px;
    }

    table {
        font-size: 12px;
    }

    .container {
        padding: 12px;
        margin: 8px 10px;
    }
}

/* Modern Touches */
body {
    transition: background-color 0.3s ease;
}

button, input, select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus {
    border-color: #88C0D0; /* nord8 */
    box-shadow: 0 0 5px rgba(136, 192, 208, 0.5); /* nord8 with alpha */
}

/* Centered container for login/register/profile forms */
.centered-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(236, 239, 244, 0.95); /* nord6 with opacity */
}

.centered-container form, .centered-container > * {
    width: 100%;
    max-width: 400px;
}

.login-box {
    background: #fff; /* nord6 */
    padding: 32px 28px;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(94, 129, 172, 0.12); /* nord10 with alpha */
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.login-box h1 {
    margin-bottom: 18px;
}

.login-box input {
    margin-bottom: 12px;
}

.login-box button {
    width: 100%;
    margin-bottom: 8px;
}

/* Login Page Responsive */
@media (max-width: 768px) {
    .centered-container {
        padding: 20px;
        min-height: calc(100vh - 80px); /* Account for fixed nav */
        padding-top: 100px; /* Extra space for nav */
    }
    
    .login-box {
        padding: 32px 28px;
        max-width: 380px;
        width: 100%;
        margin: 0 auto;
    }
    
    .login-box h1 {
        font-size: 2rem;
        margin-bottom: 24px;
    }
    
    .login-box input {
        font-size: 16px;
        padding: 14px 16px;
        margin-bottom: 16px;
        border-radius: 8px;
    }
    
    .login-box button {
        font-size: 16px;
        padding: 14px 16px;
        margin-bottom: 12px;
        border-radius: 8px;
        width: 100%;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    #workout-section, #history-section, #calorie-tracker-section, #previous-meals-section {
        margin: 12px 8px;
        padding: 0 4px;
    }
    
    #previous-meals-section {
        padding: 20px 16px;
        margin-bottom: 20px;
    }
    
    #previous-meals-section h2 {
        font-size: 1.4rem;
        margin-bottom: 18px;
    }
    
    .login-box {
        padding: 28px 24px;
        max-width: 100%;
        margin: 0 8px;
    }
    
    .login-box h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .login-box input {
        font-size: 16px;
        padding: 12px 14px;
        margin-bottom: 14px;
    }
    
    .login-box button {
        font-size: 16px;
        padding: 12px 14px;
        margin-bottom: 10px;
    }
}

@media (max-width: 360px) {
    .centered-container {
        padding: 12px 8px;
        padding-top: 85px;
    }
    
    .login-box {
        padding: 24px 20px;
        margin: 0 4px;
    }
    
    .login-box h1 {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }
    
    .login-box input {
        font-size: 16px;
        padding: 10px 12px;
        margin-bottom: 12px;
    }
    
    .login-box button {
        font-size: 16px;
        padding: 10px 12px;
        margin-bottom: 8px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-image: url('/static/images/fit.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #222e3a; /* fallback color */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* Account for fixed navigation */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(34, 46, 58, 0.6); /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ECEFF4; /* nord6 */
    padding: 60px 20px 40px 20px;
    background: transparent;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 18px;
    letter-spacing: 2px;
    color: #ECEFF4;
}

.tagline {
    font-size: 1.3rem;
    margin-bottom: 32px;
    font-weight: 400;
}

.cta {
    background: #A3BE8C; /* nord14 */
    color: #2E3440; /* nord0 */
    font-weight: bold;
    font-size: 1.2rem;
    padding: 16px 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(94,129,172,0.10);
    transition: background 0.3s;
}
.cta:hover {
    background: #88C0D0; /* nord8 */
    color: #ECEFF4;
}

/* About Section */
.about {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background: #ECEFF4;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    padding: 32px 24px;
    text-align: center;
}

/* Features Section */
.features {
    max-width: 1000px;
    margin: 48px auto 0 auto;
    padding: 0 16px;
}
.features h2 {
    margin-bottom: 24px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}
.feature-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(136,192,208,0.10);
    padding: 28px 18px 22px 18px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 24px rgba(94,129,172,0.13);
}
.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: block;
}
.feature-card h3 {
    margin-bottom: 10px;
    color: #5E81AC;
}

/* Motivational Quote Section */
.quote {
    margin: 56px auto 0 auto;
    max-width: 600px;
    background: #D8DEE9;
    border-radius: 10px;
    padding: 32px 20px;
    text-align: center;
    color: #3B4252;
    font-style: italic;
    box-shadow: 0 2px 8px rgba(136,192,208,0.10);
}
.quote blockquote {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.7;
}
.quote span {
    display: block;
    margin-top: 12px;
    font-size: 1rem;
    font-style: normal;
    color: #5E81AC;
}

/* Footer */
.footer {
    margin-top: 60px;
    padding: 18px 0;
    background: #2E3440;
    color: #ECEFF4;
    text-align: center;
    font-size: 1rem;
    border-radius: 0 0 10px 10px;
}
.footer a {
    color: #8FBCBB;
    text-decoration: underline;
}

/* Responsive Tweaks */
@media (max-width: 800px) {
    .about, .features, .quote {
        margin-left: 10px;
        margin-right: 10px;
    }
    .features-grid {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content {
        padding: 40px 20px 20px 20px;
    }
    .tagline {
        font-size: 1.1rem;
    }
    .about, .quote {
        padding: 20px 20px;
        margin: 20px 12px;
    }
    .feature-card {
        padding: 20px 20px 16px 20px;
    }
    .footer {
        font-size: 0.95rem;
        padding: 16px 0;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content {
        padding: 30px 16px 15px 16px;
    }
    .tagline {
        font-size: 1rem;
    }
    .about, .quote {
        padding: 16px 16px;
        margin: 16px 10px;
    }
    .feature-card {
        padding: 16px 16px 12px 16px;
    }
    .footer {
        font-size: 0.9rem;
        padding: 12px 0;
    }
    .features-grid {
        gap: 16px;
    }
}

/* Sales Section - Why Stoic */
.why-stoic {
    max-width: 800px;
    margin: 40px auto 0 auto;
    background: linear-gradient(135deg, #ECEFF4 0%, #E5E9F0 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(94,129,172,0.15);
    padding: 40px 32px;
    text-align: center;
}

.sales-header h2 {
    font-size: 2.5rem;
    color: #2E3440;
    margin-bottom: 12px;
    font-weight: 800;
}

.subtitle {
    font-size: 1.2rem;
    color: #5E81AC;
    margin-bottom: 40px;
    font-weight: 500;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.benefit-item {
    background: #fff;
    padding: 24px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(136,192,208,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(94,129,172,0.18);
}

.benefit-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
}

.benefit-item h3 {
    color: #2E3440;
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.benefit-item p {
    color: #4C566A;
    line-height: 1.6;
    font-size: 1rem;
}

.social-proof {
    margin-bottom: 40px;
}

.testimonial {
    background: #D8DEE9;
    padding: 24px 28px;
    border-radius: 12px;
    border-left: 4px solid #A3BE8C;
    max-width: 600px;
    margin: 0 auto;
}

.testimonial p {
    font-size: 1.1rem;
    font-style: italic;
    color: #3B4252;
    margin-bottom: 12px;
    line-height: 1.6;
}

.testimonial-author {
    color: #5E81AC;
    font-weight: 600;
    font-size: 0.95rem;
}

.pricing-section {
    background: #fff;
    padding: 32px 28px;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(94,129,172,0.12);
    margin-top: 32px;
}

.price-container {
    margin-bottom: 24px;
}

.original-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.strikethrough {
    font-size: 1.3rem;
    color: #8FBCBB;
    text-decoration: line-through;
    font-weight: 500;
}

.discount-badge {
    background: #A3BE8C;
    color: #2E3440;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.current-price {
    text-align: center;
    margin-bottom: 24px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #2E3440;
}

.price-period {
    font-size: 1.2rem;
    color: #5E81AC;
    font-weight: 500;
}

.price-features {
    text-align: left;
    max-width: 300px;
    margin: 0 auto 24px auto;
}

.price-features p {
    margin-bottom: 8px;
    color: #4C566A;
    font-size: 1rem;
}

.urgency-banner {
    background: linear-gradient(135deg, #A3BE8C, #88C0D0);
    color: #2E3440;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 0.95rem;
}

.cta-primary {
    background: linear-gradient(135deg, #A3BE8C, #88C0D0);
    color: #2E3440;
    border: none;
    padding: 20px 40px;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(163,190,140,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 16px auto;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(163,190,140,0.4);
    background: linear-gradient(135deg, #88C0D0, #A3BE8C);
}

.cta-text {
    font-size: 1.3rem;
    font-weight: 700;
}

.cta-subtext {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

.guarantee {
    color: #5E81AC;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #workout-section, #history-section, #calorie-tracker-section, #previous-meals-section {
        margin: 16px 12px;
        padding: 0 8px;
    }
    
    #previous-meals-section {
        padding: 24px 20px;
        margin-bottom: 24px;
    }
    
    #previous-meals-section h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .sales-header h2 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-item {
        padding: 20px 20px;
    }
    
    .price-amount {
        font-size: 2.8rem;
    }
    
    .cta-primary {
        padding: 18px 28px;
        font-size: 1.2rem;
    }
    
    .pricing-section {
        padding: 24px 24px;
    }
}

@media (max-width: 480px) {
    .why-stoic {
        padding: 20px 20px;
        margin: 16px 12px 0 12px;
    }
    
    .sales-header h2 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .benefits-grid {
        gap: 16px;
    }
    
    .benefit-item {
        padding: 16px 16px;
    }
    
    .price-amount {
        font-size: 2.2rem;
    }
    
    .cta-primary {
        padding: 16px 20px;
        font-size: 1.1rem;
    }
    
    .pricing-section {
        padding: 20px 20px;
    }
}

.stoic-quotes {
    max-width: 700px;
    margin: 48px auto 0 auto;
    background: #E5E9F0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    padding: 32px 24px;
    text-align: center;
}
.stoic-quotes h2 {
    margin-bottom: 18px;
    color: #5E81AC;
}
.stoic-quotes blockquote {
    margin: 18px 0;
    font-size: 1.15rem;
    font-style: italic;
    color: #3B4252;
    background: #D8DEE9;
    border-left: 4px solid #A3BE8C;
    border-radius: 6px;
    padding: 16px 18px 10px 18px;
    box-shadow: 0 2px 8px rgba(136,192,208,0.07);
}
.stoic-quotes span {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    font-style: normal;
    color: #5E81AC;
}

/* Membership Page Styles */
.membership-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.membership-header {
    text-align: center;
    margin-bottom: 48px;
}

.membership-header h1 {
    font-size: 2.5rem;
    color: #2E3440;
    margin-bottom: 12px;
    font-weight: 800;
}

.membership-subtitle {
    font-size: 1.2rem;
    color: #5E81AC;
    font-weight: 500;
}

.subscription-status {
    margin-bottom: 40px;
}

.status-card {
    background: linear-gradient(135deg, #ECEFF4 0%, #E5E9F0 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(94,129,172,0.15);
    padding: 32px 28px;
    text-align: center;
    border: 1px solid rgba(216, 222, 233, 0.3);
}

.status-card h2 {
    color: #2E3440;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.status-card p {
    color: #4C566A;
    font-size: 1.1rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-list li {
    color: #4C566A;
    font-size: 1rem;
    margin-bottom: 8px;
    padding: 8px 0;
}

.subscription-details {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin: 24px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.subscription-details p {
    margin-bottom: 8px;
    color: #4C566A;
}

.status-active {
    color: #A3BE8C;
    font-weight: 700;
}

.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn-secondary {
    background: transparent;
    color: #5E81AC;
    border: 2px solid #5E81AC;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5E81AC;
    color: #ECEFF4;
    transform: translateY(-1px);
}

.btn-danger {
    background: transparent;
    color: #BF616A;
    border: 2px solid #BF616A;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #BF616A;
    color: #ECEFF4;
    transform: translateY(-1px);
}

.subscription-form {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(94,129,172,0.15);
    padding: 32px 28px;
    margin-top: 32px;
}

.subscription-form h2 {
    color: #2E3440;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.pricing-card {
    background: linear-gradient(135deg, #ECEFF4 0%, #E5E9F0 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: center;
}

.price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.original-price {
    font-size: 1.3rem;
    color: #8FBCBB;
    text-decoration: line-through;
    font-weight: 500;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2E3440;
}

.price-period {
    font-size: 1.2rem;
    color: #5E81AC;
    font-weight: 500;
}

.discount-badge {
    background: #A3BE8C;
    color: #2E3440;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.features-list {
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.features-list p {
    margin-bottom: 8px;
    color: #4C566A;
    font-size: 1rem;
}

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

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

.card-element {
    background: #fff;
    border: 2px solid #D8DEE9;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.card-element:focus {
    border-color: #88C0D0;
    box-shadow: 0 0 5px rgba(136, 192, 208, 0.3);
}

.error-message {
    color: #BF616A;
    font-size: 0.9rem;
    margin-top: 8px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .membership-container {
        padding: 24px 20px;
    }
    
    .membership-header h1 {
        font-size: 2.2rem;
    }
    
    .membership-subtitle {
        font-size: 1.1rem;
    }
    
    .status-card {
        padding: 28px 24px;
    }
    
    .status-card h2 {
        font-size: 1.6rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .btn-secondary, .btn-danger {
        width: 100%;
        max-width: 300px;
    }
    
    .current-price {
        font-size: 2.2rem;
    }
    
    .subscription-form {
        padding: 24px 20px;
    }
    
    .pricing-card {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .membership-container {
        padding: 16px 12px;
    }
    
    .membership-header h1 {
        font-size: 1.8rem;
    }
    
    .membership-subtitle {
        font-size: 1rem;
    }
    
    .status-card {
        padding: 20px 16px;
    }
    
    .status-card h2 {
        font-size: 1.4rem;
    }
    
    .action-buttons {
        gap: 8px;
    }
    
    .btn-secondary, .btn-danger {
        max-width: 280px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .current-price {
        font-size: 1.8rem;
    }
    
    .subscription-form {
        padding: 20px 16px;
    }
    
    .pricing-card {
        padding: 16px 12px;
    }
}
