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

:root {
    --primary-dark: #0a3d3d;
    --primary: #0f5454;
    --primary-light: #1a7a7a;
    --accent: #e8611a;
    --accent-hover: #d4550f;
    --accent-light: #ff7a33;
    --bg-light: #e4eaeb;
    --bg-white: #ffffff;
    --bg-card: #f5f7f8;
    --text-dark: #1a1a1a;
    --text-gray: #555555;
    --text-light: #888888;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --shadow-card: 0 10px 30px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

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

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.animate-left { transform: translateX(-40px); }
.animate-on-scroll.animate-left.animated { transform: translateX(0); }
.animate-on-scroll.animate-right { transform: translateX(40px); }
.animate-on-scroll.animate-right.animated { transform: translateX(0); }
.animate-on-scroll.animate-scale { transform: scale(0.85); }
.animate-on-scroll.animate-scale.animated { transform: scale(1); }

.stagger-1 { transition-delay: 0.1s !important; }
.stagger-2 { transition-delay: 0.2s !important; }
.stagger-3 { transition-delay: 0.3s !important; }
.stagger-4 { transition-delay: 0.4s !important; }

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
    padding: 0 2rem;
}

.navbar.scrolled {
    box-shadow: 0 2px 30px rgba(0,0,0,0.12);
}

.navbar-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary-dark);
    z-index: 1001;
}

.navbar-logo .logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.navbar-logo .logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

.navbar-logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.navbar-logo .logo-text small {
    font-size: 0.65rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.navbar-nav a {
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.navbar-nav a:hover {
    background: rgba(10, 61, 61, 0.08);
}

.navbar-nav a.active {
    background: var(--primary-dark);
    color: white;
}

.navbar-nav a.btn-nav {
    background: var(--accent);
    color: white;
    padding: 10px 22px;
}

.navbar-nav a.btn-nav:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(232, 97, 26, 0.4);
}

.navbar-nav a.btn-nav-outline {
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
    padding: 8px 20px;
}

.navbar-nav a.btn-nav-outline:hover {
    background: var(--primary-dark);
    color: white;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--primary-dark);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-dark);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,61,61,0.85) 0%, rgba(15,84,84,0.7) 50%, rgba(10,61,61,0.9) 100%);
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-light), transparent);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.hero-content h1 span {
    display: block;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badge {
    position: absolute;
    top: 30px; right: 30px;
    width: 55px; height: 55px;
    background: var(--accent);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    z-index: 4;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 5px 20px rgba(232, 97, 26, 0.4);
    transform: rotate(5deg);
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px; height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; animation-duration: 8s; }
.particle:nth-child(2) { top: 60%; left: 20%; animation-delay: 1s; animation-duration: 6s; width: 4px; height: 4px; }
.particle:nth-child(3) { top: 30%; left: 70%; animation-delay: 2s; animation-duration: 7s; }
.particle:nth-child(4) { top: 70%; left: 80%; animation-delay: 3s; animation-duration: 9s; width: 8px; height: 8px; }
.particle:nth-child(5) { top: 40%; left: 50%; animation-delay: 1.5s; animation-duration: 5s; width: 3px; height: 3px; }
.particle:nth-child(6) { top: 80%; left: 40%; animation-delay: 2.5s; animation-duration: 7s; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before { left: 100%; }

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(232, 97, 26, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 97, 26, 0.4);
}

.btn-icon {
    width: 20px; height: 20px;
    transition: transform 0.3s;
}

.btn:hover .btn-icon { transform: translateX(3px); }

.section {
    padding: 80px 2rem;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.3rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.values-section {
    background: var(--bg-light);
}

.value-item {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto 80px;
}

.value-item:last-child { margin-bottom: 0; }

.value-item.reverse { flex-direction: row-reverse; }

.value-card {
    flex: 0 0 280px;
    height: 260px;
    background: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    transform: rotate(-3deg);
}

.value-item.reverse .value-card { transform: rotate(3deg); }

.value-card:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: var(--shadow-lg);
}

.value-card-icon { font-size: 3.5rem; color: var(--accent); }

.value-card::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 100px; height: 100px;
    background: rgba(232, 97, 26, 0.08);
    border-radius: 50%;
}

