:root {
    /* Default Color Theme: Yume Purple */
    --primary-color-base: #ae70ff;
    --primary-color-darker-base: #8a58cc;
    --primary-color-rgb-base: 174, 112, 255;
    --primary-color-glow-base: rgba(174, 112, 255, 0.25);

    /* Dynamic variables */
    --primary-color: var(--primary-color-base);
    --primary-color-darker: var(--primary-color-darker-base);
    --primary-color-rgb: var(--primary-color-rgb-base);
    --primary-color-glow: var(--primary-color-glow-base);

    /* Default UI Mode: Dark */
    --bg-color: #0c0c0f;
    --bg-color-rgb-raw: 12, 12, 15;
    --bg-color-lighter: #131318;
    --card-bg-color: #1a1a20;
    --text-color: #e8e8ea;
    --text-color-muted: #8a8a93;
    --border-color: rgba(255, 255, 255, 0.07);
    --input-bg-color: var(--bg-color-lighter);
    --input-focus-bg-color: var(--card-bg-color);
    --search-bar-bg: var(--card-bg-color);
    --search-bar-hover-bg: #222228;
    --navbar-bg: rgba(18,18,24,.85);
    --modal-bg: var(--bg-color-lighter);
    --btn-secondary-bg: rgba(var(--primary-color-rgb), 0.1);
    --btn-secondary-border: rgba(var(--primary-color-rgb), 0.3);
    --btn-secondary-hover-bg: rgba(var(--primary-color-rgb), 0.2);
    --btn-secondary-text: var(--primary-color);

    --focus-ring-color: rgba(var(--primary-color-rgb), 0.4);
    --navbar-height: 60px; /* Consistent with other pages */
    --mobile-navbar-height: 55px; /* Consistent with other pages */
    --border-radius-main: 8px; /* Consistent with other pages */
    --border-radius-small: 5px; /* Consistent with other pages */
    --box-shadow-main: 0 5px 15px rgba(0, 0, 0, 0.35);
    --transition-speed: 0.2s; /* General transition speed */
    --menu-animation-speed: 0.3s;
    --link-animation-speed: 0.25s;
    --reveal-speed: 0.3s;
    --danger-color: #ff5b5b;
    --danger-color-darker: #e05252;
    --danger-color-rgb: 255,91,91;
    --success-color: #51cf66;
    --success-text-color: var(--bg-color);
    --warning-color: #ffc107;
    --warning-text-color: var(--bg-color);
    --font-body: 'Poppins', sans-serif;
    --ui-font-family: 'Inter', 'Poppins', sans-serif;
    --control-element-height: 36px;

    --kinetic-loader-bg: rgba(var(--bg-color-rgb-raw), 0.92);
    --kinetic-loader-text-color: #c7ecee;
    --kinetic-loader-subtext-color: #9a9aae;
}
/* Light Mode Overrides (Consistent) */
body.light-mode {
    --bg-color: #f4f6f8;
    --bg-color-rgb-raw: 244, 246, 248;
    --bg-color-lighter: #ffffff;
    --card-bg-color: #ffffff;
    --text-color: #212529;
    --text-color-muted: #6c757d;
    --border-color: rgba(0, 0, 0, 0.1);
    --input-bg-color: #e9ecef;
    --input-focus-bg-color: #ffffff;
    --search-bar-bg: #e9ecef;
    --search-bar-hover-bg: #dfe3e7;
    --navbar-bg: rgba(255,255,255,.85);
    --box-shadow-main: 0 5px 15px rgba(0, 0, 0, 0.1);
    --modal-bg: #ffffff;
    --success-text-color: #ffffff;
    --warning-text-color: #212529;
    --btn-secondary-text: var(--primary-color);
    --kinetic-loader-text-color: var(--primary-color-darker);
    --kinetic-loader-subtext-color: var(--text-color-muted);
}
/* Accent Color Theme Definitions (Consistent) */
body[data-color-theme="yume-purple"] { /* Default */ }
body[data-color-theme="ocean-blue"] { --primary-color: #007bff; --primary-color-darker: #0056b3; --primary-color-rgb-base: 0, 123, 255; --primary-color-glow-base: rgba(0, 123, 255, 0.25); }
body[data-color-theme="phoenix-red"] { --primary-color: #dc3545; --primary-color-darker: #a71d2a; --primary-color-rgb-base: 220, 53, 69; --primary-color-glow-base: rgba(220, 53, 69, 0.25); }
body[data-color-theme="graceful-green"] { --primary-color: #28a745; --primary-color-darker: #1e7e34; --primary-color-rgb-base: 40, 167, 69; --primary-color-glow-base: rgba(40, 167, 69, 0.25); }
body[data-color-theme="princess-pink"] { --primary-color: #ff69b4; --primary-color-darker: #d63384; --primary-color-rgb-base: 255, 105, 180; --primary-color-glow-base: rgba(255, 105, 180, 0.25); }


/* --- Base Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
html { scroll-behavior: smooth; scroll-padding-top: var(--navbar-height); }
body {
    background-color: var(--dark-color); /* This should be --bg-color for consistency */
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0; /* For reveal animation */
    transition: background-color var(--transition-speed), color var(--transition-speed), opacity var(--reveal-speed) ease-in-out;
}
body.loaded { opacity: 1; }
a { color: var(--primary-color); text-decoration: none; transition: color var(--transition-speed); }
a:hover { color: var(--primary-color-darker); }
button { cursor: pointer; transition: all var(--transition-speed) ease; font-family: inherit; background: none; border: none; }
section { padding: 60px 20px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* --- Top Navbar (Updated to be consistent with other pages) --- */
.top-navbar{
    position:fixed; top:0; left:0; width:100%; height:var(--navbar-height);
    background-color:var(--navbar-bg); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
    display:flex; align-items:center; justify-content:space-between; padding:0 20px; /* Match other pages */
    border-bottom:1px solid var(--border-color); z-index:1000; gap:20px; /* Match other pages */
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}
.navbar-left{display:flex;align-items:center;gap:25px} /* Match other pages */
.navbar-brand{font-size:24px;font-weight:700;color:var(--primary-color);text-decoration:none;display:flex;align-items:center;transition:color var(--transition-speed)}
.navbar-brand i{margin-right:8px;font-size:26px} /* Match other pages */
.navbar-brand:hover{color:var(--primary-color-darker)}
.navbar-right{display:flex;align-items:center;gap:20px} /* Match other pages */
.navbar-links a{color:var(--text-color-muted);text-decoration:none;margin-left:20px;transition:color var(--transition-speed);font-size:15px;font-weight:500; font-family: var(--ui-font-family); position: relative; padding-bottom: 5px;} /* Match other pages */
.navbar-links a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width var(--transition-speed) ease-in-out; }
.navbar-links a:hover::after, .navbar-links a.active::after { width: 100%; }
.navbar-links a:hover,.navbar-links a.active{color:var(--primary-color)}

.search-bar { display: flex; align-items: center; background-color: var(--search-bar-bg); border-radius: var(--border-radius-main); padding: 0 15px; width: 100%; max-width: 280px; height: var(--control-element-height); border: 1px solid var(--border-color); transition: background-color var(--transition-speed), border-color var(--transition-speed); } /* Match other pages */
.search-bar:hover { background-color: var(--search-bar-hover-bg); border-color: var(--primary-color); }
.search-bar:focus-within { border-color: var(--primary-color); box-shadow: none; }
.search-bar input{background:transparent;border:none;color:var(--text-color);padding:6px 0;width:100%;outline:none;font-size:14px; font-family: var(--ui-font-family);} /* Match other pages */
.search-bar input::placeholder{color:var(--text-color-muted);opacity:.6}
.search-bar:hover input::placeholder { color: var(--text-color); opacity: 0.7; }
.search-bar i{color:var(--text-color-muted);margin-right:12px; font-size:15px; flex-shrink: 0;} /* Match other pages */
.search-bar:hover i {color: var(--primary-color);}

#navbar-user-area { position: relative; display: flex; align-items: center; }
.user-profile-container { position: relative; }
.user-profile{ display:flex;align-items:center;cursor:pointer; padding:4px 8px 4px 4px; border-radius:50px; transition:background-color var(--transition-speed); background-color: transparent; } /* Match other pages */
.user-profile.active, .user-profile:hover{ background-color:rgba(var(--primary-color-rgb),.12); }
body.light-mode .user-profile.active, body.light-mode .user-profile:hover { background-color: rgba(0,0,0,.08); }
.user-profile img{width:32px;height:32px;border-radius:50%;margin-right:8px; object-fit: cover; background-color: var(--card-bg-color);} /* Match other pages */
.user-profile span{font-weight:500;font-size:14px; white-space: nowrap; font-family: var(--ui-font-family); color: var(--text-color);} /* Match other pages */

.setup-btn { background-color: var(--primary-color); color: var(--bg-color); padding: 0 18px; border-radius: 50px; font-size: 13px; font-weight: 600; height:var(--control-element-height); line-height: var(--control-element-height); } /* Match other pages */
body.light-mode .setup-btn { color: #fff; }
body[data-color-theme="princess-pink"].light-mode .setup-btn,
body[data-color-theme="yume-purple"].light-mode .setup-btn { color: var(--bg-color); }
.setup-btn:hover { background-color: var(--primary-color-darker); transform: scale(1.03); }

.profile-dropdown {
    position: fixed; background-color: var(--bg-color-lighter); /* Changed to fixed for consistency */
    border-radius: var(--border-radius-main); box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color); width: 190px; z-index: 1100;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.15s ease, visibility 0s linear 0.15s, transform 0.15s ease; padding: 6px;
} /* Match other pages */
body.light-mode .profile-dropdown { box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.profile-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity 0.15s ease, visibility 0s linear 0s, transform 0.15s ease; }
.profile-dropdown a { display: flex; align-items: center; padding: 8px 12px; color: var(--text-color-muted); text-decoration: none; font-size: 13px; font-weight: 500; white-space: nowrap; border-radius: var(--border-radius-small); transition: background-color var(--transition-speed), color var(--transition-speed); font-family: var(--ui-font-family); } /* Match other pages */
.profile-dropdown a i { margin-right: 10px; width: 16px; text-align: center; color: var(--text-color-muted); transition: color var(--transition-speed); } /* Match other pages */
.profile-dropdown a:hover { background-color: var(--primary-color-glow); color: var(--primary-color); }
.profile-dropdown a:hover i { color: var(--primary-color); }

.loading-spinner-navbar { border: 2px solid rgba(var(--primary-color-rgb),.2); border-radius: 50%; border-top: 2px solid var(--primary-color); width: 22px; height: 22px; animation: spin 1s linear infinite; display: inline-block; margin: auto; } /* Match other pages */
body.light-mode .loading-spinner-navbar { border: 2px solid rgba(0,0,0,.1); border-top: 2px solid var(--primary-color); }
@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}

/* --- Hero Section --- */
.hero-section {
    padding-top: calc(var(--navbar-height) + 80px);
    padding-bottom: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Using a more generic placeholder as Unsplash random can be unreliable / slow */
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.6) 0%, var(--bg-color) 100%), url('https://placehold.co/1920x600/2a2a30/e0e0e0?text=Anime+Collage') no-repeat center center/cover;
    color: #fff;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(var(--bg-color-rgb-raw), 0.5); /* Using --bg-color-rgb-raw with opacity */
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-headline {
    font-size: 3.5rem; font-weight: 900; line-height: 1.2;
    margin-bottom: 20px; text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}
.hero-headline .highlight { color: var(--primary-color); }
.hero-subheadline {
    font-size: 1.2rem; color: var(--text-color); margin-bottom: 35px;
    line-height: 1.7; opacity: 0.9;
}
.hero-cta {
    display: inline-block;
    background: linear-gradient(145deg, var(--primary-color), var(--primary-color-darker));
    color: #fff; /* Ensure high contrast */
    padding: 14px 35px; border-radius: 50px; font-size: 1.1rem; font-weight: 600;
    text-decoration: none; transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3); text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.hero-cta:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.4);
}

