/* ==========================================================================
   Shabnam Mobile App - Home Page Custom Knitted Style (کاموایی)
   CSS Design System & Utilities
   ========================================================================== */

/* Cozy Custom Persian Font-Face Declarations (iran) */
@font-face {
    font-family: 'iran';
    src: url('../fonts/light.woff') format('woff');
    font-display: swap;
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'iran';
    src: url('../fonts/regular.woff') format('woff');
    font-display: swap;
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'iran';
    src: url('../fonts/medium.woff') format('woff');
    font-display: swap;
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'iran';
    src: url('../fonts/demibold.woff') format('woff');
    font-display: swap;
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'iran';
    src: url('../fonts/bold.woff') format('woff');
    font-display: swap;
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'iran';
    src: url('../fonts/extrabold.woff') format('woff');
    font-display: swap;
    font-weight: 800;
    font-style: normal;
}


:root {
    /* Cozy Yarn/Crochet Color Palette - Unified Premium Pastel Garden Green */
    --shaback-home-color-primary: #2a6b4e;
    /* Premium Eucalyptus Green */
    --shaback-home-color-primary-hover: #1f523c;
    --shaback-home-color-primary-light: #eef6f2;
    /* Soft Sage Tint */
    --shaback-home-color-secondary: #4c956c;
    /* Cozy Sage Green */
    --shaback-home-color-secondary-hover: #3c7a56;
    --shaback-home-color-secondary-light: #f1f8f5;
    /* Soft Mint Green Tint */
    --shaback-home-color-accent-yellow: #b7e4c7;
    /* Warm Pistachio/Lime Wool */
    --shaback-home-color-accent-rose: #a3c1ad;
    /* Soft Sage Blossom Thread */
    --shaback-home-color-bg: #f4f9f6;
    /* Premium Cream Green Background */
    --shaback-home-color-bg-dark: #e8f2ed;
    /* Soft Tea Green Beige */
    --shaback-home-color-text: #22322a;
    /* Deep Forest Charcoal */
    --shaback-home-color-text-muted: #536c60;
    /* Soft Muted Sage Grey */
    --shaback-home-color-white: #FFFFFF;
    --shaback-home-color-border: #d2e5dd;
    /* Sage Stitch Border Color */

    /* Cozy Sizing & Radii */
    --shaback-home-radius-cozy: 24px;
    --shaback-home-radius-pill: 50px;

    /* Squishy Wool-Pillow Shadow Effect - Soft Pastel Green Shadow */
    --shaback-home-shadow-3d: 0 10px 0 #b3cfc4;
    --shaback-home-shadow-3d-hover: 0 12px 0 #b3cfc4;
    --shaback-home-shadow-3d-active: 0 4px 0 #b3cfc4;

    --shaback-home-shadow-primary-3d: 0 10px 0 #1f523c;
    --shaback-home-shadow-secondary-3d: 0 10px 0 #3c7a56;
}

/* ==========================================================================
   Global & Layout Setup
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* Cozy native scroll offset to clear fixed sticky header plus breathing room spacing */
[id^="shaback-home-"] {
    scroll-margin-top: 105px;
}


* {
    box-sizing: border-box;
    outline: none;
    font-family: 'iran', Tahoma, sans-serif;
}

