/* --- Hinnasto Cards --- */
.hinnasto-cards {
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 2rem 2rem 0 2rem;
}
.hinnasto-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    color: #ee0000;
    margin-bottom: 2rem;
    text-align: left;
    letter-spacing: 1px;
}

/* Extra spacing for Postikulut section */
.hinnasto-title[style*="margin-top"] {
    margin-top: 5rem !important;
}
.hinnasto-row {
    display: flex;
    gap: 2.5rem;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.hinnasto-card {
    background: linear-gradient(135deg, #292929 60%, #232323 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    border: 1px solid #444;
    padding: 2.5rem 2rem 2rem 2rem;
    min-width: 240px;
    max-width: 320px;
    flex: 1 1 240px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.hinnasto-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 16px 48px rgba(238,0,0,0.18);
    border-color: #ee0000;
}
.hinnasto-icon {
    font-size: 2.5rem;
    color: #ee0000;
    margin-bottom: 1.2rem;
    background: -webkit-linear-gradient(#ee0000, #c20303);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hinnasto-label {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}
.hinnasto-price {
    font-size: 2.1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    color: #ee0000;
    margin-bottom: 0.7rem;
}
.hinnasto-desc {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 0.2rem;
    font-weight: 400;
}


*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: #e0e0e0;
    background-color: #1e1e1e;
    background-image: radial-gradient(circle, #4a4a4a 1px, rgba(0,0,0,0) 1px);
    background-size: 24px 24px;
}

/* --- HEADER --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
    background-color: rgba(18,18,18,0.95); /* tumma heti myös sivuilla ilman pitkää hero-osiota */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.site-header.scrolled {
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo a {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #ffffff;
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav li {
    margin-left: 2.5rem;
}

.main-nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ee0000;
    transition: width 0.4s ease;
}

.main-nav a:hover {
    color: #fff;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a.laskuri-link {
    background-color: #3a3a3a;
    color: #f0f0f0;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav a.laskuri-link:hover {
    background-color: #555;
    color: #fff;
}

.main-nav a.laskuri-link::after {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
}

.cta-button {
    background-color: #ee0000;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #d30000;
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    margin-left: 1rem;
}

.mobile-menu-toggle .fa-times {
    display: none;
}

/* ===== UUSI SPLIT-SCREEN HERO ===== */

#hero {
    position: relative;
    min-height: calc(100vh + 200px);
    background: 
        radial-gradient(circle 400px at 20% 400px, rgba(238,0,0,0.08) 0%, transparent 50%),
        radial-gradient(circle 300px at 80% 200px, rgba(0,100,255,0.05) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent 0%, #1e1e1e 100%);
    pointer-events: none;
    z-index: 10;
}

.hero-split-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 100vh;
    align-items: center;
    gap: 4rem;
    padding: 0 3rem;
    position: relative;
    z-index: 2;
}

/* ===== VASEN PUOLI - SISÄLTÖ ===== */

.hero-left {
    display: flex;
    align-items: center;
    animation: slideInLeft 1.2s ease-out;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-60px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content-inner {
    max-width: 600px;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.eyebrow-badge {
    background: linear-gradient(135deg, rgba(238,0,0,0.15) 0%, rgba(238,0,0,0.05) 100%);
    border: 1px solid rgba(238,0,0,0.3);
    color: #ff4444;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.eyebrow-text {
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-headline {
    font-family: 'Poppins', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.gradient-text {
    background: linear-gradient(135deg, #ee0000 0%, #ff6666 50%, #ff0000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-subheadline {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #b0b0b0;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.7s both;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CTA NAPIT ===== */

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.cta-primary,
.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: linear-gradient(135deg, #ee0000 0%, #ff3333 100%);
    color: #ffffff;
    box-shadow: 
        0 8px 30px rgba(238, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(238, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #ff1111 0%, #ff4444 100%);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.cta-primary i,
.cta-secondary i {
    transition: transform 0.3s ease;
}

.cta-primary:hover i,
.cta-secondary:hover i {
    transform: translateX(4px);
}

/* ===== TODISTEET ===== */

.hero-proof {
    display: flex;
    gap: 2.5rem;
    animation: fadeInUp 1s ease-out 1.1s both;
}

.proof-item {
    text-align: left;
}

.proof-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ee0000;
    margin-bottom: 0.25rem;
}

.proof-label {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

/* ===== OIKEA PUOLI - VISUAALI ===== */

.hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 1.2s ease-out;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(60px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-visual-container {
    position: relative;
    width: 100%;
    height: 500px;
}

.visual-bg-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(238,0,0,0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* ===== FEATURE KORTIT ===== */

.feature-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.feature-card {
    position: absolute;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 1.5rem;
    width: 220px;
    animation: floatCard 6s ease-in-out infinite;
}

.card-1 {
    top: 8%;
    left: 5%;
    animation-delay: 0s;
}

.card-2 {
    top: 0%;
    right: 5%;
    transform: translateY(-50%);
    animation-delay: -2s;
}

.card-3 {
    bottom: 8%;
    left: 25%;
    animation-delay: -4s;
}

@keyframes floatCard {
    0%, 100% { 
        transform: translateY(0) scale(1);
    }
    50% { 
        transform: translateY(-15px) scale(1.02);
    }
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ee0000 0%, #ff4444 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

.card-content h4 {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.card-content p {
    color: #aaaaaa;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* ===== KELLUVAT ELEMENTIT ===== */

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(238,0,0,0.1), rgba(255,100,0,0.1));
    animation: float 8s ease-in-out infinite;
}

.element-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

.element-2 {
    width: 40px;
    height: 40px;
    bottom: 30%;
    left: 10%;
    animation-delay: -3s;
}

.element-3 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 30%;
    animation-delay: -6s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.6;
    }
}

/* ===== RESPONSIVE HERO ===== */

@media (max-width: 1200px) {
    .hero-split-container {
        gap: 2rem;
        padding: 0 2rem;
    }
    
    .hero-headline {
        font-size: 3.8rem;
    }
}

@media (max-width: 992px) {
    #hero {
        min-height: 0;
        padding: 120px 0 60px 0;
        align-items: flex-start;
        margin-bottom: 5rem; /* Added margin */
    }

    .hero-split-container {
        grid-template-columns: 1fr;
        min-height: 0;
        text-align: center;
        gap: 2rem;
        padding: 0 2rem;
        align-items: flex-start;
    }
    
    .hero-left, .hero-right {
        animation: none;
    }

    .hero-content-inner {
        margin: 0 auto;
    }

    .hero-eyebrow, .hero-cta-group, .hero-proof {
        justify-content: center;
    }

    .hero-headline {
        font-size: 3.2rem;
    }
    
    .hero-visual-container {
        height: auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .visual-bg-element, .floating-elements {
        display: none;
    }

    .feature-cards {
        position: static;
        height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .feature-card {
        position: static;
        width: 100%;
        animation: none;
        transform: none !important;
        padding: 1.2rem;
        display: flex;
        align-items: center;
        text-align: left;
        flex-direction: row;
        gap: 1rem;
        border-radius: 12px;
        background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .card-1, .card-2, .card-3 {
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        animation-delay: 0s !important;
    }

    .card-icon {
        margin-bottom: 0;
        margin-right: 1rem;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .card-content {
        flex-grow: 1;
    }
    
    .card-content h4 {
        margin-bottom: 0.3rem;
        font-size: 1rem;
        font-weight: 600;
    }
    
    .card-content p {
        margin: 0;
        font-size: 0.85rem;
        opacity: 0.9;
    }
}

@media (max-width: 768px) {
    #hero {
        padding: 100px 0 80px 0; /* Reverting to a more reasonable padding */
        margin-bottom: 6rem; /* Adding a large margin to push down the next section */
    }
    
    .hero-split-container {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .hero-subheadline {
        font-size: 1.1rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-proof {
        display: none;
    }
}

.btn {
    text-decoration: none;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, #ee0000, #c20303);
    color: #fff;
    box-shadow: 0 8px 20px rgba(238, 0, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(238, 0, 0, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-3px);
}

#hinnasto {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem 2rem;
    content-visibility: auto;
    contain-intrinsic-size: auto 1200px;
}

#hinnasto h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    text-align: center;
    margin-bottom: 3rem;
}

.calculator-container {
    display: flex;
    gap: 3rem;
    align-items: stretch;
}

.options-container, .dropzone-container {
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #444;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.options-container:hover, .dropzone-container:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 6px 15px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.options-container h3, .dropzone-container h3 {
    margin-top: 0;
    color: #ee0000;
    border-bottom: 2px solid #444;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.drop-area {
    border: 2px dashed #555;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: #aaa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.drop-area:hover, .drop-area.drag-over {
    border-color: #ee0000;
    background-color: #333;
}

.drop-area svg {
    stroke: #777;
    margin-bottom: 1rem;
    transition: stroke 0.3s ease;
}

.drop-area:hover svg {
    stroke: #ee0000;
}

.drop-area p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.drop-area span {
    margin: 0.75rem 0;
    color: #777;
}

.browse-button {
    background-color: #ee0000;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.browse-button:hover {
    background-color: #d30000;
}

/* --- UUSI FOOTER --- */
.site-footer-new {
    background-color: #141414;
    color: #ccc;
    padding: 4rem 2rem;
    border-top: 1px solid #333;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.footer-column h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #ee0000;
}

.footer-column p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #ffffff;
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #ccc;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #ee0000;
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 8px;
}

.footer-links a::before {
    content: '\f105'; /* FontAwesome right arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: -10px;
    opacity: 0;
    color: #ee0000;
    transition: left 0.3s ease, opacity 0.3s ease;
}

.footer-links a:hover::before {
    left: -5px;
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #888;
}

.footer-bottom a {
    color: #aaa;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #ee0000;
}


/* Uusi vahvuusvalitsin */
.strength-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.strength-option {
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #2e2e2e, #262626);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.strength-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.strength-option.selected {
    background: linear-gradient(145deg, #ee0000, #c20303);
    color: #fff;
    border-color: #ee0000;
    box-shadow: 0 0 20px rgba(238, 0, 0, 0.5);
}

.strength-icon {
    font-size: 2rem;
    margin-right: 1.5rem;
    color: #ee0000;
    transition: color 0.3s ease;
    width: 60px;
    text-align: center;
}

.strength-option.selected .strength-icon {
    color: #fff;
}

.strength-details h4 {
    margin: 0 0 0.25rem 0;
    font-weight: 700;
    font-size: 1.1rem;
}

.strength-details p {
    margin: 0;
    font-size: 0.9rem;
    color: #ccc;
}

.strength-option.selected .strength-details p {
    color: #fff;
}

.options-intro {
    margin-bottom: 1.5rem;
    color: #ccc;
    text-align: center;
}

.calculate-button {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(45deg, #ee0000, #c20303);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(238, 0, 0, 0.2);
}

.calculate-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(238, 0, 0, 0.4);
}

#result {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.7s linear, margin-top 0.7s linear;
    margin-top: 0;
    font-size: 1.1rem;
    color: #fff;
}

#result.show {
    max-height: 600px; /* Riittävän suuri arvo sisällölle */
    margin-top: 2rem;
}

.result-box {
    background: linear-gradient(145deg, #2e2e2e, #262626);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.result-box h4 {
    margin-top: 0;
    color: #ee0000;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    border-bottom: 2px solid #444;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.result-item {
    background-color: #222;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #333;
}

.result-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.result-label i {
    color: #ee0000;
    font-size: 1.2rem;
}

.result-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.result-price {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
    text-align: center;
}

.result-price .result-label {
    justify-content: center;
    font-size: 1.1rem;
}

.result-value-large {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #ee0000;
    display: block;
}

.result-shipping {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    color: #00ff88;
}

.result-shipping .shipping-cost {
    font-weight: 700;
}

.result-shipping .shipping-cost.free {
    color: #00ff88;
}

/* Hinnasto-osion tyylit */
.pricing-guide {
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #444;
    margin-top: 3rem;
}

.pricing-guide h3 {
    margin-top: 0;
    color: #ee0000;
    border-bottom: 2px solid #444;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.pricing-guide ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-guide li {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #3a3a3a;
    font-size: 1.1rem;
}

.pricing-guide li:last-child {
    border-bottom: none;
}

.pricing-guide span {
    color: #ccc;
}

.pricing-guide strong {
    color: #fff;
    font-weight: 700;
}

/* Yleiset sivupohjan tyylit */
.page-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem 2rem;
    content-visibility: auto;
    contain-intrinsic-size: auto 1000px;
}

/* Mallit-osion tyylit */
#mallit h2 {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.mallit-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.7;
}

.mallit-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.mallit-box {
    background: linear-gradient(145deg, #2e2e2e, #262626);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid #444;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.mallit-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.mallit-box-icon {
    font-size: 3rem;
    color: #ee0000;
    margin-bottom: 1.5rem;
    background: -webkit-linear-gradient(#ff416c, #ff4b2b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mallit-box h3 {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.mallit-box p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
    flex-grow: 1;
    margin-bottom: 2rem;
}

.mallit-box .external-link-button,
.mallit-box .calculate-button {
    text-decoration: none;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.external-link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(45deg, #ee0000, #c20303);
    color: #fff;
}

.external-link-button:hover {
    background: linear-gradient(45deg, #d30000, #a00202);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(238, 0, 0, 0.2);
}

.mallit-box .calculate-button {
    background-color: transparent;
    color: #fff;
    border-color: #ee0000;
}

.mallit-box .calculate-button:hover {
    background-color: #ee0000;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(238, 0, 0, 0.2);
}

.external-link-button svg {
    stroke: #fff;
    transition: transform 0.3s ease;
}

.external-link-button:hover svg {
    transform: rotate(45deg);
}

/* --- UUDELLEENSUUNNITELTU OSTOSKORI --- */

.cart-main-reimagined {
    padding: 6rem 2rem 4rem 2rem;
    min-height: 100vh;
}

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

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

.checkout-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #888;
    transition: color 0.4s ease;
}

.progress-step.active {
    color: #ee0000;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    border: 2px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background-color 0.4s, border-color 0.4s;
}

.progress-step.active .step-icon {
    background-color: #ee0000;
    border-color: #ee0000;
    color: #fff;
}

.progress-step span {
    margin-top: 0.5rem;
    font-weight: 600;
}

.progress-line {
    flex-grow: 1;
    height: 2px;
    background-color: #555;
    margin: 0 1rem;
    transform: translateY(-10px);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.customer-details-reimagined h2, .cart-summary-reimagined h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #444;
}

.checkout-form .form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.checkout-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.checkout-form .address-group {
    flex-basis: 100%;
}

.checkout-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #bbb;
    margin-bottom: 0.5rem;
}

.checkout-form input, .checkout-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background-color: #2c2c2c;
    border: 1px solid #555;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.checkout-form input:focus, .checkout-form textarea:focus {
    outline: none;
    border-color: #ee0000;
    box-shadow: 0 0 0 3px rgba(238, 0, 0, 0.2);
    background-color: #333;
}

.checkout-form textarea {
    resize: vertical;
}

.checkout-summary {
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #444;
    position: sticky;
    top: 100px;
}

#cart-item-details .item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #444;
}

#cart-item-details .item-row:last-child {
    border-bottom: none;
}

#cart-item-details .item-info span {
    display: block;
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
}

#cart-item-details .item-info small {
    font-size: 0.85rem;
    color: #aaa;
}

#cart-item-details .item-price {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.summary-calculation {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
}

.summary-row, .summary-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.summary-row span:first-child, .summary-total span:first-child {
    color: #bbb;
}

.summary-row span:last-child, .summary-total strong {
    color: #fff;
    font-weight: 600;
}

.summary-total {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #444;
}

.summary-total span:first-child {
    color: #fff;
}

/* Varmista että ALV-merkintä (vat-info) on harmaa eikä periydy valkoisena */
.summary-total span:first-child .vat-info {
    color: #888;
}

/* Sama myös summary-row (välisumma) riville */
.summary-row span:first-child .vat-info {
    color: #888;
}

.summary-total strong {
    color: #ee0000;
    font-size: 1.4rem;
}

.vat-info {
    font-weight: normal;
    color: #888;
    font-size: 0.8rem;
    margin-left: 5px;
}

.payment-instructions-reimagined {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(145deg, #2d2d2d, #3a3a3a);
    border-radius: 16px;
    text-align: center;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-instructions-reimagined h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    border: none;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
    position: relative;
    z-index: 2;
}

.payment-option {
    position: relative;
}

.payment-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(68, 68, 68, 0.8), rgba(51, 51, 51, 0.8));
    color: #bbb;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transform: translateY(0);
}

.payment-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.payment-label:hover {
    border-color: rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, rgba(68, 68, 68, 0.9), rgba(51, 51, 51, 0.9));
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(102, 126, 234, 0.1);
}

.payment-label:hover::before {
    opacity: 1;
}

.payment-radio:checked + .payment-label {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(139, 92, 246, 0.15));
    box-shadow: 
        0 10px 40px rgba(102, 126, 234, 0.2),
        0 0 30px rgba(102, 126, 234, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.02);
}

.payment-radio:checked + .payment-label::before {
    opacity: 1;
}

.payment-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.mobilepay-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.payment-label:hover .payment-icon.invoice-icon img {
    filter: brightness(1.1) !important;
    background: transparent !important;
}

.invoice-icon {
    background: transparent;
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -0.3rem; /* Siirtää logoa vasemmalle */
}
.payment-icon img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    display: block; 
}

.payment-icon.invoice-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    filter: none !important;
    background: transparent !important;
    background-color: transparent !important;
    display: block !important;
}

/* Ensure <picture> wraps scale like <img> inside payment icons */
/* picture-specific rules removed; using direct PNG <img> */

.payment-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Invoice icon sits inside .payment-icon; no extra styles needed */

.payment-title {
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.payment-desc {
    font-size: 0.9rem;
    color: #ccc;
    opacity: 0.9;
}

/* --- MobilePay branded-like option --- */
.payment-label.mobilepay-label { 
    background: linear-gradient(135deg, rgba(58, 58, 58, 0.8), rgba(68, 68, 68, 0.8)); 
    border-color: rgba(255, 255, 255, 0.1); 
}
.payment-radio:checked + .payment-label.mobilepay-label { 
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(139, 92, 246, 0.15)); 
    border-color: #667eea; 
    box-shadow: 
        0 10px 40px rgba(102, 126, 234, 0.25),
        0 0 30px rgba(102, 126, 234, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mobilepay-btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 1rem; 
}

.mobilepay-mark { 
    width: 40px; 
    height: 40px; 
    object-fit: contain; 
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.mobilepay-text { 
    display: flex; 
    flex-direction: column; 
}
.mobilepay-title { 
    font-weight: 700; 
    color: #fff; 
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.mobilepay-desc { 
    font-size: 0.9rem; 
    color: #ccc; 
    opacity: 0.9;
}

.payment-radio:checked + .payment-label.mobilepay-label .mobilepay-title,
.payment-radio:checked + .payment-label.mobilepay-label .mobilepay-desc {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.payment-radio:checked + .payment-label .payment-icon {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.payment-radio:checked + .payment-label .payment-icon.invoice-icon img {
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(102, 126, 234, 0.4)) !important;
    background: transparent !important;
}

.payment-method-instructions {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(68, 68, 68, 0.6), rgba(51, 51, 51, 0.6));
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.payment-method-instructions p {
    margin: 0;
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.payment-instructions-reimagined p {
    font-size: 0.9rem;
    color: #bbb;
    margin: 0;
    line-height: 1.5;
}

.checkout-summary .calculate-button {
    margin-top: 2rem;
    border-radius: 8px;
}

.order-feedback-reimagined {
    margin-top: 1.5rem;
    text-align: center;
}

/* --- RESPONSIVE STYLES FOR REIMAGINED CART --- */

@media (max-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .cart-main-reimagined {
        padding: 5rem 1rem 2rem 1rem;
    }

    .checkout-header h1 {
        font-size: 2.2rem;
    }

    .checkout-form .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }

    .checkout-form .form-group {
        margin-bottom: 1.25rem;
    }

    /* Payment section mobile improvements */
    .payment-instructions-reimagined {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .payment-instructions-reimagined h2 {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }

    .payment-label {
        padding: 1rem;
        gap: 0.75rem;
    }

    .payment-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .invoice-icon {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
    }

    .payment-icon.invoice-icon img {
        width: 100% !important;
        height: 100% !important;
        background: transparent !important;
    }

    .mobilepay-mark {
        width: 32px;
        height: 32px;
    }

    .payment-title {
        font-size: 1rem;
    }

    .payment-desc,
    .mobilepay-desc {
        font-size: 0.85rem;
    }
}



/* --- OSIOITTEN VÄLIEN SÄÄTÖ --- */

#hero {
    margin: 0 auto 6rem auto;
}

#hinnasto {
    padding: 4rem 2rem 6rem 2rem;
}

#mallit {
    padding: 8rem 2rem 4rem 2rem;
}

#yhteystiedot {
    padding: 8rem 2rem 4rem 2rem;
}

footer {
    margin-top: 3rem;
}

/* --- LEGAL / POLICY PAGES --- */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem 2rem; /* account for fixed header */
}

.legal-page .legal-inner {
    background: linear-gradient(145deg, #2a2a2a, #222);
    border: 1px solid #3a3a3a;
    border-radius: 18px;
    padding: 3rem 2.5rem;
    box-shadow: 0 18px 50px -10px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
}

.legal-page .legal-inner::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle at center, rgba(238,0,0,0.15) 0%, rgba(238,0,0,0) 70%);
    pointer-events: none;
}

.legal-page h1, .legal-page h2, .legal-page h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.legal-page h1 { font-size: 2.4rem; margin-top: 0; color: #ee0000; }
.legal-page h2 { font-size: 1.45rem; position: relative; padding-bottom: 0.35rem; }
.legal-page h2::after { content:''; position:absolute; left:0; bottom:0; width:60px; height:3px; background:#ee0000; border-radius:2px; }
.legal-page h3 { font-size: 1.2rem; }

.legal-page p, .legal-page li {
    font-size: 1rem;
    line-height: 1.7;
    color: #d2d2d2;
}

.legal-page p { margin-top: 0; margin-bottom: 1.2rem; }
.legal-page ul, .legal-page ol { padding-left: 1.2rem; margin-top: 0.5rem; margin-bottom: 1.5rem; }
.legal-page ul li { list-style: disc; }
.legal-page a { color: #ff4b4b; text-decoration: none; border-bottom: 1px solid rgba(255,75,75,0.35); transition: color .25s, border-color .25s; }
.legal-page a:hover { color:#fff; border-color:#fff; }

.legal-meta { font-size: 0.85rem; letter-spacing: 0.5px; text-transform: uppercase; color: #999; margin-bottom: 2.5rem; }

.legal-highlight {
    background: rgba(238,0,0,0.08);
    border: 1px solid rgba(238,0,0,0.25);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #ffb9b9;
    margin: 1.5rem 0 2rem 0;
}

@media (max-width: 720px) {
    .legal-page { padding: 6rem 1.2rem 3.5rem 1.2rem; }
    .legal-page .legal-inner { padding: 2.2rem 1.5rem; }
    .legal-page h1 { font-size: 2rem; }
    .legal-page h2 { font-size: 1.3rem; }
}


html {
  scroll-behavior: smooth;
}

#hero, #hinnasto, #mallit, #yhteystiedot, #hinnasto-opas {
    scroll-margin-top: 80px;
}

/* Määrän valitsimen tyylit */
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quantity-btn {
    background-color: #3a3a3a;
    color: #e0e0e0;
    border: 1px solid #555;
    width: 32px;
    height: 32px;
    border-radius: 8px; /* Ei enää täysin pyöreä */
    font-size: 1.4rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.quantity-btn:hover {
    background-color: #ee0000;
    border-color: #ee0000;
    color: #fff;
}

.quantity-btn:disabled {
    background-color: #2a2a2a;
    border-color: #444;
    color: #666;
    cursor: not-allowed;
}

.quantity-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0.5rem;
    min-width: 30px;
    text-align: center;
}

/* Pakkausstatuksen tyylit */
.pack-status {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: #ccc;
}
.pack-status.ok { color: #8aff9b; }
.pack-status.warn { color: #ffce6b; }
.pack-status.err { color: #ff7a7a; }

/* Tooltip-tyylit */
.tooltip {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.tooltip .fa-question-circle {
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.tooltip:hover .fa-question-circle {
    color: #fff;
}

.tooltip .tooltip-content {
    display: none;
    position: absolute;
        top: -250px; /* Move tooltip higher above the icon */
        left: calc(100% + 40px); /* Move tooltip more to the right */
    width: 240px; /* Smaller width */
    background-color: #1e1e1e;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    z-index: 10;
    opacity: 0;
    transform-origin: top left;
    transform: scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    text-align: center;
}

.tooltip:hover .tooltip-content {
    display: block;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.tooltip-content p {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ccc;
}

.tooltip-content img {
    display: block !important;
    margin: 0 auto !important;
    max-width: 140px !important; /* smaller image */
    width: 100% !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    margin-top: 8px !important;
}

.tooltip-content strong {
    color: #ee0000;
    font-weight: 700;
}

.strength-option {
    position: relative;
}

/* --- RESPONSIVE STYLES --- */

/* Pienet tietokoneet ja isot tabletit */
@media (max-width: 1200px) {
    .header-container, #hinnasto, .page-main, .hinnasto-cards, .contact-form-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    #hero h2 {
        font-size: 4.5rem;
    }
}

/* Tabletit */
@media (max-width: 992px) {
    .calculator-container, .mallit-container, .form-row {
        flex-direction: column;
    }

    /* Responsive padding for tablets */
    #hinnasto {
        padding: 3rem 1.5rem 5rem 1.5rem;
    }

    .hinnasto-cards {
        padding: 2rem 1.5rem 0 1.5rem;
    }

    .cart-left, .cart-right {
        width: 100%;
    }

    .mallit-container {
        grid-template-columns: 1fr;
    }

    #hero h2 {
        font-size: 3.5rem;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }

    .hinnasto-row {
        justify-content: center;
    }

    .page-main {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

    #yhteystiedot, #mallit {
        padding-top: 6rem;
    }

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

/* Mobiiliresponsiivisuus */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(18, 18, 18, 0.98);
        padding: 1rem 0;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav li {
        margin: 1rem 0;
        margin-left: 0;
    }

    .header-actions .cta-button {
        display: none; /* Piilota nappi mobiilissa, jos haluat */
    }

    .mobile-menu-toggle {
        display: block;
    }

    #hero {
    height: auto;
    min-height: 80vh;
    }

    #hero h2 {
        font-size: 2.8rem;
    }

    .hinnasto-title, #mallit h2, #yhteystiedot h2 {
        font-size: 1.8rem;
    }

    /* Responsive padding for calculator section */
    #hinnasto {
        padding: 0rem 1rem 4rem 1rem;
    }

    #hinnasto h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .hinnasto-cards {
        padding: 2rem 1rem 0 1rem;
    }

    /* Mobile spacing for Postikulut section */
    .hinnasto-title[style*="margin-top"] {
        margin-top: 5rem !important;
    }

    .calculator-container {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-form-container, .mallit-box {
        padding: 2rem;
    }

    /* Legacy cart classes removed */

    /* Yhteenvedon rivit pinoutuvat, ettei tule vaakarullaa */
    #cart-item-details p {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    /* Tooltip-säännöt mobiilille */
    .tooltip .tooltip-content {
        position: fixed;
        top: -100%; /* Nostettu hieman ylemmäs */
        left: 50%;
        width: 90vw; /* Leveys suhteessa näytön leveyteen */
        max-width: 320px; /* Maksimileveys */
        transform: translate(-50%, -50%) scale(0.95);
        transform-origin: center center;
    }

    .tooltip:hover .tooltip-content {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Pienet mobiililaitteet */
@media (max-width: 576px) {
    .header-container, #hinnasto, .page-main, .hinnasto-cards, .contact-form-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #hero h2 {
        font-size: 2.2rem;
    }

    .hinnasto-card {
        padding: 2rem 1.5rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .feature-cards {
        gap: 0.8rem;
        max-width: 350px;
    }
    
    .feature-card {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .card-icon {
        width: 35px;
        height: 35px;
        margin-right: 0.8rem;
    }
    
    .card-content h4 {
        font-size: 0.95rem;
    }
    
    .card-content p {
        font-size: 0.8rem;
    }

    /* Varmistetaan, että laatikot eivät tunnu liian leveiltä */
    /* Removed legacy cart summary blocks */

    /* Maksuohjeet pinoutuvat yhdelle sarakkeelle pienimmillä näytöillä */
    .payment-grid {
        grid-template-columns: 1fr;
        row-gap: 0.25rem;
    }

    /* Estetään pitkien arvojen ylivuoto */
    .grid-value, #cart-item-details, #cart-item-details strong {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

.mobile-menu-toggle .fa-bars {
    display: block;
}

.mobile-menu-toggle .fa-times {
    display: none;
}

.mobile-menu-toggle.active .fa-bars {
    display: none;
}

.mobile-menu-toggle.active .fa-times {
    display: block;
}

/* --- Material Selector --- */
.calculator-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: stretch;
}

.calculator-actions .calculate-button {
    flex-grow: 1;
    width: auto; /* Override the 100% width */
}

.material-selector {
    position: relative;
}

.material-selector-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #3a3a3a;
    color: #f0f0f0;
    border: 1px solid #555;
    padding: 0 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s, border-color 0.3s;
    height: 100%;
    min-width: 150px;
}

.material-selector-button:hover {
    background-color: #4a4a4a;
    border-color: #777;
}

.material-selector-button i {
    margin-left: 0.75rem;
    transition: transform 0.3s ease;
}

.material-selector-button.open i {
    transform: rotate(180deg);
}

.material-dropdown {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px); /* Position above the button */
    right: 0;
    background-color: #2c2c2c;
    border: 1px solid #555;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    z-index: 100;
    width: 100%;
}

.material-dropdown.show {
    display: block;
}

.material-option {
    padding: 0.6rem 1rem;
    color: #e0e0e0;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.material-option:hover {
    background-color: #ee0000;
    color: #fff;
}

/* --- Material Info Tooltip --- */
.material-info {
    position: relative;
    padding: 0.8rem 1.2rem;
    text-align: center;
    border-top: 1px solid #444;
}

.material-info-icon {
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.material-info:hover .material-info-icon {
    color: #fff;
}

.material-tooltip-content {
    display: none;
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    background-color: #1e1e1e;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    z-index: 110; /* Above the dropdown */
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    text-align: left;
}

.material-info:hover .material-tooltip-content {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.material-tooltip-content p {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ccc;
}

.material-tooltip-content p:last-child {
    margin-bottom: 0;
}

.material-tooltip-content strong {
    color: #ee0000;
    font-weight: 700;
}

/* --- YHTEYSTIEDOT-OSION YHTENÄINEN TYYLI --- */
.contact-grid-consistent {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: flex-start;
}

.contact-card-consistent {
    background: linear-gradient(145deg, #2e2e2e, #262626);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #444;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.contact-card-consistent h3 {
    color: #ee0000;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #444;
}

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

.contact-form-consistent label {
    display: block;
    color: #ccc;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form-consistent input,
.contact-form-consistent textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background-color: #1a1a1a;
    border: 1px solid #555;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form-consistent input:focus,
.contact-form-consistent textarea:focus {
    outline: none;
    border-color: #ee0000;
    box-shadow: 0 0 0 3px rgba(238, 0, 0, 0.2);
}

.contact-form-consistent textarea {
    resize: vertical;
}

.file-upload-label-consistent {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    background-color: #3a3a3a;
    color: #f0f0f0;
    border: 1px solid #555;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label-consistent:hover {
    background-color: #ee0000;
    border-color: #ee0000;
    color: #fff;
}

#attachment-consistent {
    display: none;
}

#file-info-consistent {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #aaa;
}

.contact-form-consistent .calculate-button {
    width: 100%;
    margin-top: 1rem;
}

.contact-info-list-consistent {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-list-consistent li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.contact-info-list-consistent i {
    font-size: 1.5rem;
    color: #ee0000;
    width: 30px;
    text-align: center;
}

.contact-info-list-consistent a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-list-consistent a:hover {
    color: #fff;
}

.social-links-consistent {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
}

.social-links-consistent a {
    color: #ccc;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links-consistent a:hover {
    color: #ee0000;
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .contact-grid-consistent {
        grid-template-columns: 1fr;
    }
}

/* --- YHTEYSTIEDOT-OSION UUSI TYYLI --- */
.contact-reimagined {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.contact-reimagined::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(238, 0, 0, 0.05) 0%, rgba(238, 0, 0, 0) 70%);
    z-index: 0;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header .hinnasto-title {
    text-align: center;
    font-size: 2.8rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    background-color: #1a1a1a;
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid #333;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* .contact-form-wrapper: poistettu tyhjä sääntö (ei erityisiä tyylejä tarpeen) */

.contact-form .form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background-color: #252525;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 1rem;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ee0000;
    box-shadow: 0 0 0 4px rgba(238, 0, 0, 0.2);
    background-color: #2a2a2a;
}

.contact-form textarea {
    resize: vertical;
    margin-bottom: 1.5rem;
}

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

.form-group-file .file-upload-label {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #252525;
    border: 1px solid #444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #bbb;
    width: 100%;                /* täysleveä myös mobiilissa */
    flex-wrap: wrap;             /* mahdollistaa alaspäin venymisen */
    gap: 0.5rem;
    white-space: normal;         /* sallii rivinvaihdot */
    word-break: break-word;
    overflow-wrap: anywhere;     /* erittäin pitkät nimet */
}

.form-group-file .file-upload-label.drag-over {
    background-color: #303030;
    border-color: #666;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.05), 0 0 0 4px rgba(238,0,0,0.35);
}

.form-group-file .file-upload-label .drop-hint {
    font-size: 0.95rem;
    letter-spacing: .3px;
}

.form-group-file .file-upload-label:hover {
    background-color: #333;
    border-color: #666;
    color: #fff;
}

.form-group-file .file-upload-label i {
    margin-right: 0.75rem;
    color: #ee0000;
}

/* Tiedostonimen span skaalautumaan ja rivittymään */
.form-group-file #file-label-text {
    flex: 1 1 100%;
    min-width: 0;
}

/* Pienillä näytöillä varmistetaan että ikoni pysyy ylävasemmalla ja teksti alle */
@media (max-width: 640px) {
    .form-group-file .file-upload-label i {
        margin-right: 0.5rem;
    }
    .form-group-file .file-upload-label {
        align-items: flex-start;
    }
}

.form-group-file input[type="file"] {
    display: none;
}

.file-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.file-item-info i {
    color: #00d4ff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.file-item-name {
    color: #fff;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item-size {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.file-remove-btn {
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.file-remove-btn:hover {
    background: rgba(255, 68, 68, 0.3);
    border-color: rgba(255, 68, 68, 0.5);
    transform: scale(1.05);
}

.contact-form .calculate-button {
    width: 100%;
    padding: 1.1rem;
}

.contact-info-wrapper {
    padding-left: 3rem;
    border-left: 1px solid #333;
}

.contact-info-card h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 2rem;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}

.contact-info-list i {
    font-size: 1.6rem;
    color: #ee0000;
    width: 35px;
    text-align: center;
}

.contact-info-list a {
    color: #ccc;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-info-list a:hover {
    color: #ee0000;
}

.contact-social-links {
    display: flex;
    gap: 1.5rem;
}

.contact-social-links a {
    color: #888;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-social-links a:hover {
    color: #ee0000;
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    .contact-info-wrapper {
        padding-left: 0;
        border-left: none;
        margin-top: 3rem;
        padding-top: 3rem;
        border-top: 1px solid #333;
    }
}

@media (max-width: 768px) {
    .contact-reimagined {
        padding: 4rem 1rem;
    }
    .contact-header .hinnasto-title {
        font-size: 2.2rem;
    }
    .contact-content {
        padding: 1.5rem;
    }
    .contact-form .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* --- YHTEYSTIEDOT OIKEA PUOLI UUSI TYYLI --- */
.contact-info-reimagined {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.contact-info-reimagined h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 1rem;
}

.contact-info-reimagined p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.contact-method-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: #252525;
    border: 1px solid #444;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-method-card:hover {
    background-color: #ee0000;
    border-color: #ee0000;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(238, 0, 0, 0.2);
}

.contact-method-card i {
    font-size: 2rem;
    color: #ee0000;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.contact-method-card:hover i {
    color: #fff;
}

.contact-method-card span {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

/* --- Payment Success Overlay (hidden by default) --- */
#payment-success-overlay {
    display: none; /* hidden by default */
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

#payment-success-overlay.active {
    display: flex; /* shown only when activated by JS */
}

/* --- Bank Transfer Overlay (same styling) --- */
#bank-transfer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

#bank-transfer-overlay.active {
    display: flex;
}

.payment-success-modal {
    width: 100%;
    max-width: 520px;
    background: linear-gradient(145deg, #2a2a2a, #222);
    border: 1px solid #3a3a3a;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    padding: 2rem 1.5rem;
    position: relative;
    text-align: center;
}

.close-success-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: #bbb;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.close-success-btn:hover { color: #fff; }

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 0.75rem auto;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.12);
    border: 2px solid rgba(0, 255, 136, 0.5);
    color: #00ff88;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}

.success-icon.bank-transfer-icon {
    background: rgba(102, 126, 234, 0.12);
    border: 2px solid rgba(102, 126, 234, 0.5);
    color: #667eea;
    font-size: 2rem;
}

#payment-success-title { color: #fff; margin: 0.25rem 0 0.5rem 0; }
.success-lead { color: #cfcfcf; margin: 0 0 1rem 0; }
.success-email-note { color: #9e9e9e; font-size: 0.95rem; }

.success-details {
    text-align: left;
    background: #1f1f1f;
    border: 1px solid #383838;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0 1rem 0;
}

.success-details .label { color: #bbb; display: inline-block; min-width: 130px; }
.success-details strong { color: #fff; }

.success-actions { display: flex; gap: 0.75rem; justify-content: center; margin-top: 0.75rem; flex-wrap: wrap; }
.success-primary-btn {
    background: linear-gradient(45deg, #10b981, #059669);
    color: #fff;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}
.success-primary-btn:hover { filter: brightness(1.1); }

.success-secondary-btn {
    background: linear-gradient(45deg, #4b5563, #374151);
    color: #fff;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}
.success-secondary-btn:hover { filter: brightness(1.1); }

/* Blur the main content when overlay active */
body.blur-active #main { filter: blur(6px); }

@media (max-width: 520px) {
    .payment-success-modal { padding: 1.25rem 1rem; }
    .success-details .label { min-width: 110px; }
}