.value-info { flex: 1; }

.value-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--primary-dark);
    color: white;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.value-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.value-info p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

.offers-section {
    background: var(--bg-light);
    padding-bottom: 100px;
}

.offers-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.offer-card {
    padding: 35px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.offer-card:hover { transform: translateY(-5px); }

.offer-card.accent-bg { background: var(--accent); color: white; }
.offer-card.white-bg { background: white; box-shadow: var(--shadow-sm); }
.offer-card.full-width { grid-column: span 2; }

.offer-card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 1.3rem;
}

.accent-bg .offer-card-icon { background: rgba(255,255,255,0.2); color: white; }
.white-bg .offer-card-icon { background: var(--bg-light); color: var(--primary-dark); }

.offer-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; }
.offer-card p { font-size: 0.9rem; opacity: 0.85; line-height: 1.6; }

.cta-center { text-align: center; margin-top: 50px; }

.footer {
    background: var(--bg-light);
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 50px 2rem 20px;
}

.footer-container { max-width: 1200px; margin: 0 auto; }

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.footer-brand .footer-logo-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 0.8rem;
}

.footer-brand p { color: var(--text-gray); font-size: 0.9rem; line-height: 1.6; }

.footer-section h4 { font-size: 1rem; font-weight: 700; margin-bottom: 15px; }

.footer-section p, .footer-section a {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section a:hover { color: var(--accent); }

.footer-socials { display: flex; gap: 10px; margin-top: 15px; }

.footer-socials a {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--accent); }

.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 40px 2rem;
    margin-top: 70px;
    text-align: center;
}

.page-header h1 { color: white; font-size: 2rem; font-weight: 800; }

.form-section {
    padding: 40px 2rem 80px;
    display: flex;
    justify-content: center;
}

.form-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 50px;
    width: 100%;
    max-width: 850px;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.6s ease-out;
}

.form-container h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }

.form-container .form-subtitle {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row.single { grid-template-columns: 1fr; }

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.form-group label .required { color: var(--accent); margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #d1d9db;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 84, 84, 0.1);
}

.form-group input::placeholder { color: #aab5b7; }
.form-group .file-hint { font-size: 0.8rem; color: var(--text-light); margin-top: 6px; }

.form-divider { border: none; border-top: 1px solid #e8edee; margin: 30px 0; }

.form-section-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }

.form-submit-row { margin-top: 30px; }

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.btn-submit:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px rgba(232, 97, 26, 0.4);
    transform: translateY(-2px);
}

.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
    animation: fadeInDown 0.4s ease;
}

.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.tools-section {
    padding: 60px 2rem 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.tool-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

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

.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.tool-card:hover::before { transform: scaleX(1); }

.tool-icon {
    width: 80px; height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    transition: var(--transition);
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 20px rgba(10, 61, 61, 0.3);
}

.tool-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.tool-card p { color: var(--text-gray); font-size: 0.9rem; line-height: 1.6; }

.tool-card .tool-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
}

.tool-card:hover .tool-arrow { gap: 10px; }

.calculator-section {
    padding: 40px 2rem 100px;
    max-width: 800px;
    margin: 0 auto;
}

.calculator-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 45px;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.6s ease;
}

.calculator-card h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }

.calculator-card .calc-desc {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.calc-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.calc-form .form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.calc-form .form-group input,
.calc-form .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #d1d9db;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: var(--transition);
}

.calc-form .form-group input:focus,
.calc-form .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 84, 84, 0.1);
}

.calc-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    margin-top: 10px;
}

.calc-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(232, 97, 26, 0.4);
}

.bmi-result {
    display: none;
    margin-top: 30px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    text-align: center;
    animation: scaleIn 0.5s ease;
}

.bmi-result.show { display: block; }

.bmi-value { font-size: 3.5rem; font-weight: 900; margin-bottom: 8px; }
.bmi-category { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }

