/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    color: #334155;
    line-height: 1.6;
    overflow-x: hidden;
    background: #fffdf8;
}

.back-button {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.back-button img {
    width: 64px;
    height: 64px;
}

.account-back-button {
    position: absolute;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-spinner[hidden] {
    display: none;
}

.spinner-content {
    text-align: center;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FF9900;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spinner-content p {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 100%;
}

/* Header and Navigation */
header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e8e3d8;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    margin: auto;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #FF9900;
}

.logo-icon {
    font-size: 2rem;
    height: 35px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #6b7280;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #FF9900;
}

/* Hero Section */
.hero {
    margin-top: 15px;
    min-height: 600px;
    background: linear-gradient(180deg, #fff0c9 0%, #ffe0a3 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4.5rem 2rem 4rem;
    gap: 4rem;
}

.hero-content {
    z-index: 10;
    max-width: 700px;
    flex: 1;
}

.hero h1 {
    font-size: 3rem;
    color: #203246;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #556273;
    line-height: 1.7;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px; 
    height: 600px; 
    border-radius: 40px; 
    box-shadow: 0 12px 30px rgba(44, 62, 80, 0.14); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 12px solid #2C3E50; 
    position: relative;
    background-image: url('slike/homePage.jpg');
    background-size: cover;
    background-position: center;
    animation: swipeToLeft 5s ease-in-out infinite, changeImage 20s step-end infinite;
}

/* Swipe left and fade out animation */
@keyframes swipeToLeft {
    0%   { transform: translateX(600px); opacity: 0; }
    25%  { transform: translateX(0); opacity: 1; }
    75%  { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-600px); opacity: 0; }
}

/* Change background images at intervals */
@keyframes changeImage {
    0%, 24.99%   { background-image: url('slike/homePage.jpg'); }
    25%, 49.99%  { background-image: url('slike/workoutComplete.jpg'); }
    50%, 74.99%  { background-image: url('slike/performanceAnalysis.jpg'); }
    75%, 100%    { background-image: url('slike/statsPageRadarChart.jpg'); }
}

.mascot-display {
    height: 578px;
    width: 300px;
    border-radius: 28px;
}

/* Why Section */
.why-section {
    padding: 4.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background: white;
}

.why-section h2 {
    font-size: 2.5rem;
    color: #2C3E50;
    margin-bottom: 2.25rem;
    font-weight: 800;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.why-card {
    text-align: center;
    padding: 1.5rem;
    background: #fffaf0;
    border: 1px solid #eee5d8;
    border-radius: 18px;
}

.why-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.why-card h3 {
    font-size: 1.5rem;
    color: #2C3E50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.why-card p {
    color: #667085;
    font-size: 1.02rem;
    line-height: 1.7;
}

/* Features Detail Section */
.features-detail {
    padding: 4.5rem 2rem;
    background: #fff7eb;
}

.feature-row {
    max-width: 1200px;
    margin: 0 auto 4.5rem auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    opacity: 0;
}

.feature-text.animate {
    animation: slideIn 0.6s ease-out forwards;
}

.feature-text h2 {
    font-size: 2.5rem;
    color: #2C3E50;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

.feature-text p {
    font-size: 1.08rem;
    color: #667085;
    line-height: 1.75;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    opacity: 0;
}

.feature-image.animate {
    animation: slideIn 0.6s ease-out forwards;
}

.placeholder-image {
    width: 400px;
    height: 400px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(44, 62, 80, 0.08);
}

.placeholder-image.ai-tracking {
    background: linear-gradient(135deg, #87CEEB 0%, #B4E0F0 100%);
}

.placeholder-image.progress-tracking {
    background: linear-gradient(135deg, #4CAF50 0%, #6BC376 100%);
}

.placeholder-image.gamification {
    background: linear-gradient(135deg, #ffd000 0%, #ffc226 100%);
}

.image-icon {
    font-size: 8rem;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* How It Works Section */
.how-it-works {
    padding: 4.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background: white;
}

.how-it-works h2 {
    font-size: 2.5rem;
    color: #2C3E50;
    margin-bottom: 2.5rem;
    font-weight: 800;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
    opacity: 0;
    background: #ffffff;
    border: 1px solid #ebe5db;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.05);
}

.step.animate {
    animation: slideIn 0.6s ease-out forwards;
}

.step.animate:nth-child(1) {
    animation-delay: 0.1s;
}

.step.animate:nth-child(2) {
    animation-delay: 0.3s;
}

.step.animate:nth-child(3) {
    animation-delay: 0.5s;
}

.step.animate:nth-child(4) {
    animation-delay: 0.7s;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #FF9900;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 auto 1.5rem auto;
}

.step h3 {
    font-size: 1.4rem;
    color: #2C3E50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.step p {
    color: #667085;
    font-size: 1rem;
    line-height: 1.7;
}

/* Coming Soon Section */
/* Account Section */
.account-section {
    background: #fff7eb;
    padding: 4.5rem 2rem;
    text-align: center;
}

.account-content {
    max-width: 700px;
    margin: 0 auto;
}

.account-badge {
    display: inline-block;
    background: rgba(255, 153, 0, 0.15);
    color: #D97706;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.account-section h2 {
    font-size: 2.8rem;
    color: #2C3E50;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.account-description {
    font-size: 1.1rem;
    color: #667085;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.account-btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: #FF9900;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.account-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 153, 0, 0.22);
    background: #f39a08;
}

.account-btn:active {
    transform: translateY(0);
}

.coming-soon {
    background: linear-gradient(180deg, #ffb648 0%, #ffad29 100%);
    padding: 3.5rem 2rem;
    text-align: center;
}

.coming-soon-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 800;
}

.coming-soon-content p {
    font-size: 1.15rem;
    color: white;
}

/* Signup Section */
.signup-section {
    padding: 3.5rem 2rem 0.5rem;
    text-align: center;
    background: white;
}

.signup-section h2 {
    font-size: 2.5rem;
    color: #2C3E50;
    margin-bottom: 1rem;
    font-weight: 800;
}

.signup-subtitle {
    font-size: 1.08rem;
    color: #667085;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.signup-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.signup-form input {
    padding: 0.95rem 1.1rem;
    min-width: 280px;
    border-radius: 10px;
    border: 1px solid #dcd6ca;
    font-size: 1rem;
    outline: none;
}

.signup-form input:focus {
    border-color: #FF9900;
}

.signup-form button {
    padding: 0.95rem 1.4rem;
    border-radius: 10px;
    border: none;
    background: #FF9900;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.signup-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 153, 0, 0.22);
}

.signup-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #999;
}

.test-group-note {
    margin-top: 2rem;
}

.test-group-link {
    color: #FF9900;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 153, 0, 0.35);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.test-group-link:hover {
    color: #E68600;
    border-bottom-color: rgba(230, 134, 0, 0.6);
}

.signup-success {
    display: none;
}

.signup-success.active {
    display: block;
}

.signup-default.hidden {
    display: none;
}

.support-card {
    margin-top: 2rem;
    padding: 1.75rem;
    background: white;
    border-radius: 14px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #ece4d8;
    box-shadow: 0 10px 24px rgba(44, 62, 80, 0.06);
}

.support-card p {
    color: #555;
    margin-bottom: 1.5rem;
}

.support-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.support-btn {
    background: #FF9900;
    color: white;
    padding: 0.8rem 1.4rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    border: none;
}

.skip-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 0.9rem;
    cursor: pointer;
}



/* About Section */
.about-section {
    padding: 4.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background: white;
}
.about-section h2 {
    font-size: 2.5rem;
    color: #2C3E50;
    margin-bottom: 2rem;
    font-weight: 800;
}
.about-section p {
    font-size: 1.08rem;
    color: #667085;
    line-height: 1.75;
    max-width: 1000px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: #2C3E50;
    color: white;
    text-align: center;
    padding: 2.5rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-tagline {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-credit {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-credit a {
    color: white;
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.footer-links-grid {
    align-items: flex-start;
    justify-content: center;
    gap: 3rem;
}

.footer-column {
    text-align: center;
    min-width: 170px;
}

.footer-column-title {
    margin: 0 0 0.65rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
}

.footer-column a {
    display: block;
    margin-bottom: 0.35rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links .footer-column a {
    display: block;
}

.social-links a:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.footer-column a:hover {
    transform: none;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1.5rem;
        min-height: auto;
        gap: 2.5rem;
    }

    .hero h1 {
        margin-top: 4rem;
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .phone-mockup {
        width: 280px;
        height: 560px;
    }

    .mascot-display {
        font-size: 8rem;
    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .features-detail {
        padding: 4rem 1.5rem;
    }

    .feature-row {
        margin-bottom: 4rem;
    }

    .feature-text {
        text-align: center;
    }

    .feature-text p {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .feature-image img {
        max-width: 100%;
        height: auto !important;
    }

    .how-it-works {
        padding: 4rem 1.5rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .step {
        padding: 1.5rem;
    }

    .coming-soon {
        padding: 3rem 1.5rem;
    }

    .coming-soon-content p {
        font-size: 1.1rem;
    }

    .placeholder-image {
        width: 100%;
        max-width: 350px;
        height: 350px;
    }

    .nav-links {
        gap: 1rem;
    }

    .footer-links-grid {
        gap: 1.5rem;
        justify-content: center;
    }

    .footer-column {
        min-width: 150px;
    }

    .why-section h2,
    .how-it-works h2,
    .feature-text h2,
    .coming-soon-content h2,
    .account-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    nav {
        padding: 1rem;
    }

    .hero {
        padding: 2rem 1rem;
        gap: 1.75rem;
    }

    .hero h1 {
        margin-top: 4rem;
        font-size: 1.85rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.65;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-links a {
        visibility: hidden;
    }

    .footer-column {
        min-width: 100%;
        text-align: center;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
        border-width: 8px;
        border-radius: 30px;
    }

    .features-detail {
        padding: 3rem 1rem;
    }

    .feature-text h2 {
        font-size: 1.7rem;
        line-height: 1.3;
    }

    .feature-text p {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .how-it-works {
        padding: 3rem 1rem;
    }

    .how-it-works h2 {
        margin-bottom: 2rem;
    }

    .steps-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    .step {
        padding: 1.25rem 1rem;
    }

    .step-number {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .step h3 {
        font-size: 1.2rem;
    }

    .step p {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .coming-soon {
        padding: 2.5rem 1rem;
    }

    .coming-soon-content h2 {
        font-size: 1.8rem;
        line-height: 1.25;
    }

    .coming-soon-content p {
        font-size: 1rem;
        line-height: 1.55;
    }

    .account-section {
        padding: 4rem 1.5rem;
    }

    .account-section h2 {
        font-size: 2rem;
    }

    .account-description {
        font-size: 1.05rem;
    }

    .account-btn {
        padding: 0.95rem 2rem;
    }

    .account-back-button {
        top: 10px;
        left: 10px;
    }

    .account-back-button img {
        width: 46px;
        height: 46px;
    }
}

.privacy-policy-hero-content {
    background: linear-gradient(135deg, #f2bc34 0%, #ffae00 100%);
    padding: 7rem 2rem;
    text-align: center;
    color: #152434;
    position: relative;
}
.privacy-policy-hero-content::after {
    content: '';
    position: absolute;
    bottom: -2.5rem;
    left: 0;
    right: 0;
    height: 40px;
    background: inherit;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    rotate: 180deg;
    background: linear-gradient(135deg, #ffae00 0%, #f2bc34 100%);
}
.privacy-policy-hero-content h1 {
    padding-top: 6rem;
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.privacy-policy-hero-content .last-updated {
    font-size: 1.3rem;
    color: #3C3C3C;
}

.information-we-collect {
    margin-bottom: 2.5rem;
    text-align: left;
    font-size: 1rem;
}

.information-we-collect h2 {
    font-size: 2.2rem;
    color: #2C3E50;
    margin-bottom: 1.5rem;
    font-weight: 700;
} 

.information-we-collect ul {
    text-align: left;
    padding-left: 2rem;
    margin: 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
    list-style-type: disc;
}

.information-we-collect p {
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Privacy Policy Two-Column Layout */
.privacy-layout {
    display: flex;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-top: 20rem;
}

/* Privacy Policy Sidebar */
.privacy-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.privacy-nav {
    padding: 0;
}

.privacy-nav h3 {
    font-size: 1.1rem;
    color: #2C3E50;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.privacy-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.privacy-nav ul li {
    margin-bottom: 0;
}

.privacy-nav a {
    display: block;
    padding: 0.8rem 0;
    color: #2C3E50;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.privacy-nav a:hover {
    color: #FF9900;
    border-left-color: #FF9900;
    padding-left: 0.8rem;
}

/* Privacy Content Area */
.privacy-content {
    flex: 1;
    min-width: 0;
    margin-top: -15rem;
}

/* Responsive Design for Privacy Page */
@media (max-width: 1200px) {
    .privacy-layout {
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .privacy-sidebar {
        width: 240px;
    }
}

@media (max-width: 1024px) {
    .privacy-layout {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .privacy-sidebar {
        width: 220px;
        display: none;
    }

    .privacy-nav a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .privacy-layout {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .privacy-sidebar {
        width: 100%;
        display: none;
    }

    .privacy-nav h3 {
        margin-bottom: 1rem;
    }

    .privacy-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .privacy-nav a {
        display: inline-block;
        padding: 0.6rem 1rem;
        background: #FF9900;
        color: white;
        border-radius: 6px;
        border: none;
        font-weight: 600;
    }

    .privacy-nav a:hover {
        background: #FFA726;
        border-left: none;
        padding-left: 1rem;
    }

    .information-we-collect h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .privacy-layout {
        padding: 0 1rem;
    }

    .privacy-nav h3 {
        font-size: 1rem;
    }

    .privacy-nav ul {
        gap: 0.4rem;
    }

    .privacy-nav a {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .information-we-collect {
        padding: 2rem 0;
    }

    .information-we-collect h2 {
        font-size: 1.5rem;
    }

    .information-we-collect ul,
    .information-we-collect p {
        font-size: 0.95rem;
    }
}
/* Authentication Forms Styling */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(44, 62, 80, 0.16);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-title {
    text-align: center;
    font-size: 2.5rem;
    color: #FF9900;
    margin-bottom: 2rem;
    font-weight: 800;
}

.form-section {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.form-heading {
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 800;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    min-height: 20px;
    border-left: 4px solid #c33;
    display: none;
}

.error-message:not(:empty) {
    display: block;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #ddd7cd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group input::placeholder {
    color: #aaa;
}

.btn-primary {
    width: 100%;
    padding: 0.95rem 1rem;
    background: #ffae00;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(255, 174, 0, 0.24);
}

/* Product Page Utilities (same visual style) */
.product-page-main {
    padding-top: 60px;
}

.compact-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.compact-steps .step p {
    max-width: 34ch;
    margin-left: auto;
    margin-right: auto;
}

.conversion-bullets {
    max-width: 780px;
    margin: 0 auto;
    padding-left: 1.25rem;
    text-align: left;
    color: #777;
    font-size: 1.1rem;
    line-height: 1.8;
}

.conversion-bullets li + li {
    margin-top: 0.5rem;
}

.trust-note {
    max-width: 760px;
    margin: 0 auto;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
}

.plans-section {
    --plans-bg: #fff8ef;
    --plans-card: rgba(255, 255, 255, 0.82);
    --plans-ink: #1f2d3a;
    --plans-muted: #62707d;
    --plans-line: rgba(44, 62, 80, 0.09);
    --plans-accent: #ff9900;
    padding: 5rem 2rem 6rem;
    background:
        radial-gradient(circle at top left, rgba(255, 186, 74, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 153, 0, 0.12), transparent 24%),
        linear-gradient(180deg, #fffdfa 0%, var(--plans-bg) 100%);
}

.plans-category {
    text-align: center;
    font-size: 2rem;
    color: var(--plans-ink);
    font-weight: 900;
    margin-bottom: 1.4rem;
    margin-top: 2.8rem;
    letter-spacing: -0.03em;
    position: relative;
}

.plans-category::after {
    content: '';
    display: block;
    width: 84px;
    height: 4px;
    margin: 0.85rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffd18b 0%, var(--plans-accent) 100%);
}

.plans-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
    align-items: start;
}

.plan-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    background: var(--plans-card);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 24px;
    padding: 1.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: 0 20px 40px rgba(31, 45, 58, 0.08);
    transform: translateY(0);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, grid-column 0.25s ease;
}

.plan-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 204, 112, 0.18) 0%, rgba(255, 255, 255, 0) 55%);
    pointer-events: none;
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(31, 45, 58, 0.14);
}

.plan-card.open {
    grid-column: span 2;
    border-color: rgba(255, 153, 0, 0.34);
    box-shadow: 0 26px 56px rgba(255, 153, 0, 0.18);
}

.plan-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.plan-level,
.plan-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.plan-level {
    background: rgba(255, 153, 0, 0.12);
    color: #c46d00;
}

.plan-chip {
    background: rgba(31, 45, 58, 0.06);
    color: var(--plans-ink);
}

.plan-card h4 {
    color: var(--plans-ink);
    font-size: 1.6rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0;
}

.plan-goal,
.plan-difficulty {
    color: var(--plans-muted);
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 42ch;
}

.plan-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-width: 148px;
    background: linear-gradient(135deg, #ff9900 0%, #ffb53f 100%);
    color: white;
    padding: 0.8rem 1.1rem;
    border-radius: 14px;
    font-weight: 700;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 14px 24px rgba(255, 153, 0, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(255, 153, 0, 0.28);
    filter: saturate(1.08);
}

.plan-details {
    margin-top: 0.35rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--plans-line);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
}

.plan-card.open .plan-details {
    opacity: 1;
    transform: translateY(0);
}

.plan-details h5 {
    margin: 0 0 0.5rem;
    color: var(--plans-ink);
    font-size: 1rem;
}

.plan-day-block {
    padding: 1rem 0;
    border-top: 1px solid var(--plans-line);
}

.plan-day-block:first-child {
    border-top: none;
    padding-top: 0;
}

.plan-day-block h5 {
    margin: 0 0 0.55rem;
    color: var(--plans-ink);
    font-size: 1rem;
}

.plan-day-block p {
    margin: 0 0 0.35rem;
    color: var(--plans-muted);
    line-height: 1.55;
    font-size: 0.95rem;
}

.plan-day-list {
    margin: 0;
    padding-left: 1.2rem;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 968px) {
    .plans-section {
        padding: 4rem 1.5rem 5rem;
    }

    .plan-card.open {
        grid-column: 1 / -1;
    }
}

.about-story {
    max-width: 900px;
    margin-bottom: 2rem;
}

.faq-section {
    padding: 5rem 2rem;
    max-width: 920px;
    margin: 0 auto;
}

.faq-title {
    font-size: 2.5rem;
    color: #2C3E50;
    margin-bottom: 2rem;
    font-weight: 800;
    text-align: center;
}

.faq-item {
    border: 1px solid #e8e2d7;
    border-radius: 12px;
    background: white;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(44, 62, 80, 0.04);
}

.faq-question {
    width: 100%;
    border: none;
    background: white;
    color: #2C3E50;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 1rem 1.1rem;
    cursor: pointer;
}

.faq-answer {
    display: none;
    color: #666;
    padding: 0 1.2rem 1.1rem;
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
}

@media (max-width: 968px) {
    .plans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }

    .plans-category {
        font-size: 1.7rem;
        margin-top: 2.3rem;
    }

    .plan-card {
        padding: 1.2rem;
        border-radius: 20px;
    }

    .plan-card-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .plan-card h4 {
        font-size: 1.4rem;
    }

    .plan-goal {
        font-size: 0.98rem;
    }

    .plan-btn {
        width: 100%;
        align-self: stretch;
    }

    .conversion-bullets {
        font-size: 1rem;
    }
}

.plans-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 2rem 4.5rem;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 221, 168, 0.32), transparent 24%),
        radial-gradient(circle at 82% 12%, rgba(255, 243, 217, 0.28), transparent 18%),
        linear-gradient(135deg, #ff9800 0%, #ffb63d 52%, #ffcf7b 100%);
}

.plans-hero::before,
.plans-hero::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    animation: plansFloat 9s ease-in-out infinite;
}

.plans-hero::before {
    width: 280px;
    height: 280px;
    top: -90px;
    right: -40px;
}

.plans-hero::after {
    width: 180px;
    height: 180px;
    bottom: -70px;
    left: 8%;
    animation-delay: -3s;
}

.plans-hero-content {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
}

.plans-hero-kicker {
    display: inline-flex;
    padding: 0.45rem 0.9rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.plans-hero-content h2 {
    font-size: clamp(2.7rem, 5vw, 3.5rem);
    line-height: 0.98;
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
}

.plans-hero-content p {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.16rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
}

.plans-hero-highlights {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.plans-highlight-pill {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.15rem;
    border-radius: 20px;
    text-align: left;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.plans-highlight-pill strong {
    font-size: 1rem;
    color: white;
}

.plans-highlight-pill span {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

@keyframes plansFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, 16px, 0);
    }
}

@media (max-width: 968px) {
    .plans-hero {
        padding: 4rem 1.5rem;
    }

    .plans-hero-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .plans-hero {
        padding: 3.25rem 1rem;
    }

    .plans-hero-content p {
        font-size: 1rem;
    }

    .plans-highlight-pill {
        text-align: center;
    }
}

.btn-primary:active {
    transform: translateY(0);
}

.form-toggle {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

.form-toggle a {
    color: #ffae00;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.form-toggle a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Account Section Styling */
#account-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #f7cb5b 0%, #f6bc3f 100%);
    padding: 3rem 2rem;
}

#account-section h2 {
    text-align: center;
    font-size: 2.6rem;
    color: #333;
    margin-bottom: 2rem;
    font-weight: 800;
}

#account-section .profile-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 2.5rem;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    animation: slideIn 0.4s ease-out;
}

#account-section p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 0.9rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 0.6rem;
}

#account-section p span {
    font-weight: 700;
    color: #222;
}

#account-section .logout-message {
    background: #fff3d6;
    color: #7a4b00;
    border-left: 4px solid #ffae00;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 600;
}

#account-section .notice-message {
    background: #eef4ff;
    color: #2c3e50;
    border-left: 4px solid #5a86c4;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: none;
    justify-content: flex-start;
    gap: 0;
    display: none;
}

#account-section .notice-message.success {
    background: #e7f7ee;
    color: #1b6e3a;
    border-left-color: #2e9c5b;
}

#account-section .notice-message.error {
    background: #fee;
    color: #c33;
    border-left-color: #c33;
}

#account-section .notice-message.warning {
    background: #fff3d6;
    color: #7a4b00;
    border-left-color: #ffae00;
}

#account-section .notice-message.info {
    background: #eef4ff;
    color: #2c3e50;
    border-left-color: #5a86c4;
}

#account-section .notice-confirm {
    margin-bottom: 1rem;
    display: grid;
    gap: 0.75rem;
}

#account-section .notice-confirm[hidden] {
    display: none;
}

#account-section .notice-confirm .notice-message {
    display: block;
    margin-bottom: 0;
}

#account-section .notice-actions {
    display: flex;
    gap: 0.75rem;
}

#account-section .notice-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#account-section .notice-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

#account-section .notice-cancel {
    background: #e6e6e6;
    color: #333;
}

#account-section .notice-danger {
    background: #d94b4b;
    color: white;
}

#account-section .account-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

#account-section button {
    padding: 0.9rem 1rem;
    background: #ffae00;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#account-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 174, 0, 0.35);
}

#account-section button:last-child {
    grid-column: span 2;
    background: #2c3e50;
}

#account-section button:last-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.35);
}

.important-links{
    margin-top: 2rem;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    font-size: 1rem;
    justify-content: center;
}
.important-links a {
    color: #ffae00;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}
.important-links a:hover {
    color: #df830a;
    text-decoration: underline;
}

.delete-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2500;
}

.delete-modal[hidden] {
    display: none;
}

.delete-modal-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    padding: 2rem 2.5rem;
    width: 100%;
    max-width: 520px;
    position: relative;
}