/* --- Features Section --- */
.features-section { background-color: var(--bg-color-lighter); }
.section-heading { text-align: center; margin-bottom: 50px; }
.section-heading h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 10px; }
.section-heading p { font-size: 1.1rem; color: var(--text-color-muted); max-width: 700px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 35px; }
.feature-card {
    background-color: var(--card-bg-color); padding: 30px;
    border-radius: var(--border-radius-main); text-align: center;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.1);
    border-color: rgba(var(--primary-color-rgb), 0.4);
}
.feature-icon {
    font-size: 2.8rem; color: var(--primary-color);
    margin-bottom: 20px; display: inline-block;
}
.feature-card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
.feature-card p { font-size: 0.95rem; color: var(--text-color-muted); line-height: 1.6; }

/* --- Why Choose Us Section --- */
.why-choose-us-section { background-color: var(--bg-color); } /* Corrected from --dark-color to --bg-color */
.why-choose-us-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 35px; align-items: flex-start; /* Align items to top */ }
.why-choose-us-item i {
    font-size: 2rem; color: var(--primary-color); margin-bottom: 15px; display: inline-block;
    width: 55px; height: 55px; line-height: 55px; text-align: center;
    background-color: rgba(var(--primary-color-rgb), 0.1); border-radius: 50%;
}
.why-choose-us-item h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 8px; }
.why-choose-us-item p { font-size: 1rem; color: var(--text-color-muted); line-height: 1.7; }

