/* XmasToGo - Main Styles */
:root {
    --christmas-red: #c41e3a;
    --christmas-red-dark: #8b1429;
    --christmas-green: #0f7e3c;
    --christmas-green-dark: #0a5528;
    --christmas-gold: #ffd700;
    --snow-white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --text-dark: #212529;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: var(--off-white);
    line-height: 1.6;
}

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

/* Snowflakes Animation */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: rgba(255,255,255,0.8);
    font-size: 1.5em;
    animation: fall linear infinite;
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 2s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 8s; animation-delay: 4s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 15s; animation-delay: 1s; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 11s; animation-delay: 3s; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 13s; animation-delay: 5s; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 9s; animation-delay: 2s; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 14s; animation-delay: 4s; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 10s; animation-delay: 1s; }
.snowflake:nth-child(10) { left: 95%; animation-duration: 12s; animation-delay: 3s; }

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

/* Navigation */
.landing-nav {
    background: var(--snow-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--christmas-red);
}

.logo-icon {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-red-dark));
    color: var(--snow-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--christmas-red);
    color: var(--christmas-red);
}

.btn-outline:hover {
    background: var(--christmas-red);
    color: var(--snow-white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    position: relative;
    z-index: 2;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--christmas-red);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--medium-gray);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gift-box {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.gift {
    font-size: 10rem;
}

.sparkles {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 3rem;
    animation: sparkle 2s ease-in-out infinite;
}

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

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Features */
.features, .how-it-works, .cta {
    padding: 4rem 0;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 3rem;
    color: var(--christmas-red);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--snow-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    text-align: center;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--christmas-red);
}

/* Steps */
.steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.step {
    flex: 1;
    background: var(--snow-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-red-dark));
    color: var(--snow-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step-arrow {
    font-size: 2rem;
    color: var(--christmas-red);
}

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-red-dark));
    color: var(--snow-white);
    text-align: center;
    border-radius: 20px;
    margin: 2rem auto;
    max-width: 900px;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.cta .btn-primary {
    background: var(--snow-white);
    color: var(--christmas-red);
}

.cta .btn-primary:hover {
    background: var(--off-white);
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--light-gray);
    padding: 3rem 0 1rem;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    color: var(--snow-white);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--light-gray);
}

.footer-column h4 {
    color: var(--snow-white);
    margin-bottom: 1rem;
}

.footer-column a {
    color: var(--light-gray);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--christmas-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green));
    position: relative;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.auth-box {
    background: var(--snow-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .logo {
    justify-content: center;
    margin-bottom: 1rem;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--medium-gray);
}

.auth-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--christmas-red);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--medium-gray);
    font-size: 0.875rem;
}

.form-group-checkbox {
    margin-bottom: 1.5rem;
}

.form-group-checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.password-requirements {
    margin-top: 0.5rem;
}

.requirement {
    display: block;
    color: var(--medium-gray);
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

.requirement.valid {
    color: var(--christmas-green);
}

.requirement .req-icon {
    margin-right: 0.25rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray);
}

.auth-footer a {
    color: var(--christmas-red);
    text-decoration: none;
    font-weight: 500;
}

.success-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

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

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Dashboard */
.dashboard-page {
    display: flex;
    min-height: 100vh;
    background: var(--off-white);
}

.sidebar {
    width: 260px;
    background: var(--snow-white);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-footer {
    padding: 1rem 0;
    border-top: 1px solid var(--light-gray);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
}

.nav-item:hover {
    background: var(--off-white);
    color: var(--christmas-red);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-red-dark));
    color: var(--snow-white);
}

.nav-icon {
    font-size: 1.25rem;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: var(--snow-white);
    box-shadow: var(--shadow);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 1.5rem;
    color: var(--christmas-red);
}

.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border: none;
    background: var(--off-white);
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s;
}

.user-menu-toggle:hover {
    background: var(--light-gray);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder {
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-red-dark));
    color: var(--snow-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.user-name {
    font-weight: 500;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--snow-white);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    margin-top: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-item:hover {
    background: var(--off-white);
}

.dropdown-icon {
    font-size: 1.25rem;
}

.content {
    flex: 1;
    padding: 2rem;
}

.welcome-banner {
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-red-dark));
    color: var(--snow-white);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.welcome-banner h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--snow-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--christmas-red);
}