body.shaback-home-body {
    background-color: var(--shaback-home-color-bg);
    /* Cozy Knitted Texture Background Pattern with Premium Pastel Green Gradient */
    background-image:
        radial-gradient(var(--shaback-home-color-border) 1.5px, transparent 1.5px),
        radial-gradient(var(--shaback-home-color-border) 1.5px, transparent 1.5px),
        linear-gradient(to bottom,
            #EAF2EE 0%,
            /* Soft Mint Pastel Green */
            #E2ECE7 35%,
            /* Soothing Sage Pastel Green */
            #DCE7E1 70%,
            /* Premium Moss Pastel Green */
            #D5E2DA 100%
            /* Rich Eucalyptus Pastel Green */
        );
    background-size: 24px 24px, 24px 24px, 100% 100%;
    background-position: 0 0, 12px 12px, 0 0;
    background-repeat: repeat, repeat, no-repeat;
    font-family: 'iran', Tahoma, sans-serif;
    color: var(--shaback-home-color-text);
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;

    /* Cozy Big Green Leaf Custom SVG Cursor (Rotated 225deg to point to North-East, hotspot at '26 6') */
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><g transform='rotate(225 16 16)'><path d='M16 2C6 5 2 12 6 20c4 8 10 10 10 10s6-2 10-10c4-8 0-15-10-18z' fill='%23199166' stroke='%23ffffff' stroke-width='2' stroke-linejoin='round'/><path d='M16 2v28' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round'/><path d='M16 8q5 3 7 2M16 14q6 4 8 2M16 20q4 4 5 2' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round'/><path d='M16 8q-5 3-7 2M16 14q-6 4-8 2M16 20q-4 4-5 2' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round'/></g></svg>") 26 6, auto;
}

/* Cozy Big Orange/Terracotta Leaf Hoverable SVG Cursor (Rotated 225deg to point to North-East, hotspot at '26 6') */
body.shaback-home-body a,
body.shaback-home-body button,
body.shaback-home-body [role="button"],
body.shaback-home-body .shaback-home-btn,
body.shaback-home-body .shaback-home-tab-btn,
body.shaback-home-body .shaback-home-store-badge-btn {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><g transform='rotate(225 16 16)'><path d='M16 2C6 5 2 12 6 20c4 8 10 10 10 10s6-2 10-10c4-8 0-15-10-18z' fill='%23ea6307' stroke='%23ffffff' stroke-width='2' stroke-linejoin='round'/><path d='M16 2v28' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round'/><path d='M16 8q5 3 7 2M16 14q6 4 8 2M16 20q4 4 5 2' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round'/><path d='M16 8q-5 3-7 2M16 14q-6 4-8 2M16 20q-4 4-5 2' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round'/></g></svg>") 26 6, pointer;
}


/* ==========================================================================
   Cozy Mouse Trail - Falling & Drifting Small Leaves
   ========================================================================== */
.shaback-home-falling-leaf {
    position: fixed;
    pointer-events: none;
    /* Crucial to prevent blocking interactions! */
    z-index: 99999;
    transform: translate(-50%, -50%);
    animation: shaback-home-leaf-drift-fall 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes shaback-home-leaf-drift-fall {
    0% {
        transform: translate(-50%, -50%) translateY(0) translateX(0) rotate(0deg) scale(1.1);
        opacity: 0.9;
    }

    25% {
        transform: translate(-50%, -50%) translateY(30px) translateX(-15px) rotate(-25deg) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) translateY(60px) translateX(15px) rotate(25deg) scale(0.85);
        opacity: 0.7;
    }

    75% {
        transform: translate(-50%, -50%) translateY(90px) translateX(-10px) rotate(-15deg) scale(0.65);
        opacity: 0.45;
    }

    100% {
        transform: translate(-50%, -50%) translateY(120px) translateX(0) rotate(0deg) scale(0.4);
        opacity: 0;
    }
}


.shaback-home-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* Cozy Floating Yarn Decoration SVGs */
.shaback-home-decor-yarn-ball {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
    filter: blur(1px);
    animation: shaback-home-decor-float 6s infinite alternate ease-in-out;
}

@keyframes shaback-home-decor-float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-20px) rotate(15deg);
    }
}

/* ==========================================================================
   Navigation Bar Styles
   ========================================================================== */