/* --- Bookmark Section --- */
.bookmark-section { background: linear-gradient(45deg, var(--primary-color-darker), var(--primary-color)); color: #fff; text-align: center; }
.bookmark-content { max-width: 700px; margin: 0 auto; }
.bookmark-section h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 15px; text-shadow: 1px 1px 3px rgba(0,0,0,0.3); }
.bookmark-section p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.9; }
.bookmark-button {
    background-color: #fff; color: var(--primary-color-darker); padding: 12px 30px;
    border-radius: 50px; font-size: 1rem; font-weight: 600; border: none;
    transition: transform var(--transition-speed), background-color var(--transition-speed), color var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.bookmark-button i { margin-right: 8px; }
.bookmark-button:hover { background-color: var(--bg-color-lighter); color: #fff; transform: scale(1.05); } /* Corrected from --dark-color-lighter */

/* --- Footer (Updated to match other pages) --- */
.site-footer { background-color: var(--bg-color-lighter); color: var(--text-color-muted); padding: 35px 20px 25px; margin-top: auto; width: 100%; flex-shrink: 0; font-size: 0.85rem; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary-color-darker), var(--primary-color), rgba(var(--primary-color-rgb), 0.4)); }
.footer-content-condensed { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; max-width: 1200px; margin: 0 auto 25px auto; padding-bottom: 25px; border-bottom: 1px solid var(--border-color); }
.footer-logo-condensed { font-size: 1.3em; font-weight: 700; color: var(--primary-color); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: color var(--transition-speed), transform 0.2s ease; }
.footer-logo-condensed:hover { color: var(--text-color); transform: scale(1.03); }
.footer-logo-condensed i { font-size: 1.3em; }
.footer-links-inline { display: flex; gap: 20px; flex-grow: 1; justify-content: center; margin: 0 15px; }
.footer-links-inline a { color: var(--text-color-muted); text-decoration: none; font-size: 0.95em; font-weight: 500; font-family: var(--ui-font-family); transition: color var(--transition-speed), transform var(--transition-speed); padding: 5px 0; position: relative; }
.footer-links-inline a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width 0.3s ease-in-out; }
.footer-links-inline a:hover { color: var(--primary-color); transform: translateY(-2px); }
.footer-links-inline a:hover::after { width: 100%; }
.footer-socials-condensed { display: flex; gap: 12px; }
.footer-socials-condensed a { color: var(--text-color-muted); font-size: 1.25em; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background-color: transparent; border: 1px solid transparent; transition: color var(--transition-speed), transform 0.2s ease, background-color var(--transition-speed), border-color var(--transition-speed); }
.footer-socials-condensed a:hover { color: var(--bg-color-lighter); background-color: var(--primary-color); transform: scale(1.1) translateY(-2px); }
.footer-copyright-condensed { text-align: center; font-size: 0.9em; color: var(--text-color-muted); line-height: 1.6; padding-top: 0; } /* Changed from footer-bottom to footer-copyright-condensed */