.stat-label {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.recent-section h3 {
    margin-bottom: 1.5rem;
    color: var(--christmas-red);
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.wishlist-card {
    background: var(--snow-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.wishlist-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.wishlist-card h4 {
    color: var(--christmas-red);
    margin-bottom: 0.5rem;
}

.wishlist-description {
    color: var(--medium-gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.wishlist-card-footer {
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-public {
    background: #d4edda;
    color: #155724;
}

.badge-private {
    background: #fff3cd;
    color: #856404;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--christmas-red);
}

.empty-state p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

/* Tables */
.wishlists-table {
    background: var(--snow-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

thead {
    background: var(--off-white);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--christmas-red);
}

td {
    padding: 1rem;
    border-top: 1px solid var(--light-gray);
}

td.actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Forms */
.form-container {
    background: var(--snow-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-label:has(input:checked) {
    border-color: var(--christmas-red);
    background: rgba(196, 30, 58, 0.05);
}

/* Wishes */
.wishes-section {
    margin-top: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    color: var(--christmas-red);
}

.wishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.wish-card {
    background: var(--snow-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s;
}

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

.wish-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.wish-content {
    padding: 1rem;
}

.wish-content h4 {
    margin-bottom: 0.5rem;
    color: var(--christmas-red);
}

.wish-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--christmas-green);
    margin: 0.5rem 0;
}

.wish-link {
    color: var(--christmas-red);
    text-decoration: none;
    font-size: 0.9rem;
}

.wish-link:hover {
    text-decoration: underline;
}

.wish-actions {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid var(--light-gray);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--snow-white);
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--medium-gray);
}

.modal-close:hover {
    color: var(--christmas-red);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    background: var(--christmas-red);
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--snow-white);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Content Header */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Wishlist Header */
.wishlist-header {
    margin-bottom: 2rem;
}

.wishlist-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.wishlist-settings {
    background: var(--snow-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.wishlist-settings h3 {
    margin-bottom: 1rem;
    color: var(--christmas-red);
}

/* Public Pages */
.public-page {
    min-height: 100vh;
    background: var(--off-white);
}

.public-container {
    padding: 2rem 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--christmas-red);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--medium-gray);
    font-size: 1.1rem;
}

.public-wishlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.public-wishlist-card {
    background: var(--snow-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.public-wishlist-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.public-wishlist-card h3 {
    color: var(--christmas-red);
    margin-bottom: 0.5rem;
}

.wishlist-author {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.wishlist-meta {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.wishlist-view-header {
    text-align: center;
    margin-bottom: 3rem;
}

.wishlist-view-header h1 {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--christmas-red);
    margin-bottom: 0.5rem;
}

.wishes-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.wish-view-card {
    background: var(--snow-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s;
}

.wish-view-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.wish-placeholder {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    font-size: 4rem;
}

/* Settings */
.settings-container {
    max-width: 800px;
}

.settings-section {
    background: var(--snow-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.settings-section h3 {
    margin-bottom: 1.5rem;
    color: var(--christmas-red);
}

.profile-image-upload {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.preview-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.preview-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-red-dark));
    color: var(--snow-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
}

/* Profile */
.profile-container {
    max-width: 600px;
    margin: 0 auto;
}

.profile-header {
    background: var(--snow-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    margin-bottom: 2rem;
}

.profile-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
}

.profile-avatar-large.profile-avatar-placeholder {
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-red-dark));
    color: var(--snow-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
}

.profile-header h2 {
    margin-bottom: 0.5rem;
    color: var(--christmas-red);
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--christmas-red);
}

.stat-item span {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.profile-actions {
    margin-top: 2rem;
}

/* Link Loader */
.link-loader {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--off-white);
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    margin: 1rem 0;
    animation: fadeIn 0.3s ease-out;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid var(--light-gray);
    border-top-color: var(--christmas-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Metadata Preview */
.metadata-preview {
    background: var(--off-white);
    border: 2px solid var(--christmas-red);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    animation: slideDown 0.3s ease-out;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--medium-gray);
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
}

.btn-close:hover {
    color: var(--christmas-red);
}

.preview-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

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

/* Error Pages */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
}

.error-container {
    text-align: center;
    padding: 2rem;
}

.error-container h1 {
    font-size: 6rem;
    color: var(--christmas-red);
    margin-bottom: 1rem;
}

.error-container h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-illustration {
        order: -1;
    }

    .hero-buttons {
        justify-content: center;
    }

    .steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }
}

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

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .topbar {
        padding: 1rem;
    }

    .user-name {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-actions {
        flex-direction: column;
    }

    .wishlist-grid {
        grid-template-columns: 1fr;
    }

    .wishes-grid {
        grid-template-columns: 1fr;
    }

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

    .content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .gift {
        font-size: 6rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    table {
        font-size: 0.875rem;
    }

    th, td {
        padding: 0.5rem;
    }

    td.actions {
        flex-direction: column;
    }
}

/* ===================================
   Total Price Display & Badges
   =================================== */

/* Total Price in Edit View */
.total-price-display {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--medium-gray);
}

.total-price-display strong {
    color: var(--christmas-green);
    font-size: 1.1rem;
}

/* Total Price Badge for Public View */
.total-price-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--christmas-green), var(--christmas-green-dark));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(15, 126, 60, 0.3);
    animation: slideUp 0.5s ease-out;
}

.total-label {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Checkbox Label Styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.checkbox-label:hover {
    background-color: var(--off-white);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--christmas-green);
}

.checkbox-label span {
    font-weight: 500;
    color: var(--text-dark);
}

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

/* Mobile Responsiveness for Total Price */
@media (max-width: 768px) {
    .total-price-badge {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }

    .total-amount {
        font-size: 1.25rem;
    }
}

/* Wish Reservation Styling */
.badge-reserved {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.badge-reserved-by-me {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.wish-reserved {
    opacity: 0.85;
    border: 2px solid #f8d7da;
}

.wish-reserved .wish-image,
.wish-reserved .wish-placeholder {
    opacity: 0.7;
}

.btn-success {
    background: linear-gradient(135deg, var(--christmas-green), #0a5c2e);
    color: var(--snow-white);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.wish-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.wish-description {
    color: var(--medium-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0.5rem 0;
}

.reserve-btn,
.unreserve-btn {
    width: 100%;
}

/* Mobile Responsiveness for Wish Actions */
@media (max-width: 768px) {
    .wish-actions {
        gap: 0.5rem;
    }
}

/* ========================================
   GROUPS & CHAT STYLING
   ======================================== */

/* Groups Grid */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.group-card {
    background: var(--snow-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.group-header h3 {
    margin: 0;
    color: var(--christmas-red);
    font-size: 1.25rem;
}

.badge-admin {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.group-description {
    color: var(--medium-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.group-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--off-white);
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.stat-icon {
    font-size: 1.1rem;
}

.stat-value {
    font-weight: 500;
}

.group-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Group View Layout */
.group-view-content {
    padding: 0 !important;
}

.group-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 70px);
    gap: 0;
}

.group-sidebar {
    background: var(--off-white);
    padding: 1.5rem;
    overflow-y: auto;
    border-right: 1px solid #ddd;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    color: var(--christmas-red);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header-inline h3 {
    margin: 0;
}

/* Members List */
.members-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--snow-white);
    border-radius: 8px;
}

.member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.member-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-red-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

.member-name {
    flex: 1;
    font-weight: 500;
    color: var(--dark-gray);
}

.badge-mini {
    font-size: 0.9rem;
}

/* Wishlists List in Group */
.wishlists-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wishlist-item {
    background: var(--snow-white);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--christmas-green);
}

.wishlist-item h4 {
    margin: 0 0 0.25rem 0;
    color: var(--christmas-red);
    font-size: 1rem;
}

.wishlist-owner {
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin: 0.25rem 0;
}

.wishlist-meta {
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin: 0.5rem 0;
}

.empty-text {
    color: var(--medium-gray);
    font-size: 0.9rem;
    font-style: italic;
}

/* Invite Code Box */
.invite-code-box {
    background: var(--snow-white);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
    border: 2px dashed var(--christmas-green);
}

.invite-code-box strong {
    font-size: 1.5rem;
    color: var(--christmas-red);
    letter-spacing: 0.2em;
    font-family: 'Courier New', monospace;
}

.help-text {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

/* Chat Container */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--snow-white);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 70%;
}

.message-own {
    align-self: flex-end;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.message-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-red-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.message-username {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.message-time {
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-left: auto;
}

.message-content {
    background: var(--off-white);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: var(--dark-gray);
    line-height: 1.5;
    word-wrap: break-word;
}

.message-own .message-content {
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-red-dark));
    color: white;
}

.message-system {
    align-self: center;
    max-width: 100%;
}

.message-system .message-content {
    background: var(--christmas-green);
    color: white;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    text-align: center;
}

/* Typing Indicator */
.typing-indicator {
    padding: 0 1.5rem 0.5rem 1.5rem;
    font-size: 0.85rem;
    color: var(--medium-gray);
    font-style: italic;
}

/* Chat Input */
.chat-input {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 2px solid var(--off-white);
    background: var(--snow-white);
}

.chat-input textarea {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--off-white);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    max-height: 120px;
    min-height: 44px;
}

.chat-input textarea:focus {
    outline: none;
    border-color: var(--christmas-red);
}

.chat-input button {
    padding: 0.75rem 1.5rem;
    min-width: 100px;
}

/* Invite Landing Page */
.invite-container {
    max-width: 700px;
    margin: 3rem auto;
    padding: 2rem;
}

.invite-card {
    background: var(--snow-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.invite-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.invite-card h1 {
    color: var(--christmas-red);
    margin-bottom: 2rem;
}

.group-invite-info {
    background: var(--off-white);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.group-invite-info h2 {
    color: var(--christmas-green);
    margin-bottom: 0.5rem;
}

.group-meta {
    margin-top: 1rem;
    color: var(--medium-gray);
}

.group-meta p {
    margin: 0.25rem 0;
}

.invite-features {
    text-align: left;
    margin: 2rem 0;
}

.invite-features h3 {
    color: var(--christmas-red);
    margin-bottom: 1rem;
}

.invite-features ul {
    list-style: none;
    padding: 0;
}

.invite-features li {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    color: var(--dark-gray);
}

.invite-actions {
    margin: 2rem 0;
}

.or-divider {
    margin: 1rem 0;
    color: var(--medium-gray);
    font-weight: 500;
}

.xmastogo-features {
    margin-top: 3rem;
}

.xmastogo-features h3 {
    color: var(--christmas-green);
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature {
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.feature h4 {
    color: var(--christmas-red);
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin: 0;
}

/* Responsive Design for Groups */
@media (max-width: 768px) {
    .group-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .group-sidebar {
        border-right: none;
        border-bottom: 1px solid #ddd;
        max-height: 40vh;
    }

    .chat-container {
        height: 60vh;
    }

    .message {
        max-width: 85%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .groups-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .invite-card {
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .group-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}