.shaback-home-header {
    background-color: rgba(252, 250, 246, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 3px dashed var(--shaback-home-color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.shaback-home-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shaback-home-logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.shaback-home-logo-icon {
    width: 45px;
    height: 45px;
    background-color: var(--shaback-home-color-primary);
    border: 3px solid var(--shaback-home-color-white);
    border-radius: var(--shaback-home-radius-cozy);
    box-shadow: 0 4px 0 var(--shaback-home-color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: shaback-home-squish 3s infinite ease-in-out;
    overflow: hidden;
    /* Safe crop */
}

.shaback-home-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    display: block;
}

.shaback-home-logo-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--shaback-home-color-primary);
    margin: 0;
}

.shaback-home-logo-dot {
    color: var(--shaback-home-color-secondary);
}

.shaback-home-nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 992px) {
    .shaback-home-nav-menu {
        display: none;
        /* Hide on mobile/tablet, shown via burger toggle */
    }

    /* Hide desktop download button, now inside the burger drawer menu */
    .shaback-home-nav-actions .shaback-home-btn {
        display: none;
    }
}

.shaback-home-nav-link {
    text-decoration: none;
    color: var(--shaback-home-color-text);
    font-weight: 700;
    font-size: 15px;
    position: relative;
    padding: 8px 4px;
    transition: color 0.2s ease;
}

.shaback-home-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--shaback-home-color-secondary);
    border-radius: var(--shaback-home-radius-pill);
    transition: width 0.2s ease;
}

.shaback-home-nav-link:hover {
    color: var(--shaback-home-color-secondary);
}

.shaback-home-nav-link:hover::after {
    width: 100%;
}

/* Burger Menu Toggle */
.shaback-home-burger-btn {
    display: none;
    background: none;
    border: 3px solid var(--shaback-home-color-border);
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--shaback-home-color-text);
}

@media (max-width: 992px) {
    .shaback-home-burger-btn {
        display: flex;
    }
}

/* Mobile Side Navigation Drawer */
.shaback-home-mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background-color: var(--shaback-home-color-bg);
    border-left: 4px dashed var(--shaback-home-color-border);
    z-index: 200;
    padding: 40px 24px;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
}

.shaback-home-mobile-nav.shaback-home-mobile-nav-active {
    right: 0;
}

.shaback-home-mobile-nav-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--shaback-home-color-text);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.shaback-home-mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.shaback-home-mobile-download-wrapper {
    margin-top: 16px;
    padding: 0 16px;
}

.shaback-home-mobile-download-btn {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
}

.shaback-home-mobile-nav-link {
    text-decoration: none;
    color: var(--shaback-home-color-text);
    font-weight: 700;
    font-size: 18px;
    display: block;
    padding: 8px 16px;
    border-radius: 12px;
    border: 2px dashed transparent;
    transition: all 0.2s ease;
}

.shaback-home-mobile-nav-link:hover {
    border-color: var(--shaback-home-color-secondary);
    color: var(--shaback-home-color-secondary);
    background-color: var(--shaback-home-color-secondary-light);
}

.shaback-home-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.shaback-home-mobile-overlay.shaback-home-mobile-overlay-active {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   Cozy Buttons & Badges (Stitch-aesthetic)
   ========================================================================== */

.shaback-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: var(--shaback-home-radius-pill);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    border: 3px solid var(--shaback-home-color-border);
    background-color: var(--shaback-home-color-white);
    color: var(--shaback-home-color-text);
    box-shadow: var(--shaback-home-shadow-3d);
    position: relative;
    top: 0;
}

.shaback-home-btn:hover {
    top: -2px;
    box-shadow: var(--shaback-home-shadow-3d-hover);
}

.shaback-home-btn:active {
    top: 6px;
    box-shadow: var(--shaback-home-shadow-3d-active);
}

.shaback-home-btn-primary {
    background-color: var(--shaback-home-color-primary);
    color: var(--shaback-home-color-white);
    border-color: #d15600;
    box-shadow: var(--shaback-home-shadow-primary-3d);
}