.bmi-scale {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #f1c40f, #e67e22, #e74c3c);
    position: relative;
    margin: 20px 0;
}

.bmi-marker {
    position: absolute;
    top: -6px;
    width: 24px; height: 24px;
    background: white;
    border: 3px solid var(--primary-dark);
    border-radius: 50%;
    transform: translateX(-50%);
    transition: left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.bmi-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 5px;
}

.bmi-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.bmi-info-item {
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.bmi-info-item.underweight { background: rgba(52, 152, 219, 0.1); color: #3498db; }
.bmi-info-item.normal { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.bmi-info-item.overweight { background: rgba(241, 196, 15, 0.1); color: #e6a817; }
.bmi-info-item.obese { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }

.calorie-result {
    display: none;
    margin-top: 30px;
    animation: scaleIn 0.5s ease;
}

.calorie-result.show { display: block; }

.calorie-main {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-md);
    color: white;
    margin-bottom: 20px;
}

.calorie-main .cal-value { font-size: 3.5rem; font-weight: 900; }
.calorie-main .cal-unit { font-size: 1rem; opacity: 0.8; }
.calorie-main .cal-label { font-size: 1.1rem; margin-top: 5px; opacity: 0.9; }

.calorie-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.cal-card {
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    text-align: center;
}

.cal-card .cal-card-value { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.cal-card .cal-card-label { font-size: 0.85rem; color: var(--text-gray); margin-top: 4px; }

.calorie-goals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.goal-card {
    padding: 18px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

.goal-card:hover { background: white; box-shadow: var(--shadow-sm); }

.goal-card .goal-icon { font-size: 1.5rem; margin-bottom: 8px; }
.goal-card .goal-label { font-size: 0.85rem; font-weight: 600; color: var(--text-gray); margin-bottom: 5px; }
.goal-card .goal-value { font-size: 1.3rem; font-weight: 800; }

.gender-select { display: flex; gap: 10px; margin-bottom: 20px; }

.gender-option {
    flex: 1;
    padding: 12px;
    border: 2px solid #d1d9db;
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
}

.gender-option:hover { border-color: var(--primary); }
.gender-option.active { border-color: var(--primary-dark); background: rgba(10, 61, 61, 0.05); }
.gender-option input { display: none; }

.activity-cards { display: grid; gap: 8px; margin-bottom: 20px; }

.activity-card {
    padding: 12px 16px;
    border: 2px solid #d1d9db;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.activity-card:hover { border-color: var(--primary); }
.activity-card.active { border-color: var(--primary-dark); background: rgba(10, 61, 61, 0.05); }
.activity-card input { display: none; }
.activity-card .activity-emoji { font-size: 1.3rem; }
.activity-card .activity-info strong { display: block; font-size: 0.9rem; }
.activity-card .activity-info small { color: var(--text-gray); font-size: 0.8rem; }

.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-light);
    margin-top: 70px;
}

.login-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 50px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-md);
    text-align: center;
    animation: scaleIn 0.5s ease;
}

.login-card h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 30px; }
.login-card .form-group { margin-bottom: 20px; text-align: left; }

.admin-wrapper {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    display: flex;
}

.admin-sidebar {
    width: 260px;
    background: var(--primary-dark);
    color: white;
    padding: 30px 0;
    position: fixed;
    top: 70px; bottom: 0; left: 0;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
}

.admin-sidebar h3 {
    padding: 0 25px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.5;
    margin-bottom: 15px;
}

.admin-sidebar-nav { list-style: none; }

.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-sidebar-nav a:hover,
.admin-sidebar-nav a.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: var(--accent);
}

.admin-sidebar-nav a .nav-icon { width: 20px; text-align: center; font-size: 1rem; }

