button:focus {
    outline: none;
    box-shadow: none;
    border: none;
}
button:hover {
    background: inherit;
}

.xcart_home_section_1 {
    display: flex
;
    margin-top: 110px;
}
span.s1_title_2 {
    color: #211d1a;
}
.s1_desc {
    font-size: 20px;
    line-height: 1.9;
    color: #4f4f4f;
}

.xcart_home_section_1_inner {
    width: 50%;
    padding: 10px;
}

/* Container for the carousel */
.xcart_message_container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px; /* Increased height for better vertical spacing */
    overflow: hidden;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE10+/Edge */
    user-select: none;         /* Standard */
}
.xcart_message_inner {
    padding-right: 20px;
}
p.xcart_message_ph {
    color: gray;
    font-size: 12px;
    padding-left: 10px;
}
p.xcart_message_title {
    font-weight: bold;
}
.xcart_message_section {
    background: white;
    padding: 15px 5px 15px 15px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 80%;
    min-height: 120px; /* Give cards a minimum height */
    flex-shrink: 0;

    /* --- Key Animation Styles --- */
    position: absolute;
    /* Default state: hidden far below */
    opacity: 0;
    transform: translateY(150%) scale(0.7);

    /* Smooth transition for the animation */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.6s ease;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
}
.xcart_message_section_split {
    width: 100%;
}
.xcart_message_section_split.right {
    width: 70px;
    display: flex
;
    justify-content: center;
    align-items: center;
}
/*
 * State for the card BEHIND and HIGHER
 * (کارت پشتی که بالاتر است)
*/
.xcart_message_section.prev {
    opacity: 0.5;
    /* Move it UP, scale it down */
    transform: translateY(-50%) scale(0.85);
    z-index: 5;
}

/*
 * State for the main, central card
 * (کارت اصلی که در وسط قرار دارد)
*/
.xcart_message_section.active {
    opacity: 1;
    /* Center it with full size */
    transform: translateY(0) scale(1);
    z-index: 10;
}

/*
 * State for the card IN FRONT and LOWER
 * (کارت جلویی که پایین‌تر است)
*/
.xcart_message_section.next {
    opacity: 0.8;
    /* Move it DOWN, scale it down */
    transform: translateY(50%) scale(0.85);
    z-index: 5; /* Highest z-index to appear in front */
}

/* Basic styling for the content inside */
.xcart_message_phone {
    font-weight: bold;
    margin: 0 0 10px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.xcart_message_text {
    margin: 4px 0;
    font-size: 14px;
    color: #333;
}
.s1_title {
    color: #13906b;
    font-size: 28px !important;
    display: block;
    line-height: 60px;
    font-weight: bold;
    margin-bottom: 40px;
}
p.s1_desc {
    color: #3e4554;
    padding: 0px;
    margin: 0px;
}
.s1_info_inner img {
    width: 50px;
}
.s1_info_section {
    display: flex
;
    justify-content: space-between;
        margin-top: 70px;
}
.s1_info_inner {
    display: grid;
    justify-content: center;
    justify-items: center;
    gap: 10px;
}
.xcart_message_section_head {
    display: flex
;
    justify-content: space-between;
    border-bottom: 1px solid #eaeaea;
}
img.xcart_message_avatar {
    width: 50px;
}
p.xcart_guide_home {
    text-align: center;
    font-size: 38px;
    font-weight: bold;
    margin-top: 70px;
    margin-bottom: 60px;
}











/*app*/
.dashboard-container {
    width: 100%;
    max-width: 300px;
    display: flex
;
    flex-direction: column;
    gap: 20px;
    background: #273238;
    padding: 10px;
    border-radius: 25px;
}
.xcart_home_section_2_inner {
    width: 50%;
}

/* Tab Styles */
.tabs {
    display: flex;
    justify-content: space-between;
    background-color: #334155;
    border-radius: 9999px;
    padding: 5px;
}

.tab-button {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    background-color: transparent;
    color: #e2e8f0;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.tab-button.active {
    background-color: #14b8a6; /* Teal */
    color: #ffffff;
}

/* Card Base Styles */
.card {
    background-color: #1a232a;
    border-radius: 16px;
    padding: 10px;
}
.xcart_home_section_2_inner {
    width: 50%;
    display: grid
;
    align-content: center;
}
.xcart_home_section_2_inner.right {
    display: grid
;
    justify-items: center;
}

/* Chart Styles */
.chart-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8; /* Lighter gray for secondary text */
}