.shaback-home-btn-primary:hover {
    background-color: #f76f13;
    box-shadow: 0 12px 0 #ad4500;
}

.shaback-home-btn-primary:active {
    box-shadow: 0 4px 0 #ad4500;
}

.shaback-home-btn-secondary {
    background-color: var(--shaback-home-color-secondary);
    color: var(--shaback-home-color-white);
    border-color: #127551;
    box-shadow: var(--shaback-home-shadow-secondary-3d);
}

.shaback-home-btn-secondary:hover {
    background-color: #1ea374;
    box-shadow: 0 12px 0 #0f6244;
}

.shaback-home-btn-secondary:active {
    box-shadow: 0 4px 0 #0f6244;
}

.shaback-home-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--shaback-home-radius-pill);
    font-size: 13px;
    font-weight: 700;
    border: 2px dashed var(--shaback-home-color-accent-rose);
    color: var(--shaback-home-color-primary);
    background-color: var(--shaback-home-color-primary-light);
    margin-bottom: 24px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.shaback-home-hero-section {
    padding: 80px 0 0 0;
    position: relative;
}

.shaback-home-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 992px) {
    .shaback-home-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
}

.shaback-home-hero-title {
    font-size: 44px;
    font-weight: 900;
    line-height: 1.3;
    color: var(--shaback-home-color-text);
    margin: 0 0 24px 0;
}

.shaback-home-hero-title span {
    color: var(--shaback-home-color-primary);
    position: relative;
    display: inline-block;
}

/* Decorative stitch wave below primary title word */
.shaback-home-hero-title span::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 6px;
    background-image: radial-gradient(circle, var(--shaback-home-color-secondary) 2px, transparent 3px);
    background-size: 8px 8px;
}

.shaback-home-hero-desc {
    font-size: 18px;
    color: var(--shaback-home-color-text-muted);
    margin-bottom: 36px;
    max-width: 600px;
    line-height: 1.8;
}

@media (max-width: 992px) {
    .shaback-home-hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
}

.shaback-home-app-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 992px) {
    .shaback-home-app-downloads {
        justify-content: center;
    }
}

.shaback-home-store-badge-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: var(--shaback-home-color-white);
    border: 3px solid var(--shaback-home-color-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--shaback-home-color-text);
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 0 var(--shaback-home-color-border);
    top: 0;
    position: relative;
}

.shaback-home-store-badge-btn:hover {
    top: -2px;
    border-color: var(--shaback-home-color-primary);
    box-shadow: 0 8px 0 var(--shaback-home-color-border);
}

.shaback-home-store-badge-btn:active {
    top: 4px;
    box-shadow: 0 2px 0 var(--shaback-home-color-border);
}

.shaback-home-store-badge-btn svg {
    width: 24px;
    height: 24px;
}

/* Hero Image & Yarn Visual Frame */
.shaback-home-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shaback-home-yarn-frame {
    width: 100%;
    max-width: 380px;
    background-color: var(--shaback-home-color-bg-dark);
    border: 4px dashed var(--shaback-home-color-border);
    border-radius: var(--shaback-home-radius-cozy);
    padding: 24px;
    box-shadow: var(--shaback-home-shadow-3d);
    position: relative;
    animation: shaback-home-float 6s infinite ease-in-out;
}

.shaback-home-yarn-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    object-fit: cover;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.08));
}

@keyframes shaback-home-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ==========================================================================
   Stitched Dividers & Section Headers
   ========================================================================== */



.shaback-home-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.shaback-home-section-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--shaback-home-color-text);
    margin: 0 0 12px 0;
}

