:root {
    --primary-color: #ffc451;
    --dark-color: #212529;
    --bg-theme: #fff8e1;
    /* Light orange/amber background */
    --card-bg: rgba(255, 255, 255, 0.6);
    --text-green: #166534;

    --font-default: "Poppins", sans-serif;
    --font-heading: "Poppins", sans-serif;
    --font-nav: "Poppins", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-default);
    background: radial-gradient(circle at center, #fff8e1 0%, #ff8b00 100%);
    color: var(--dark-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Container handles the overall layout constraints */
.container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Logo */
.logo-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 1rem;
    z-index: 10;
}

.logo-image {
    height: 35px;
    width: auto;
    object-fit: contain;
    filter: brightness(0);
    margin-bottom: 0.5rem;
}

/* Main Card */
.card {

    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 480px;
    /* Mobile default */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: max-width 0.3s ease;
    
    
}

.card-header {
    margin-bottom: 1.5rem;
}

.icon-top {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.welcome-text {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-green);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #064e3b;
    margin-top: 0;
    text-align: center;
}

/* Tree Image */
.tree-container {
    margin-bottom: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.tree-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.tree-image:hover {
    transform: scale(1.05);
}

/* Buttons */
.action-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.btn-primary {
    background: linear-gradient(to right, #b91c1c, #dc2626);
    /* Deep Christmas Red */
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(185, 28, 28, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    max-width: 250px;
    font-family: var(--font-default);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(185, 28, 28, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.link-secondary {
    color: var(--text-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.link-secondary:hover {
    color: #064e3b;
}

/* Help Button */
.help-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-green);
    cursor: pointer;
    width: 32px;
    height: 32px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.help-btn:hover {
    opacity: 1;
}

/* Floating Back Button (for steps page) */
.floating-back-btn {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #166534;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-back-btn:hover {
    background-color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* =========================================
   DESKTOP / WIDE VIEW (PC)
   ========================================= */
@media (min-width: 1024px) {
    .container {
        padding: 40px;
        background: radial-gradient(circle at center, #fff8e1 0%, #ff8b00 100%);
    }

    .card {
        max-width: 1100px;
        /* Wide card */
        flex-direction: row-reverse;
        /* Horizontal layout */
        justify-content: space-between;
        padding: 4rem;
        gap: 4rem;
        text-align: left;
        /* Left align text */
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "header tree"
            "action tree";
        align-items: center;
        display: flex;
        /* Wide card */
        flex-direction: row-reverse;
    }

    .card-header {
        grid-area: header;
        margin-bottom: 2rem;
        text-align: left;
    }

    .tree-container {
        grid-area: tree;
        width: 100%;
        margin-bottom: 0;
        display: flex;
        justify-content: center;
    }

    .tree-image {
        max-width: 450px;
        /* Larger tree on desktop */
    }

    .action-area {
        grid-area: action;
        align-items: flex-start;
        /* Left align buttons */
    }

    .brand-title {
        font-size: 3rem;
        /* Bigger title */
    }

    .welcome-text {
        font-size: 1.2rem;
    }

    .btn-primary {
        max-width: 280px;
        padding: 1rem 3rem;
        font-size: 1.1rem;
    }

    /* Adjust Logo position for desktop card */
    .logo-container {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 2rem;
    }
}

.theme-green {
    /* Reusing main theme variables */
    --bg-theme: #fff8e1;
    --primary-color: #ffc451;
    --card-bg: rgba(255, 255, 255, 0.6);
}

.theme-green .container {
    background: radial-gradient(circle at center, #fff8e1 0%, #ff8b00 100%);
}

.theme-green .steps-card {

    border: none;
    max-width: 500px;
    width: 100%;
}

.steps-header {
    margin-bottom: 1rem;
}

.steps-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-item {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.step-badge {
    background-color: #166534;
    /* Keep green badge for tree theme */
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-text {
    color: #166534;
    font-weight: 700;
    font-size: 1rem;
}

.btn-continue {
    /* Match .btn-primary from main theme */
    background: linear-gradient(to right, #b91c1c, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(185, 28, 28, 0.4);
    max-width: 100%;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-default);
}

.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(185, 28, 28, 0.5);
}

@media (min-width: 1024px) {
    .theme-green .steps-card {
        max-width: 1100px;
        /* Wide card like main page */
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 4rem;
    }

    .steps-list {
        flex-direction: row;
        /* Horizontal layout for steps */
        justify-content: space-between;
        gap: 2rem;
    }

    .step-item {
        flex: 1;
        /* Equal width steps */
        flex-direction: column;
        /* Stack badge and text inside step */
        text-align: center;
        padding: 2rem;
        height: 200px;
        justify-content: center;
    }

    .step-badge {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .btn-continue {
        max-width: 300px;
        padding: 1rem 3rem;
        font-size: 1.1rem;
    }
}

/* =========================================
   THEME: SHARE PAGE
   ========================================= */
.theme-share {
    --bg-theme: #fff8e1;
    --primary-color: #ff4d4d;
    --text-dark: #064e3b;
    font-family: 'Poppins', sans-serif;
}

.theme-share .container {
    background: radial-gradient(circle at center, #fff8e1 0%, #ff8c00 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.theme-share .share-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.theme-share .content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

.theme-share .text-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.theme-share .page-title {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: #064e3b;
    font-weight: 800;
}

.theme-share .phone-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.theme-share .phone-img {
    max-width: 350px;
    width: 100%;
    height: auto;
    transform: rotate(8deg);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
    transition: transform 0.5s ease;
}

.theme-share .phone-img:hover {
    transform: rotate(0deg) scale(1.05);
}

.theme-share .btn-link-tree {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #b91c1c, #dc2626);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgb(250 42 42 / 30%);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-share .btn-link-tree:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 77, 77, 0.4);
}

.theme-share .btn-link-tree span {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

@media (min-width: 1024px) {
    .theme-share .container {
        max-width: 100%;
    }

    .theme-share .top-nav-bar {
        background: transparent;
        box-shadow: none;
        justify-content: flex-start;
        padding: 40px;
        height: auto;
        pointer-events: none;
    }

    .theme-share .nav-title {
        display: none;
    }

    .theme-share .back-btn {
        pointer-events: auto;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        left: 40px;
        top: 40px;
    }

    .theme-share .share-card {
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        padding: 4rem 5rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8rem;
        min-height: 600px;
        width: 100%;
        max-width: 1400px;
    }

    .theme-share .content-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 4rem;
    }

    .theme-share .text-section {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        flex: 1;
    }

    .theme-share .page-title {
        font-size: 3rem;
        margin-bottom: 2rem;
        color: #064e3b;
        line-height: 1.2;
    }

    .theme-share .phone-container {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }

    .theme-share .phone-img {
        max-width: 500px;
        transform: rotate(8deg);
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    }

    .theme-share .phone-img:hover {
        transform: rotate(0deg) scale(1.05);
    }

    .theme-share .btn-link-tree {
        font-size: 1.1rem;
        padding: 1rem 2.5rem;
    }

    .theme-share .btn-link-tree span {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .theme-share .page-title {
        font-size: 1.5rem;
    }

    .theme-share .phone-img {
        max-width: 300px;
    }

    .theme-share .btn-link-tree {
        font-size: 0.85rem;
        padding: 0.75rem 1.5rem;
    }

    .theme-share .btn-link-tree span {
        font-size: 1.1rem;
    }
}

/* =========================================
   THEME: EMAIL PAGE
   ========================================= */
.theme-email {
    --bg-theme: #fff8e1;
}

.theme-email .container {
    background: radial-gradient(circle at center, #fff8e1 0%, #ff8b00 100%);
    justify-content: center;
}

.theme-email .progress-container {
    width: 100%;
    height: 4px;
    background-color: rgba(22, 101, 52, 0.1);
    position: fixed;
    top: 60px;
    left: 0;
    z-index: 999;
}

.theme-email .progress-bar {
    height: 100%;
    background-color: #166534;
    width: 50%;
    border-radius: 0 2px 2px 0;
}

.theme-email .top-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(255, 248, 225, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.theme-email .back-btn {
    position: absolute;
    left: 20px;
    color: #166534;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.theme-email .nav-title {
    font-family: var(--font-nav);
    font-size: 1.1rem;
    font-weight: 600;
    color: #166534;
}

.theme-email .email-card {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding: 2rem 1rem;
    margin-top: 2rem;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.theme-email .page-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: #064e3b;
    margin-bottom: 1rem;
    text-align: center;
}

.theme-email .page-subtitle {
    font-family: var(--font-default);
    color: #166534;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 3rem;
    font-weight: 500;
    text-align: center;
}

.theme-email .input-group {
    width: 100%;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.theme-email .email-input {
    width: 100%;
    max-width: 320px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #166534;
    font-size: 1.5rem;
    font-weight: 700;
    color: #064e3b;
    text-align: center;
    padding: 0.5rem;
    font-family: var(--font-heading);
    outline: none;
    border-radius: 0;
}

.theme-email .email-input::placeholder {
    color: rgba(22, 101, 52, 0.3);
}

.theme-email .email-input:focus {
    border-bottom-color: #dc2626;
}

.theme-email .btn-continue {
    width: 100%;
    max-width: 300px;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 50px;
}

@media (min-width: 1024px) {
    .theme-email .container {
        justify-content: center;
    }

    .theme-email .top-nav-bar {
        background: transparent;
        box-shadow: none;
        justify-content: flex-start;
        padding: 40px;
        height: auto;
        pointer-events: none;
    }

    .theme-email .nav-title {
        display: none;
    }

    .theme-email .back-btn {
        pointer-events: auto;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        left: 40px;
        top: 40px;
    }

    .theme-email .progress-container {
        display: none;
    }

    .theme-email .email-card {
        padding: 4rem;
        max-width: 800px;
        flex-direction: column;
        gap: 0;
        min-height: auto;
    }




}

/* =========================================
   THEME: SELECT TREE PAGE
   ========================================= */
.theme-select-tree {
    --bg-theme: #fff8e1;
}

.theme-select-tree .container {
    background: radial-gradient(circle at center, #fff8e1 0%, #ff8b00 100%);
    justify-content: center;
    overflow: hidden;
}

.theme-select-tree .top-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(255, 248, 225, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.theme-select-tree .back-btn {
    position: absolute;
    left: 20px;
    color: #166534;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 40px;
    height: 40px;
}

.theme-select-tree .nav-title {
    font-family: var(--font-nav);
    font-size: 1.1rem;
    font-weight: 600;
    color: #166534;
}

.theme-select-tree .selection-card {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.theme-select-tree .page-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: #064e3b;
    margin-bottom: 8px;
}

.theme-select-tree .page-subtitle {
    font-family: var(--font-default);
    color: #166534;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 16px;
    font-weight: 600;
    max-width: 90%;
}

.theme-select-tree .slider-container {
    width: 100%;
    display: block;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    height: 650px;
    max-height: 650px;
}

.theme-select-tree .slider-btn {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #166534;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.theme-select-tree .slider-btn.prev-btn {
    left: 10px;
}

.theme-select-tree .slider-btn.next-btn {
    right: 10px;
}

.theme-select-tree .slider-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

.theme-select-tree .slider-window {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.theme-select-tree .tree-option {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.5s ease;
}

.theme-select-tree .tree-option.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.theme-select-tree .tree-img {
    max-height: 400px;
    max-width: 400px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.theme-select-tree .btn-continue {
    width: 100%;
    max-width: 300px;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 50px;
    background: linear-gradient(to right, #b91c1c, #dc2626);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(185, 28, 28, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-default);
    margin-bottom: 50px;
}

@media (min-width: 1024px) {

    .theme-select-tree .tree-img {
        max-height: 470px;
        max-width: 470px;
        object-fit: contain;
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    }

    .theme-select-tree .container {
        justify-content: center;
    }

    .theme-select-tree .top-nav-bar {
        background: transparent;
        box-shadow: none;
        justify-content: flex-start;
        padding: 40px;
        height: auto;
        pointer-events: none;
    }

    .theme-select-tree .nav-title {
        display: none;
    }

    .theme-select-tree .back-btn {
        pointer-events: auto;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        left: 40px;
        top: 40px;
    }

    .theme-select-tree .selection-card {

        border-radius: 20px;
        padding: 4rem;
        max-width: 1100px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "title slider"
            "subtitle slider"
            "action slider";
        gap: 1rem;
        text-align: left;
        align-items: center;
    }

    .theme-select-tree .page-title {
        grid-area: title;
        font-size: 3rem;
        margin-bottom: 8px;
    }

    .theme-select-tree .page-subtitle {
        grid-area: subtitle;
        margin-top: 0;
        margin-bottom: 16px;
        font-size: 1.1rem;
    }

    .theme-select-tree .slider-container {
        grid-area: slider;
        height: 500px;
        margin-bottom: 0;
    }

    .theme-select-tree .btn-continue {
        grid-area: action;
        align-self: start;
        margin-top: 2rem;
    }
}

@media (max-width: 400px) {
    .theme-select-tree .container {
        padding-top: 60px;
    }

    .theme-select-tree .slider-container {
        height: 350px;
        max-height: 350px;
        margin-bottom: 0.5rem;
    }

    .theme-select-tree .tree-img {
        max-height: 280px;
        max-width: 280px;
        object-fit: contain;
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    }

    .theme-select-tree .selection-card {
        padding: 0px;
    }
}

/* =========================================
   THEME: ME TREE PAGE
   ========================================= */
.theme-me-tree {
    --bg-theme: #fff8e1;
}

.theme-me-tree .header {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
    text-align: center;
    width: auto;
    white-space: nowrap;
}

.theme-me-tree .menu-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.theme-me-tree .menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background: white;
    margin: 6px 0;
    border-radius: 3px;
    transition: 0.3s;
}

.theme-me-tree .container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    padding-top: 100px;
    background: transparent;
    /* Override default container bg */
}

.theme-me-tree .tree-wrapper {
    padding: 40px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding-right: 100px;
}

.theme-me-tree .tree-container {
    position: relative;
    flex-shrink: 0;
    margin-bottom: 0;
    /* Override default */
}

.theme-me-tree .info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.theme-me-tree .tree-img {
    max-width: 500px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 1;
}

.theme-me-tree .decoration {
    position: absolute;
    width: 60px;
    height: 60px;
    z-index: 2;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    animation: swing 3s ease-in-out infinite;
}

@keyframes swing {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

.theme-me-tree .navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.theme-me-tree .nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: rgba(100, 50, 50, 0.5);
    transition: all 0.3s;
}

.theme-me-tree .nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.theme-me-tree .page-number {
    font-size: 18px;
    color: rgba(100, 50, 50, 0.7);
    font-weight: 600;
}

.theme-me-tree .title {
    font-size: 48px;
    font-weight: 800;
    color: #8B0000;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-me-tree .share-btn {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(211, 47, 47, 0.4);
    transition: all 0.3s;
    margin-bottom: 15px;
}

.theme-me-tree .share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(211, 47, 47, 0.5);
}

.theme-me-tree .share-btn:active {
    transform: translateY(0);
}

.theme-me-tree .share-icon {
    font-size: 20px;
}

.theme-me-tree .footer-text {
    color: #8B0000;
    font-size: 16px;
    font-weight: 600;
}

.theme-me-tree .toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: white;
    color: #0066cc;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-me-tree .toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.theme-me-tree .toast-icon {
    font-size: 20px;
}

.theme-me-tree .sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: linear-gradient(180deg, #0d5f5f 0%, #094747 100%);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.theme-me-tree .sidebar.open {
    right: 0;
}

.theme-me-tree .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.theme-me-tree .sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.theme-me-tree .close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.theme-me-tree .close-btn:hover {
    transform: rotate(90deg);
}

.theme-me-tree .sidebar-title {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin: 60px 0 30px 0;
    text-align: center;
}

.theme-me-tree .menu-item {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 18px 25px;
    border-radius: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #0d5f5f;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.theme-me-tree .menu-item:hover {
    transform: translateX(-5px);
    background: white;
}

.theme-me-tree .menu-item.primary {
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.theme-me-tree .help-center {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.theme-me-tree .help-center-title {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.theme-me-tree .help-center-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.theme-me-tree .sidebar-footer {
    margin-top: auto;
    padding-top: 30px;
    text-align: center;
}

.theme-me-tree .countdown-footer {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 10px;
}

.theme-me-tree .countdown-footer-time {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.theme-me-tree .footer-brand {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-bottom: 15px;
}

.theme-me-tree .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.theme-me-tree .social-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s;
    text-decoration: none;
    color: white;
}

.theme-me-tree .social-icon:hover {
    transform: translateY(-3px);
}

.theme-me-tree .social-icon.twitter {
    background: #1DA1F2;
}

.theme-me-tree .social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.theme-me-tree .social-icon.tiktok {
    background: white;
    color: black;
}

.theme-me-tree .brand-footer {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 600px) {
    .theme-me-tree .header {
        font-size: 16px;
        top: 100px;
        left: 50%;
    }

    .theme-me-tree .menu-btn {
        top: 30px;
        right: 30px;
    }

    .theme-me-tree .tree-wrapper {
        padding: 30px 15px;
        flex-direction: column;
        gap: 30px;
    }

    .theme-me-tree .tree-img {
        max-width: 385px;
        min-width: 330px;
    }

    .theme-me-tree .share-btn {
        padding: 12px 25px;
        font-size: 13px;
    }

    .theme-me-tree .decoration-btn {
        width: 50px;
        height: 50px;
    }
}

/* Decoration Buttons */
.theme-me-tree .decoration-btn {
    position: absolute;
    width: 60px;
    height: 60px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 2;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    animation: swing 3s ease-in-out infinite;
    transition: transform 0.3s;
}

.theme-me-tree .decoration-btn:hover {
    transform: scale(1.1);
    z-index: 3;
}

.theme-me-tree .decoration-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Popup Styles */
.theme-me-tree .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.theme-me-tree .popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.theme-me-tree .popup-card {
    background: #E8DCC4;
    width: 90%;
    max-width: 320px;
    border-radius: 30px;
    padding: 30px 20px;
    position: relative;
    text-align: center;
    border: 3px dashed #6B4423;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-me-tree .popup-overlay.show .popup-card {
    transform: scale(1);
}

.theme-me-tree .popup-top-icon {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: #E8DCC4;
    border-radius: 50%;
    border: 3px solid #6B4423;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.theme-me-tree .popup-top-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.theme-me-tree .popup-header {
    margin-top: 30px;
    margin-bottom: 15px;
    position: relative;
}

.theme-me-tree .popup-label {
    display: block;
    color: #6B4423;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: left;
    padding-left: 10px;
}

.theme-me-tree .popup-sender {
    color: #6B4423;
    font-size: 20px;
    font-weight: 800;
    text-align: left;
    padding-left: 10px;
}

.theme-me-tree .popup-more-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: #6B4423;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.6;
}

.theme-me-tree .popup-divider {
    height: 2px;
    background: rgba(107, 68, 35, 0.1);
    margin: 15px 0;
}

.theme-me-tree .popup-content {
    margin: 30px 0;
}

.theme-me-tree .gift-box-icon {
    font-size: 60px;
    margin-bottom: 15px;
    display: inline-block;
    background: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.theme-me-tree .popup-message {
    color: #666;
    font-size: 14px;
    font-weight: 600;
}

.theme-me-tree .popup-download-btn {
    background: transparent;
    color: #0d5f5f;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    padding: 10px 20px;
    border-radius: 20px;
    transition: background 0.3s;
}

.theme-me-tree .popup-download-btn:hover {
    background: rgba(13, 95, 95, 0.1);
}

.theme-me-tree .popup-close-btn {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.theme-me-tree .popup-close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateX(-50%) scale(1.1);
}

/* Logo Styles */
.theme-me-tree .logo-container {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
}

.theme-me-tree .logo-image {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: brightness(0);
}

.theme-me-tree .popup-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: #6B4423;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.theme-me-tree .popup-nav-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.theme-me-tree .popup-nav-btn.prev {
    left: -20px;
}

.theme-me-tree .popup-nav-btn.next {
    right: -20px;
}

/* Friend Tree Specific Styles */
.theme-me-tree .start-decorating-btn {
    background: linear-gradient(135deg, #ff8b00 0%, #ff6b00 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
    transition: all 0.3s;
    margin-bottom: 15px;
    text-decoration: none;
}

.theme-me-tree .start-decorating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.5);
}

.theme-me-tree .create-tree-link {
    color: #8B0000;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.theme-me-tree .create-tree-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* =========================================
   THEME: PASSWORD PAGE
   ========================================= */
.theme-password {
    --bg-theme: #fff8e1;
}

.theme-password .container {
    background: radial-gradient(circle at center, #fff8e1 0%, #ff8b00 100%);
    padding-top: 60px;
    justify-content: center;
}

.theme-password .password-card {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding: 2rem 1rem;
    margin-top: 2rem;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.theme-password .page-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: #064e3b;
    margin-bottom: 1rem;
}

.theme-password .page-subtitle {
    font-family: var(--font-default);
    color: #166534;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 3rem;
    font-weight: 500;
    max-width: 400px;
}

.theme-password .input-group {
    width: 100%;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.theme-password .password-input {
    width: 100%;
    max-width: 320px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #166534;
    font-size: 1.5rem;
    font-weight: 700;
    color: #064e3b;
    text-align: center;
    padding: 0.5rem;
    font-family: var(--font-heading);
    outline: none;
    border-radius: 0;
}

.theme-password .password-input::placeholder {
    color: rgba(22, 101, 52, 0.3);
}

.theme-password .password-input:focus {
    border-bottom-color: #dc2626;
}

.theme-password .btn-continue {
    width: 100%;
    max-width: 300px;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 50px;
    background: linear-gradient(to right, #b91c1c, #dc2626);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(185, 28, 28, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-default);
    font-weight: 700;
}

.theme-password .btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(185, 28, 28, 0.5);
}

.theme-password .footer-text {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #166534;
    opacity: 0.8;
    max-width: 400px;
    line-height: 1.4;
}

.theme-password .footer-text a {
    color: #064e3b;
    text-decoration: underline;
    font-weight: 600;
}

@media (min-width: 1024px) {
    .theme-password .container {
        justify-content: center;
        padding-top: 0;
    }

    .theme-password .password-card {
        padding: 4rem;
        max-width: 800px;
    }

    .theme-password .page-title {
        font-size: 3.5rem;
    }

    .theme-password .page-subtitle {
        font-size: 1.1rem;
        max-width: 600px;
    }

    .theme-password .password-input {
        font-size: 2rem;
        max-width: 400px;
    }
}

/* =========================================
   THEME: NAME PAGE
   ========================================= */
.theme-name {
    --bg-theme: #fff8e1;
}

.theme-name .container {
    background: radial-gradient(circle at center, #fff8e1 0%, #ff8b00 100%);
    justify-content: center;
}

.theme-name .name-card {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding: 2rem 1rem;
    margin-top: 2rem;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.theme-name .page-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: #064e3b;
    margin-bottom: 1rem;
}

.theme-name .page-subtitle {
    font-family: var(--font-default);
    color: #166534;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 3rem;
    font-weight: 500;
    max-width: 400px;
}

.theme-name .input-group {
    width: 100%;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.theme-name .name-input {
    width: 100%;
    max-width: 320px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #166534;
    font-size: 1.5rem;
    font-weight: 700;
    color: #064e3b;
    text-align: center;
    padding: 0.5rem;
    font-family: var(--font-heading);
    outline: none;
    border-radius: 0;
}

.theme-name .name-input::placeholder {
    color: rgba(22, 101, 52, 0.3);
}

.theme-name .name-input:focus {
    border-bottom-color: #dc2626;
}

.theme-name .btn-continue {
    width: 100%;
    max-width: 300px;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 50px;
    background: linear-gradient(to right, #b91c1c, #dc2626);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(185, 28, 28, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-default);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.theme-name .btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(185, 28, 28, 0.5);
}

@media (min-width: 1024px) {
    .theme-name .container {
        justify-content: center;
      
    }

    .theme-name .name-card {
        padding: 4rem;
        max-width: 800px;
    }

    .theme-name .page-title {
        font-size: 3.5rem;
    }

    .theme-name .page-subtitle {
        font-size: 1.1rem;
        max-width: 600px;
    }

    .theme-name .name-input {
        font-size: 2rem;
        max-width: 400px;
    }
}


.footer-credit {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    color: #166534;
    font-weight: 600;
    opacity: 0.8;
    z-index: 5;
}


.footer-credit a {
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-credit a:hover {
    color: #979797;
}

/* =========================================
   THEME: LOGIN PAGE
   ========================================= */
.theme-login {
    --bg-theme: #d1e8d1;
    /* Light green background */
    background: radial-gradient(circle at center, #fff8e1 0%, #ff8b00 100%);
}

.theme-login .container {
    background: radial-gradient(circle at center, #fff8e1 0%, #ff8b00 100%);
    justify-content: center;
}

.theme-login .top-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 0 20px;
}

.theme-login .back-btn {
    position: absolute;
    left: 20px;
    color: #064e3b;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.theme-login .nav-title {
    font-family: var(--font-nav);
    font-size: 1.1rem;
    font-weight: 600;
    color: #064e3b;
}

.theme-login .login-card {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    margin-top: 40px;
}

.theme-login .login-icon {
    position: relative;
    margin-bottom: 20px;
}

.theme-login .tree-icon {
    width: 80px;
    height: auto;
}

.theme-login .santa-hat {
    position: absolute;
    top: -15px;
    right: -10px;
    font-size: 2rem;
    transform: rotate(15deg);
}

.theme-login .page-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #064e3b;
    margin-bottom: 2rem;
    text-align: center;
}

.theme-login .login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.theme-login .input-group {
    width: 100%;
}

.theme-login .login-input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background: rgba(168, 209, 180, 0.6);
    /* Semi-transparent green */
    font-size: 1rem;
    color: #064e3b;
    outline: none;
}

.theme-login .login-input::placeholder {
    color: #5f8c73;
    font-weight: 500;
}

.theme-login .btn-login {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 50px;
    background: rgba(168, 209, 180, 0.8);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s;
}

.theme-login .btn-login:hover {
    background: rgba(168, 209, 180, 1);
}

.theme-login .forgot-password {
    margin-top: 2rem;
    color: #064e3b;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    opacity: 0.8;
}

.theme-login .forgot-password:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (min-width: 1024px) {
    .theme-login .container {
        justify-content: center;
        padding-top: 0;
    }

    .theme-login .top-nav-bar {
        display: none;
    }

    .theme-login .login-card {
        background: rgba(255, 255, 255, 0.4);
        border-radius: 30px;
        padding: 5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }
}