/* .text {
    font-size: 1.375rem;
    font-weight: 400;
    text-align: right;
    margin-left: auto;
} */

.grey-background {
    background: #F6F6F6;
    height: 100%;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 5%;
}

.name-row {
    display: flex;
    align-items: center;
}

.name {
    color: #006230;
    text-decoration: none;
    font-style: normal;
    font-weight: 700;
    font-size: 1.375rem;
    text-align: right;
}


.logout {
    width: 100%;
    height: 100%;
    filter: invert(30%) sepia(94%) saturate(4395%) hue-rotate(143deg) brightness(98%) contrast(94%);
}

.main-points-wrapper {
    /* flex: 0 1 40%; */
    position: relative;
    display: flex;
    width: 100%;
}

.flex-container {
    display: flex;
}


.circle {
    display: block;
    background: #009245;
    border-radius: 100%;
    height: 1.375rem;
    width: 1.375rem;
    margin-left: 0.5rem;
}

.first-letter {
    color: #fff;
    font-size: 1.375rem;
    line-height: 1.375rem;
    text-align: center;
    margin: 0
}

.white-headline-top {
    color: #FFF;
}

/* .headline {
    margin: 1rem;
    margin-right: 0;
} */

.headline-bottom-alt {
    color: #FFF;
    display: block;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.text-white {
    font-weight: 400;
    color: #FFF;
    font-size: 1.375rem;
}

.card-row-wrapper {
    width: 100%;
    /* height: 100%; */
}

.card-row-container {
    display: flex;
    justify-content: space-between;
    height: 100%;
}

.card-container:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.card-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 9vw;
    height: 9vw;
    border-radius: 0.5rem;
    /* border: 1vw solid #fff; */
    border: 1vw solid #fff;
    background-color: #fff;
    box-shadow: 0px 0.25rem 1.25rem 0px #00000026;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inner-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-square {
    position: absolute;
    top: -1vw;
    left: -1vw;
    width: 3vw;
    height: 3vw;
    border-radius: 0.5rem 0 0.5rem 0;
    border: 0.2vw solid #009245;
    background-color: #009245;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-square-text {
    color: #FFF;
    font-size: 0.8vw;
    font-weight: 400;
    text-align: center;
}

.card-icon {
    max-width: 75%;
    width: 3rem;
    height: 3rem;
}

.card-text {
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    color: #000000;
    font-style: normal;
    margin: auto;
    width: 75%;
    font-family: "Almoni", sans-serif;
}

.image-link {
    width: 10%;
    height: auto;
}

/* a.link-header {
    text-decoration: none;
} */

a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