.shaback-home-section-desc {
    font-size: 16px;
    color: var(--shaback-home-color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Smart Tools Section (ابزارهای هوشمند)
   ========================================================================== */

.shaback-home-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.shaback-home-tool-card {
    background-color: var(--shaback-home-color-white);
    border: 3px solid var(--shaback-home-color-border);
    border-radius: var(--shaback-home-radius-cozy);
    padding: 32px;
    box-shadow: var(--shaback-home-shadow-3d);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    top: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.shaback-home-tool-card:hover {
    top: -8px;
    box-shadow: var(--shaback-home-shadow-3d-hover);
    border-color: var(--shaback-home-color-secondary);
}

.shaback-home-tool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.shaback-home-tool-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--shaback-home-radius-cozy);
    border: 3px dashed var(--shaback-home-color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.shaback-home-tool-card:hover .shaback-home-tool-icon-wrapper {
    border-color: var(--shaback-home-color-secondary);
    background-color: var(--shaback-home-color-secondary-light);
    transform: rotate(10deg);
}

.shaback-home-tool-tag {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--shaback-home-radius-pill);
    background-color: var(--shaback-home-color-bg-dark);
    color: var(--shaback-home-color-text-muted);
}

.shaback-home-tool-tag-active {
    background-color: var(--shaback-home-color-secondary-light);
    color: var(--shaback-home-color-secondary);
    border: 1px dashed var(--shaback-home-color-secondary);
}

.shaback-home-tool-tag-soon {
    background-color: var(--shaback-home-color-primary-light);
    color: var(--shaback-home-color-primary);
    border: 1px dashed var(--shaback-home-color-primary);
    animation: shaback-home-pulse 2s infinite alternate ease-in-out;
}

@keyframes shaback-home-pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

.shaback-home-tool-title {
    font-size: 20px;
    font-weight: 900;
    margin: 0 0 12px 0;
    color: var(--shaback-home-color-text);
}

.shaback-home-tool-desc {
    font-size: 14px;
    color: var(--shaback-home-color-text-muted);
    line-height: 1.7;
    margin: 0 0 24px 0;
    flex-grow: 1;
}

/* ==========================================================================
   Cozy Reading Room (Privacy & Terms)
   ========================================================================== */

.shaback-home-legal-section {
    background-color: var(--shaback-home-color-bg-dark);
    border: 4px dashed var(--shaback-home-color-border);
    border-radius: var(--shaback-home-radius-cozy);
    padding: 48px;
    box-shadow: var(--shaback-home-shadow-3d);
    position: relative;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .shaback-home-legal-section {
        padding: 24px 16px;
    }
}

.shaback-home-tabs-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    border-bottom: 3px dashed var(--shaback-home-color-border);
    padding-bottom: 20px;
}

@media (max-width: 576px) {
    .shaback-home-tabs-container {
        flex-direction: column;
        align-items: stretch;
    }
}

.shaback-home-tab-btn {
    padding: 12px 24px;
    border-radius: var(--shaback-home-radius-pill);
    border: 3px solid var(--shaback-home-color-border);
    background-color: var(--shaback-home-color-white);
    color: var(--shaback-home-color-text-muted);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 0 var(--shaback-home-color-border);
    position: relative;
    top: 0;
    text-align: center;
}

.shaback-home-tab-btn:hover {
    top: -2px;
    box-shadow: 0 7px 0 var(--shaback-home-color-border);
    color: var(--shaback-home-color-text);
}

.shaback-home-tab-btn-active {
    background-color: var(--shaback-home-color-secondary);
    color: var(--shaback-home-color-white);
    border-color: #127551;
    box-shadow: 0 5px 0 #0e563b;
}

.shaback-home-tab-btn-active:hover {
    color: var(--shaback-home-color-white);
    box-shadow: 0 7px 0 #0e563b;
}

/* Tab Contents */
.shaback-home-tab-content {
    display: none;
    animation: shaback-home-fade-in 0.4s ease-out forwards;
}

.shaback-home-tab-content-active {
    display: block;
}

@keyframes shaback-home-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shaback-home-legal-card {
    background-color: var(--shaback-home-color-white);
    border: 3px solid var(--shaback-home-color-border);
    border-radius: 16px;
    padding: 32px;
    max-height: 500px;
    overflow-y: auto;
    /* Custom Scrollbar for Cozy scroll */
    scrollbar-width: thin;
    scrollbar-color: var(--shaback-home-color-secondary) var(--shaback-home-color-bg-dark);
}

.shaback-home-legal-card::-webkit-scrollbar {
    width: 8px;
}

.shaback-home-legal-card::-webkit-scrollbar-track {
    background: var(--shaback-home-color-bg-dark);
    border-radius: 10px;
}

.shaback-home-legal-card::-webkit-scrollbar-thumb {
    background-color: var(--shaback-home-color-secondary);
    border-radius: 10px;
    border: 2px solid var(--shaback-home-color-bg-dark);
}

.shaback-home-legal-intro {
    font-size: 16px;
    font-weight: 700;
    color: var(--shaback-home-color-text);
    border-bottom: 2px dashed var(--shaback-home-color-border);
    padding-bottom: 16px;
    margin-bottom: 24px;
    line-height: 1.8;
}

.shaback-home-legal-item {
    margin-bottom: 24px;
}

.shaback-home-legal-item:last-child {
    margin-bottom: 0;
}

.shaback-home-legal-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.shaback-home-legal-num {
    width: 28px;
    height: 28px;
    background-color: var(--shaback-home-color-secondary);
    color: var(--shaback-home-color-white);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shaback-home-legal-tab2 .shaback-home-legal-num {
    background-color: var(--shaback-home-color-primary);
}

.shaback-home-legal-item-title {
    font-size: 16px;
    font-weight: 900;
    color: var(--shaback-home-color-text);
    margin: 0;
}

.shaback-home-legal-item-text {
    font-size: 14px;
    color: var(--shaback-home-color-text-muted);
    line-height: 1.8;
    margin: 0 0 0 40px;
    white-space: pre-line;
}

/* ==========================================================================
   Direct Support / Contact Us AJAX Section
   ========================================================================== */

.shaback-home-contact-section {
    max-width: 700px;
    margin: 0 auto;
}

.shaback-home-contact-card {
    background-color: var(--shaback-home-color-white);
    border: 3px solid var(--shaback-home-color-border);
    border-radius: var(--shaback-home-radius-cozy);
    padding: 40px;
    box-shadow: var(--shaback-home-shadow-3d);
    position: relative;
}

@media (max-width: 576px) {
    .shaback-home-contact-card {
        padding: 24px 16px;
    }
}

/* Envelope Flap Decors in CSS */
.shaback-home-contact-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 10%;
    width: 80%;
    height: 6px;
    background-image: linear-gradient(135deg, var(--shaback-home-color-accent-rose) 25%, transparent 25%),
        linear-gradient(225deg, var(--shaback-home-color-accent-rose) 25%, transparent 25%);
    background-size: 12px 12px;
}

.shaback-home-form-group {
    margin-bottom: 24px;
    text-align: right;
}

.shaback-home-form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--shaback-home-color-text);
    margin-bottom: 8px;
}