/* Focus Visible */
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 1.5px solid var(--primary-color); outline-offset: 1.5px; box-shadow: 0 0 0 2.5px var(--focus-ring-color) !important; }
.search-bar input:focus-visible, .search-bar input:focus { outline: none !important; box-shadow: none !important; }


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .hero-headline { font-size: 2.8rem; }
    .hero-subheadline { font-size: 1.1rem; }
    .section-heading h2 { font-size: 2.2rem; }
    .section-heading p { font-size: 1rem; }
    .site-footer { padding: 40px 30px 20px; } .footer-content-condensed { gap: 25px; }
}
@media (max-width: 768px) {
    .top-navbar { padding: 0 15px; } .navbar-links { display: none; } .search-bar { display:none; /* Hide search on landing for very small screens */ } .navbar-right { gap: 15px; } .user-profile span { display: none; } .user-profile img { margin-right: 0; } .user-profile { padding: 5px; }
    section { padding: 40px 15px; }
    .hero-headline { font-size: 2.2rem; }
    .hero-subheadline { font-size: 1rem; }
    .hero-cta { padding: 12px 30px; font-size: 1rem; }
    .section-heading h2 { font-size: 2rem; }
    .why-choose-us-grid { grid-template-columns: 1fr; text-align: center; }
    .bookmark-section h2 { font-size: 1.8rem; }
    .bookmark-section p { font-size: 1rem; }
    /* Consistent Footer Responsive */
    .site-footer { padding: 25px 15px 20px; }
    .footer-content-condensed { flex-direction: column; gap: 20px; border-bottom: none; padding-bottom: 15px; margin-bottom: 15px; }
    .footer-links-inline { order: 2; margin: 0; gap: 15px; flex-wrap: wrap; justify-content: center;}
    .footer-socials-condensed { order: 3; margin-bottom: 10px; }
    .footer-logo-condensed { order: 1; }
    .footer-copyright-condensed { padding-top: 15px; border-top: 1px solid var(--border-color); }
}
@media (max-width: 576px) {
    .navbar-left { gap: 15px; } .navbar-brand { font-size: 22px; } .top-navbar { gap: 10px; padding: 0 10px;}
    .hero-headline { font-size: 1.8rem; }
    .hero-subheadline { font-size: 0.9rem; }
    .features-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 25px; }
    /* .footer-content-condensed { margin-bottom: 30px; }  Removed this as it was conflicting with the general footer-content-condensed styles */
    /* .footer-section h4 { font-size: 15px; } .footer-section ul li a, .footer-about p { font-size: 13px; } .footer-bottom { font-size: 12px; padding-top: 15px; } .footer-socials a { font-size: 16px; } Removed these as they refer to a different footer structure */
}