a:active {
    text-decoration: none;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    flex-wrap: nowrap;
    box-sizing: border-box;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.header-insider {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
    padding: 3.5vh 1vw 3.5vh 1vw;
}

.header-logo-nav {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
    width: 45%;
    justify-content: space-between;
}

.logo {
    height: 3rem;
    max-height: 3rem;
    width: 10rem;
    max-width: 10rem;
    object-fit: contain;
}

.header-nav {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.header-name-logout {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
}

.link-header {
    color: #006230;
    text-decoration: none;
    font-weight: 400;
    display: inline-block;
    font-size: 1.3rem;
    line-height: 1.4;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow: hidden;
}

.avatar {
    background-color: #059669;
    color: white;
    font-weight: 700;
    border-radius: 9999px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    line-height: 1;
}

.greeting {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.greeting-text {
    font-weight: 400;
    color: #065f46;
    font-size: 1.3rem;
}

.username {
    font-weight: 700;
    color: #065f46;
    font-size: 1.3rem;
}

.user-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.icon-button {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    text-decoration: none;
    border: none;
}

.update-button {
    background: transparent;
    border: 1px solid #059669 !important;
    color: #059669;
}

.update-button:hover {
    background-color: #ecfdf5;
}

.disconnect-button {
    background-color: #dc2626;
    color: white;
}

.disconnect-button:hover {
    background-color: #b91c1c;
}

.icon-button i {
    font-size: 14px;
}

.middle-thing {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 5%;
    flex: 1;
    padding-bottom: 1rem;
    padding-left: 6rem;
    padding-right: 6rem;
    overflow-y: auto;
    overflow-x: visible;
    height: 100%;
}

.middle {
    display: flex;
    justify-content: center;
    gap: 2.75rem;
    box-sizing: border-box;
    width: 100%;
}

.headline-bottom-alt,
.white-headline-top,
.bottom-section,
.white-headline-bottom {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    text-align: center;
    color: white;
}

.white-headline-bottom {
    font-size: 6rem;
    font-weight: 700;
}

.explanation {
    flex-grow: 1;
    background-color: #FFF;
    border-radius: 1.375rem;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    padding: 1rem;
}

.flex-container-right {
    display: flex;
    justify-content: right;
    /* height: 14%; */
    gap: 0.3rem;
}

.white-button {
    background-color: #fff;
    color: #079247;
    text-decoration: none;
    border: 1px solid #079247;
}

.white-button:hover {
    background-color: #ecfdf5;
}

.green-button {
    background-color: #009245;
    color: #fff;
}

.green-button:hover {
    background-color: #08824b;
}


.desktop-only {
    display: inline;
}

.points-card {
    position: relative;
    background-color: #008c3e;
    color: white;
    border-radius: 1rem;
    max-width: 30%;
    min-height: 250px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 4rem;
    padding-left: 4rem;
}

.animated-counter {
    font-size: 0;
    height: 8rem;
    overflow: hidden;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    direction: ltr;
}

.animated-counter .digit {
    display: inline-block;
    font-size: 4.5rem;
    line-height: 8rem;
    text-align: center;
}

.animated-counter .sequence {
    transform: translate3d(0, -90%, 0);
    transition: transform 800ms cubic-bezier(0.86, 0, 0.07, 1);
    white-space: pre;
}

.animated-counter .digit:nth-child(2) .sequence { transition-delay: 100ms; }
.animated-counter .digit:nth-child(3) .sequence { transition-delay: 200ms; }
.animated-counter .digit:nth-child(4) .sequence { transition-delay: 300ms; }

.points-card h1 {
    margin: 0;
}

.points-card .points {
    font-size: 7rem;
    font-weight: bold;
    line-height: 1;
  }

.points-card .date {
    font-size: 0.95rem;
}

.coin {
    position: absolute;
    width: 8rem;
    height: 8rem;
    background-image: url('https://my.m-shuk.net/src/imgs/coin%20badge.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.coin.desktop {
    top: 50%;
    right: -4rem;
    transform: translateY(-50%);
}

.scroll-left {
    display: none;
}

.scroll-right {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}


.coin.mobile {
    display: none;
}








.explanation-container {
    flex: 3;
    /* max-width: 600px; */
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    /* margin: 0 auto; */
    width: 100%;
}

.card-content {
    padding: 1.5rem;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 24px;
}

.tab {
    flex: 1;
    padding: 16px 24px;
    background: none;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    color: #666;
}

.tab.active {
    color: #008C3E;
    border-bottom-color: #008C3E;
    background-color: rgba(0, 140, 62, 0.05);
}

.tab:hover:not(.active) {
    background-color: #f8f8f8;
    color: #333;
}

.tab-content {
    display: none;
    animation: fadeIn1 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn1 {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.info-section {
    margin-bottom: 24px;
}

.info-section h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.info-section h3::before {
    content: "💎";
    margin-left: 8px;
}

.info-section p {
    color: #555;
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 16px;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(0, 140, 62, 0.1), rgba(0, 166, 71, 0.1));
    border-right: 4px solid #008C3E;
    padding: 20px;
    border-radius: 8px;
    margin: 16px 0;
}

.highlight-box .ratio {
    font-size: 20px;
    font-weight: 600;
    color: #008C3E;
    margin-bottom: 8px;
}

.highlight-box p {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    color: #555;
    font-size: 16px;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li::before {
    content: "✅";
    margin-left: 16px;
    font-size: 18px;
}

.cta-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 24px;
}

.cta-section h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 18px;
}

.cta-section p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.calculator {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.calculator h4 {
    color: #333;
    font-size: 18px;
    margin-bottom: 16px;
    text-align: center;
}

.calc-input {
    margin-bottom: 16px;
}

.calc-row {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.price-input-container {
    flex: 1;
    max-width: 300px;
}

.calc-input label {
    display: block;
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.counter-input-group {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    transition: border-color 0.3s ease;
}

.counter-input-group:focus-within {
    border-color: #008C3E;
}

.counter-button {
    width: 48px;
    height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    border: none;
    outline: none;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 6px;
    margin: 2px;
}

.counter-button svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.counter-button svg path {
    fill: #008C3E;
}

.counter-button:hover,
.counter-button:focus {
    background-color: #f0f0f0;
}

.counter-input-group input {
    text-align: center;
    height: 100%;
    width: 100%;
    border: none;
    outline: none;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    background: transparent;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
}

input[type="number"]::-moz-inner-spin-button,
input[type="number"]::-moz-outer-spin-button {
    -moz-appearance: none;
    appearance: none;
}

.calc-result {
    flex: 1;
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 2px solid #008C3E;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-text {
    color: #008C3E;
    font-size: 16px;
}

.calc-note {
    margin-top: 12px;
    text-align: center;
}

.calc-note small {
    color: #888;
    font-size: 14px;
}

.calc-toggle-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #008C3E, #00A647);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.calc-toggle-btn:hover {
    background: linear-gradient(135deg, #007A35, #009540);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 140, 62, 0.3);
}

.calc-toggle-btn:active {
    transform: translateY(0);
}

.calculator.hidden {
    display: none;
}

.calculator {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop specific styles */
@media (min-width: 768px) {
    
    .tabs {
        margin-bottom: 32px;
    }
    
    .tab {
        padding: 20px 32px;
        /* font-size: 18px; */
    }
    
    .info-section h3 {
        font-size: 24px;
    }
    
    .info-section p {
        font-size: 18px;
    }
    
    .highlight-box .ratio {
        font-size: 24px;
    }
    
    .highlight-box p {
        font-size: 18px;
    }
    
    .calc-row {
        gap: 24px;
    }
    
    .calculator {
        padding: 32px;
    }
}

/* Large desktop styles */
@media (min-width: 1024px) {
    
    .calc-row {
        justify-content: center;
        max-width: 600px;
        margin: 0 auto 16px auto;
    }
}

/* Mobile styles - התוצאה מתחת לשדה הקלט */
@media (max-width: 767px) {
    
    .explanation-container {
        border-radius: 1rem;
    }
    
    .card-content {
        padding: 16px;
    }
    
    .tab {
        padding: 10px 12px;
    }
    
    .info-section h3 {
        font-size: 16px;
    }
    
    .info-section p {
        font-size: 14px;
    }
    
    .highlight-box .ratio {
        font-size: 16px;
    }
    
    .highlight-box p {
        font-size: 14px;
    }
    
    /* שינוי הפריסה במובייל - התוצאה מתחת */
    .calc-row {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .price-input-container {
        max-width: none;
        width: 100%;
    }
    
    .calc-result {
        width: 100%;
        min-height: 60px;
        padding: 0;
    }
    
    .result-text {
        font-size: 15px;
        font-weight: 600;
    }
    
    .counter-input-group {
        height: 45px;
    }
    
    .counter-button {
        width: 45px;
        height: 41px;
    }
    
    .counter-button svg {
        width: 18px;
        height: 18px;
    }
    
    .counter-input-group input {
        font-size: 20px;
    }
    
    .calc-input label {
        font-size: 14px;
    }
}











@media (max-width: 1400px) {
    .link-header {
        font-size: 1.4rem;
    }

    .greeting-text {
        font-size: 1.3rem;
    }

    .username {
        font-size: 1.3rem;
    }

    .icon-button {
        padding: 0.6rem 1rem;
    }


}


@media (max-width: 1300px) {
    /* .points-card {
        flex-grow: 1;
    } */

    .explanation {
        flex-grow: 1;
    }

    .white-headline-bottom {
        font-size: 5rem;
    }

    .username {
        display: none;
    }

    .desktop-only {
        display: none;
    }
}


@media (max-width: 1000px) {
    .username {
        display: none;
    }

    .desktop-only {
        display: none;
    }

    .white-headline-bottom {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {


    body {
        overflow: hidden;
    }

    .middle-thing {
        padding-left: 0;
        padding-right: 0;
    }

    .points-headline-bottom {
        margin-right: 0;
    }

    .points-card-content {
        margin-right: 0;
    }

    .grey-background {
        padding-bottom: 70px;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .coin.desktop {
        display: none;
    }

    .coin.mobile {
        display: block;
        top: -4rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .coin {
        width: 8rem;
        height: 8rem;
    }

    .header {
        flex-shrink: 0;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 100;
        flex-direction: row;
        gap: 8px;
        padding: 0.625rem 0.75rem;
        border-bottom: 1px solid #009245;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
        height: 60px;
    }

    .header-insider {
        gap: 8px;
    }

    .header-nav {
        display: none !important;
    }

    .user-section {
        flex-grow: 1;
        justify-content: flex-end;
        gap: 8px;
    }

    .logo {
        max-width: 100px;
        max-height: 32px;
    }

    .avatar {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .greeting-text {
        font-size: 1.2rem;
    }

    .username {
        display: none;
    }

    .desktop-only {
        display: none;
    }

    .icon-button {
        padding: 8px;
        border-radius: 8px;
    }

    .link-header {
        font-size: 14px;
    }

    .middle-thing {
        display: block;
        overflow-y: auto;
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }

    .middle {
        display: flex;
        justify-content: start;
        margin-top: 4.5rem;
        flex-direction: column;
        padding: 1rem;
        height: 100%;
        gap: 1.5rem;
        height: auto;
    }

    .explanation {
        flex: 0;
        gap: 1rem;
    }

    .card-container {
        width: 5rem;
        height: 5rem;

    }

    .points-card {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        min-width: 0;
        max-width: 100%;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .scroll-left {
        display: block;
    }

    .scroll-right {
        display: block;
    }

    .card-row-wrapper-with-arrows {
        position: relative;
        display: flex;
        align-items: center;
    }

    .scroll-left,
    .scroll-right {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        border: none;
        font-size: 1rem;
        z-index: 1;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 50%;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #009245;
    }

    .scroll-left {
        left: 5px;
    }

    .scroll-right {
        right: 5px;
    }

    .card-row-wrapper {
        position: relative;
    }

    .card-row-container {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 5%;
        align-items: stretch;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;

    }

    .card-container {
        width: 7rem;
        height: 7rem;
        position: relative;
    }

    .card-square {
        height: 2rem;
        width: 2rem;
    }

    .card-square-text {
        text-align: center;
        font-size: 0.55rem;
    }

    .mobile-bottom-nav {
        display: block;
    }

    .mobile-bottom-nav {
        flex-shrink: 0;
        background-color: #008c3e;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 14px 0;
        z-index: 999;
        border-radius: 20px 0px 0 0;
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }

    .nav-item {
        color: white;
        text-align: center;
        text-decoration: none;
        position: relative;
        flex: 1;
    }

    .nav-item i {
        font-size: 1.6rem;
        display: block;
        margin-bottom: 6px;
    }

    .badge-wrapper {
        position: relative;
    }

    .badge {
        position: absolute;
        top: -6px;
        left: 50%;
        transform: translateX(50%);
        background-color: red;
        color: white;
        font-size: 12px;
        font-weight: bold;
        padding: 2px 6px;
        border-radius: 999px;
    }

    @media (max-width: 400px) {
        .logo {
            width: 6rem;
        }
    }
}