.shaback-home-form-input,
.shaback-home-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 3px solid var(--shaback-home-color-border);
    background-color: var(--shaback-home-color-bg);
    font-family: inherit;
    font-size: 14px;
    color: var(--shaback-home-color-text);
    transition: all 0.3s ease;
}

.shaback-home-form-input:focus,
.shaback-home-form-textarea:focus {
    border-color: var(--shaback-home-color-secondary);
    background-color: var(--shaback-home-color-white);
}

.shaback-home-form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* AJAX Feedback Messaging Alert */
.shaback-home-ajax-feedback {
    display: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 24px;
    animation: shaback-home-fade-in 0.3s ease forwards;
}

.shaback-home-ajax-feedback-success {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--shaback-home-color-secondary-light);
    border: 2px dashed var(--shaback-home-color-secondary);
    color: var(--shaback-home-color-secondary);
}

.shaback-home-ajax-feedback-error {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--shaback-home-color-primary-light);
    border: 2px dashed var(--shaback-home-color-primary);
    color: var(--shaback-home-color-primary);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */

.shaback-home-footer {
    background-color: var(--shaback-home-color-bg-dark);
    border-top: 3px dashed var(--shaback-home-color-border);
    padding: 60px 0 30px 0;
    margin-top: 80px;
}