.delete-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f3f3f3;
    color: #444;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.delete-modal-close:hover {
    background: #e7e7e7;
}

.delete-modal-card h3 {
    font-size: 1.6rem;
    color: #2C3E50;
    margin-bottom: 1rem;
    font-weight: 800;
}

.delete-modal-text {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.delete-modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.delete-modal-btn {
    flex: 1;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.delete-modal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.delete-modal-btn.cancel {
    background: #e6e6e6;
    color: #333;
}

.delete-modal-btn.danger {
    background: #d94b4b;
    color: white;
}

/* Support Modal */
.support-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 3000;
}

.support-modal[hidden] {
    display: none;
}

.support-modal-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    padding: 0;
    width: 100%;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

.support-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f3f3f3;
    color: #444;
    font-size: 1.8rem;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 10;
}

.support-modal-close:hover {
    background: #e7e7e7;
}

.support-modal-content {
    display: flex;
    min-height: 300px;
}

.support-modal-left {
    flex: 1;
    background: linear-gradient(135deg, #FF9900 0%, #FFB333 100%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.paypal-qr-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.paypal-qr-link:hover {
    transform: scale(1.05);
}

.paypal-qr {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    background: white;
    padding: 4px;
    border: 3px solid white;
}

.paypal-caption {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

.support-modal-right {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.support-modal-right h3 {
    font-size: 1.6rem;
    color: #2C3E50;
    margin: 0;
}

.support-modal-right p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.watch-ad-btn {
    position: relative;
    background: #FF9900;
    color: white;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease, transform 0.2s ease;
    border: none;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.watch-ad-btn:hover {
    background: #e68a00;
    transform: translateY(-2px);
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .support-modal-content {
        flex-direction: column;
        min-height: auto;
    }

    .support-modal-left {
        padding: 1.5rem;
    }

    .support-modal-right {
        padding: 1.5rem;
    }

    .paypal-qr {
        width: 140px;
        height: 140px;
    }

    .auth-box {
        padding: 2rem;
    }

    .auth-title {
        font-size: 2rem;
    }

    .form-heading {
        font-size: 1.5rem;
    }

    #account-section .profile-card {
        padding: 2rem;
    }

    #account-section .account-actions {
        grid-template-columns: 1fr;
    }

    #account-section button:last-child {
        grid-column: span 1;
    }
}