.admin-content {
    margin-left: 260px;
    flex: 1;
    padding: 30px;
    background: var(--bg-light);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h1 { font-size: 1.8rem; font-weight: 800; }

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

.stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.stat-card .stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.stat-card .stat-icon.orange { background: rgba(232, 97, 26, 0.1); color: var(--accent); }
.stat-card .stat-icon.teal { background: rgba(10, 61, 61, 0.1); color: var(--primary-dark); }
.stat-card .stat-icon.green { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.stat-card .stat-icon.blue { background: rgba(52, 152, 219, 0.1); color: #3498db; }

.stat-card .stat-value { font-size: 2rem; font-weight: 900; }
.stat-card .stat-label { color: var(--text-gray); font-size: 0.85rem; margin-top: 4px; }

.admin-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 25px;
}

.admin-card-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card-header h3 { font-size: 1.1rem; font-weight: 700; }
.admin-card-body { padding: 25px; }

.admin-table { width: 100%; border-collapse: collapse; }

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.admin-table th {
    background: var(--bg-light);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-gray);
}

.admin-table tr:hover td { background: rgba(10, 61, 61, 0.02); }

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.new { background: rgba(232, 97, 26, 0.1); color: var(--accent); }
.status-badge.reviewed { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }

.action-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    margin-right: 5px;
    font-family: var(--font-main);
}

.action-btn.view { background: rgba(52, 152, 219, 0.1); color: #3498db; }
.action-btn.view:hover { background: #3498db; color: white; }
.action-btn.delete { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }
.action-btn.delete:hover { background: #e74c3c; color: white; }

.content-edit-form {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.content-edit-form label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-gray);
}

.content-edit-form input,
.content-edit-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d9db;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-main);
    margin-bottom: 12px;
    transition: var(--transition);
}

.content-edit-form input:focus,
.content-edit-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 84, 84, 0.1);
}

.content-edit-form .save-btn {
    padding: 10px 24px;
    background: var(--primary-dark);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.content-edit-form .save-btn:hover { background: var(--primary); }

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-overlay.show { display: flex; }

.modal {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px; right: 15px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover { background: #e74c3c; color: white; }

.modal h3 { font-size: 1.4rem; margin-bottom: 20px; }

.detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-label { font-weight: 600; min-width: 180px; color: var(--text-gray); font-size: 0.9rem; }
.detail-value { flex: 1; font-size: 0.9rem; }

.detail-photo {
    width: 120px; height: 120px;
    border-radius: var(--radius-md);
    object-fit: cover;
    margin-top: 10px;
}

.breadcrumbs {
    padding: 15px 2rem;
    margin-top: 70px;
    background: white;
    border-bottom: 1px solid #eee;
}

.breadcrumbs-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.breadcrumbs a { color: var(--primary-dark); font-weight: 500; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .separator { color: #ccc; }

.page-loader {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden { opacity: 0; visibility: hidden; }

.loader-spinner {
    width: 50px; height: 50px;
    border: 4px solid var(--bg-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(232, 97, 26, 0.4);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); }

.admin-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 20px; left: 20px;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--primary-dark);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 101;
    box-shadow: var(--shadow-md);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

@media (max-width: 1024px) {
    .admin-sidebar { width: 220px; }
    .admin-content { margin-left: 220px; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }

    .navbar-nav {
        position: fixed;
        top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 10px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .navbar-nav.open { right: 0; }
    .navbar-nav a { width: 100%; text-align: center; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero { min-height: 70vh; }

    .value-item, .value-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .value-card {
        flex: 0 0 auto;
        width: 240px; height: 220px;
        transform: none !important;
    }

    .offers-grid { grid-template-columns: 1fr; }
    .offer-card.full-width { grid-column: span 1; }
    .footer-top { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .form-container { padding: 30px 20px; }
    .calc-form .form-row { grid-template-columns: 1fr; }
    .calculator-card { padding: 30px 20px; }
    .bmi-info-grid { grid-template-columns: repeat(2, 1fr); }
    .calorie-breakdown, .calorie-goals { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-content { margin-left: 0; }
    .admin-sidebar.mobile-open { display: block; width: 100%; position: fixed; z-index: 1000; }
    .admin-mobile-toggle { display: flex; align-items: center; justify-content: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 60px 1.5rem; }
    .section-header h2 { font-size: 1.8rem; }
    .tools-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .hero-content h1 { font-size: 1.8rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .bmi-info-grid { grid-template-columns: 1fr; }
}