.shaback-home-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.shaback-home-footer-about {
    text-align: right;
}

.shaback-home-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    color: var(--shaback-home-color-primary);
    margin-bottom: 16px;
}

.shaback-home-footer-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid var(--shaback-home-color-white);
    box-shadow: 0 2px 0 var(--shaback-home-color-border);
    background-color: var(--shaback-home-color-white);
    display: block;
}

.shaback-home-footer-desc {
    text-align: justify;
    font-size: 14px;
    color: var(--shaback-home-color-text-muted);
    line-height: 1.8;
}

.shaback-home-footer-links-title {
    font-size: 16px;
    font-weight: 900;
    color: var(--shaback-home-color-text);
    margin: 0 0 20px 0;
}

.shaback-home-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shaback-home-footer-link {
    text-decoration: none;
    color: var(--shaback-home-color-text-muted);
    font-weight: 700;
    font-size: 14px;
    transition: color 0.2s ease;
}

.shaback-home-footer-link:hover {
    color: var(--shaback-home-color-secondary);
}

.shaback-home-footer-enamad {
    text-align: center;
}

.shaback-home-enamad-box {
    display: inline-block;
    background-color: var(--shaback-home-color-white);
    border: 3px solid var(--shaback-home-color-border);
    border-radius: var(--shaback-home-radius-cozy);
    padding: 12px;
    box-shadow: 0 4px 0 var(--shaback-home-color-border);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shaback-home-enamad-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 0 var(--shaback-home-color-border);
    border-color: var(--shaback-home-color-secondary);
}

.shaback-home-enamad-box img {
    max-width: 100px;
    height: auto;
    display: block;
}

.shaback-home-footer-copy {
    text-align: center;
    border-top: 2px dashed var(--shaback-home-color-border);
    padding-top: 24px;
    font-size: 13px;
    color: var(--shaback-home-color-text-muted);
    font-weight: 700;
}

/* ==========================================================================
   Micro-Animations
   ========================================================================== */

@keyframes shaback-home-squish {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.05) rotate(3deg);
    }
}

@keyframes shaback-home-rolling-yarn {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(15px, 0) rotate(360deg);
    }
}

/* ==========================================================================
   Style helper classes to eliminate all inline HTML styling
   ========================================================================== */
.shaback-home-decor-ball-1 {
    top: 15%;
    right: 5%;
}

.shaback-home-decor-ball-2 {
    top: 60%;
    left: 3%;
}

.shaback-home-nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.shaback-home-download-label {
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 15px;
    color: var(--shaback-home-color-secondary);
}