/* Stats Grid Styles */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    min-height: 100px;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    font-size: 14px;
    color: #94a3b8;
}

/* Best Sellers Section Styles */
.best-sellers {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: #cbd5e1;
    margin-top: 20px;
}

.best-sellers-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #14b8a6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.best-sellers-icon svg {
    width: 32px;
    height: 32px;
}

.best-sellers h3 {
    margin: 0;
    font-weight: 500;
    font-size: 18px;
}
.xcart_home_section_2 {
    display: flex;
    margin-top: 120px;
    margin-bottom: 150px;
}
.xcart_promo_inner {
    border: 1px solid #aeaeae;
    padding: 10px 30px;
    border-radius: 50px;
    width: 80%;
    display: flex
;
    justify-content: center;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    margin-bottom: 40px;
    cursor: pointer;
}
.xcart_promo_inner p {
    margin: 0px !important;
    padding: 0px !important;
    color: #13906b;
}
.xcart_promo_inner:hover p{
    color: #13906b;
}

span.xcart_promo_code {
    font-weight: bold;
}

a.application_demo {
    border: 1px solid #211d1a;
    text-decoration: none !important; 
    border-radius: 30px;
    color: #211d1a;
    padding: 5px 30px;
        transition: 1s;
}
a.application_demo:focus {
    outline: none;
    box-shadow: none;
    background: inherit;
}
a.application_demo:hover {
    background: #1a232a;
    color: white;
}
/* --- Stacking and Positioning --- */

/* Create a positioning context for the dashboards */
.dashboard-stack {
    position: relative;
    width: 300px; /* Should match the max-width of your original dashboard */
    height: 520px; /* Adjust height to fit the front dashboard perfectly */
}

/* Position both dashboards absolutely within the stack */
.dashboard-stack .dashboard-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.4s ease-in-out;
}

/* Style for the front (original) dashboard */
.dashboard-container.front {
    transform: translateX(-20px) translateY(10px) rotate(0deg);
    z-index: 10; /* Keep it on top */
    overflow: scroll;
}

/* Style for the back (new products) dashboard */
.dashboard-container.back {
    z-index: 5; /* Place it behind the front one */
    transform: translateX(155px) translateY(-40px) rotate(0deg);
}


/* --- Styling for the New Products Dashboard --- */

.dashboard-container.back {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spacing between elements */
    font-family: 'Vazirmatn', sans-serif; /* Use the same font */
}

.products-title {
    color: #e2e8f0;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin: 0;
    padding-top: 10px;
}

.product-search {
    background-color: #334155;
    border: 1px solid #273238 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    color: #e2e8f0;
    font-size: 14px;
    width: 100% !important;
    box-sizing: border-box !important;
}
input.product-search.product-search-1 {
    margin-bottom: 10px;
}

.product-search::placeholder {
    color: #94a3b8;
}

.add-product-btn {
    background-color: #14b8a6; /* Teal color */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-product-btn:hover {
    background-color: #0d9488;
}

.digital-goods-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e2e8f0;
}

.digital-goods-header h3 {
    margin: 0;
    font-size: 18px;
}

.back-btn {
    background-color: #14b8a6;
    color: #ffffff;
    border: none;
    padding: 6px 18px;
    border-radius: 8px;
    cursor: pointer;
}