.shaback-home-ios-info-box {
    font-size: 13px;
    color: var(--shaback-home-color-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.shaback-home-section-padding {
    padding: 20px 0;
}

.shaback-home-tool-icon-secondary {
    color: var(--shaback-home-color-secondary);
}

.shaback-home-tool-icon-primary {
    color: var(--shaback-home-color-primary);
}

.shaback-home-tool-icon-blue {
    color: #4361ee;
}

.shaback-home-tool-icon-pink {
    color: #f72585;
}

.shaback-home-tool-icon-purple {
    color: #7209b7;
}

.shaback-home-grid-ltr {
    direction: ltr;
}

.shaback-home-yarn-frame-small {
    max-width: 400px;
}

.shaback-home-rtl-align {
    direction: rtl;
    text-align: right;
}

.shaback-home-badge-yellow {
    border-color: var(--shaback-home-color-accent-yellow);
    background-color: #fefbeb;
    color: #b78a00;
}

.shaback-home-w-100 {
    text-align: justify;
    max-width: 100%;
}

.shaback-home-field-email-style {
    direction: ltr;
    text-align: left;
}

.shaback-home-left-align {
    text-align: left;
}

.shaback-home-footer-links-style {
    color: var(--shaback-home-color-text-muted);
    font-size: 14px;
    font-weight: 700;
}

.shaback-home-flex-center-gap {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Minimalist Typography and Spacing under 500px Viewport */
@media (max-width: 500px) {

    /* Set a lighter, sleeker minimalist font-weight by default */
    body.shaback-home-body * {
        font-weight: 400 !important;
    }

    /* Headings receive a refined, elegant weight rather than heavy/bold styles */
    body.shaback-home-body h1,
    body.shaback-home-body h2,
    body.shaback-home-body h3,
    body.shaback-home-body h4,
    body.shaback-home-body .shaback-home-logo-title,
    body.shaback-home-body .shaback-home-hero-title,
    body.shaback-home-body .shaback-home-section-title,
    body.shaback-home-body .shaback-home-tab-btn,
    body.shaback-home-body .shaback-home-tool-title,
    body.shaback-home-body .shaback-home-footer-links-title,
    body.shaback-home-body .shaback-home-contact-title {
        font-weight: 600 !important;
        /* Elegant semi-bold / demibold */
    }

    /* Small descriptions, text blocks, and legal pages use clean light weight */
    body.shaback-home-body p,
    body.shaback-home-body span:not(.shaback-home-logo-dot),
    body.shaback-home-body li,
    body.shaback-home-body label,
    body.shaback-home-body .shaback-home-hero-desc,
    body.shaback-home-body .shaback-home-section-desc,
    body.shaback-home-body .shaback-home-tool-desc,
    body.shaback-home-body .shaback-home-footer-desc,
    body.shaback-home-body .shaback-home-legal-card p,
    body.shaback-home-body .shaback-home-footer-links-style {
        font-weight: 300 !important;
        /* Lightweight, clean minimalist style */
        font-size: 13px !important;
        line-height: 1.7 !important;
    }

    /* Scale down large heading sizes to preserve layout balance */
    body.shaback-home-body .shaback-home-hero-title {
        font-size: 24px !important;
        line-height: 1.4 !important;
    }

    body.shaback-home-body .shaback-home-section-title {
        font-size: 20px !important;
    }

    body.shaback-home-body .shaback-home-tool-title {
        font-size: 15px !important;
    }

    body.shaback-home-body .shaback-home-btn {
        font-size: 14px !important;
        padding: 10px 16px !important;
    }
}

/* ==========================================================================
   Seasonal Decorative Yarn Balls Positioning & Relative Sections
   ========================================================================== */
.shaback-home-hero-section,
#shaback-home-tools,
#shaback-home-bazr,
#shaback-home-legal {
    position: relative;
    overflow: visible;
}

/* Sunlight Yarn Ball Positioning */
.shaback-home-decor-sunlight-1 {
    top: 10%;
    right: 4%;
}

.shaback-home-decor-sunlight-2 {
    bottom: 10%;
    left: 4%;
}

/* Rain Yarn Ball Positioning */
.shaback-home-decor-rain-1 {
    top: 20%;
    left: 3%;
}

.shaback-home-decor-rain-2 {
    bottom: 15%;
    right: 3%;
}

/* Fall Yarn Ball Positioning */
.shaback-home-decor-fall-1 {
    top: 15%;
    right: 5%;
}

.shaback-home-decor-fall-2 {
    bottom: 10%;
    left: 5%;
}

/* Snow Yarn Ball Positioning */
.shaback-home-decor-snow-1 {
    top: 15%;
    left: 4%;
}

.shaback-home-decor-snow-2 {
    bottom: 10%;
    right: 4%;
}