.category-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-btn {
    background-color: #1a232a;
    border: 1px solid #1a232a;
    color: #e2e8f0;
    padding: 12px;
    text-align: right;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.category-btn:hover {
    background-color: #334155;
}

.install_button_home_section {
    display: none;
}



.xcart_demo_section {
    background: #1a232a;
    display: grid
;
    border-radius: 5px;
    padding: 30px 0px;
    color: white;
}
.xcart_demo_inner {
    display: flex
;
    justify-content: space-between;
}
.xcart_demo_inner_section {
    display: flex
;
    justify-content: space-around;
}
img.xcart_demo_icon_img {
    width: 40px;
}
.xcart_demo_icon {
    display: grid;
    justify-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
}
.xcart_demo_icon:hover {
    color: white;
}
.xcart_demo_inner_section.center {
    border: 0.3px solid #b8b8b8;
}
p.xcart_demo_title {
    text-align: center;
    font-size: 30px;
}
.xcart_demo_inner_section.right {
    width: 50%;
    display: flex
;
    justify-content: flex-end;
    gap: 40px;
}
.xcart_demo_inner_section.left {
    width: 50%;
    display: flex
;
    justify-content: flex-start;
    gap: 40px;
}
.xcart_demo_inner_section.center {
    border: 0.3px solid #b8b8b8;
    margin: 0px 60px;
}
.xcart_demo_icon_link {
    color: white;
}
.xcart_demo_icon_link:hover {
    color: white;
}
p.xcart_demo_desc {
    text-align: center;
    margin-bottom: 60px;
}
p.camp_name {
    display: none;
}

@media only screen and (max-width: 600px) {
.xcart_home_section_1 {
    display: flex
;
    margin-top: 120px;
    flex-direction: column-reverse;
}
 
.xcart_message_container {
    position: relative;
    display: flex
;
    justify-content: center;
    align-items: center;
    min-height: 340px;
    overflow: hidden;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE10+/Edge */
    user-select: none;         /* Standard */
}

.xcart_home_section_1_inner {
    width: 100%;
    padding: 10px;
}
.xcart_message_section {
    background: white;
    padding: 15px 5px 15px 15px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    min-height: 120px;
    flex-shrink: 0;
    position: absolute;
    opacity: 0;
    transform: translateY(150%) scale(0.7);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
    display: flex
;
    flex-direction: row-reverse;
    justify-content: space-between;
}
.xcart_message_section.next {
    opacity: 0.8;
    transform: translateY(50%) scale(0.90);
    z-index: 5;
}
.xcart_message_section.prev {
    opacity: 0.5;
    transform: translateY(-50%) scale(0.90);
    z-index: 5;
}
.s1_title {
    color: #13906b;
    font-size: 28px;
    display: block;
    line-height: 60px;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
}
.s1_info_inner {
    display: flex
;
    justify-content: space-between;
    justify-items: center;
    flex-direction: column;
    align-items: center;
    width: 25%;
}
.s1_info_section {
    display: flex
;
    justify-content: space-between;
    margin-top: 50px;
}
span.s1_title_2 {
    font-size: 24px;
}
p.s1_desc {
    color: #3e4554;
    padding: 0px;
    margin: 0px;
    text-align: center;
}
.s1_info_inner img {
    width: 45px;
    margin-bottom: 10px;
}
.s1_info_inner p {
    text-align: center;
    display: grid;
    justify-items: center;
    align-content: space-between;
}
.xcart_home_section_2 {
    display: flex
;
    margin-top: 100px;
    margin-bottom: 40px;
    flex-direction: column;
}
.xcart_home_section_2_inner {
    width: 100%;
    display: grid
;
    align-content: center;
}
.xcart_home_section_2 .s1_info_inner {
    display: flex
;
    width: 100%;
    text-decoration: none;
}
.dashboard-container {
    width: 100%;
    max-width: 370px;
    display: flex
;
    flex-direction: column;
    gap: 20px;
    background: #273238;
    padding: 10px;
    border-radius: 25px;
    overflow: hidden;
    height: 330px;
}
.dashboard-container.back {
    z-index: 5;
    transform: translateX(25px) translateY(-60px) rotate(0deg);
}
.dashboard-stack {
    position: relative;
    width: 300px;
    height: 350px;
}
.install_button_home_section {
    display: flex
;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 10px;
    z-index: 1000;
    text-align: center;
    width: 100%;
}
a.install_button_home {
    background: #14906b;
    color: white;
    padding: 10px 30px;
    border-radius: 100px;
    display: flex
;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}
p.xcart_demo_title {
    text-align: center;
    font-size: 20px;
}
.xcart_demo_inner {
    display: flex
;
    justify-content: space-between;
    gap: 50px;
    flex-direction: column;
}
.xcart_demo_inner_section.right {
    width: 100%;
    display: flex
;
    justify-content: space-between;
    gap: 40px;
}
.xcart_demo_inner_section.left {
    width: 100%;
    display: flex
;
    justify-content: space-between;
    gap: 40px;
}

.xcart_demo_inner_section.center {
    border: 0.3px solid #b8b8b8;
    margin: 0px 60px;
    display: none;
}
.xcart_promo_inner {
    border: 1px solid #aeaeae;
    padding: 10px 30px;
    border-radius: 50px;
    width: 100%;
    display: flex
;
    justify-content: center;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    margin-bottom: 40px;
    cursor: pointer;
    text-align: center;
    font-size: 18px;
    line-height: 2;
    margin-top: 30px;
}
p.xcart_guide_home {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    margin-top: 130px;
    margin-bottom: 60px;
}
}