html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #faf7f5;
    color: #1f1f1f;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* HEADER */

header {
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
}

.nav {
    background: white;
    border-radius: 20px;
    padding: 20px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow:
    0 10px 30px rgba(0,0,0,0.05);
}

nav a {
    position: relative;
    margin: 0 18px;
    text-decoration: none;
    color: #444;
    font-weight: 500;
    transition: 0.3s;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #e85d75;
    border-radius: 999px;
    transition: 0.3s;
}

nav a:hover {
    color: #e85d75;
}

nav a:hover::after {
    width: 100%;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    color: #1f1f1f;
}

.logo span {
    color: #e85d75;
}

.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

/* HERO */
.hero {
    padding: 90px 0 110px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(
        circle,
        rgba(232,93,117,0.12) 0%,
        rgba(232,93,117,0) 70%
    );
    top: -250px;
    right: -150px;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(240,140,160,0.10) 0%,
        rgba(240,140,160,0) 70%
    );
    bottom: -250px;
    left: -150px;
    z-index: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
}

.hero-badge {
    display: inline-block;
    background: #fdecef;
    color: #e85d75;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #151515;
}

.hero h1 span {
    color: #e85d75;
}

.hero p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 35px;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    align-items: center;
}

.hero-buttons button {
    margin: 0;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup {
    width: 300px;
    min-height: 520px;
    background: white;
    border: 12px solid #111;
    border-radius: 42px;
    padding: 35px 22px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.18);
    text-align: center;
    animation: floatPhone 4s ease-in-out infinite;
    position: relative;
    z-index: 3;
}

.phone-title {
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 5px;
}

.phone-date {
    color: #777;
    font-size: 14px;
    margin-bottom: 35px;
}

.upload-box {
    border: 2px dashed #ddd;
    border-radius: 18px;
    padding: 55px 20px;
    color: #777;
    margin-bottom: 30px;
}

.upload-box span {
    display: block;
    margin-top: 12px;
    color: #333;
    font-weight: 500;
}

.upload-button {
    width: 100%;
    border: none;
    background: linear-gradient(135deg, #e85d75, #f08ca0);
    color: white;
    padding: 16px;
    border-radius: 14px;
    font-weight: 600;
}

/* HERO PHONE */

.product-phone {
    position: relative;

    width: 290px;

    padding: 28px 22px;

    border-radius: 42px;

    background: white;

    box-shadow:
    0 20px 60px rgba(0,0,0,.12);

    border: 8px solid #151515;

    z-index: 2;
}

.phone-header {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.phone-logo {
    font-size: 22px;
    font-weight: 800;
}

.phone-logo span {
    color: #e85d75;
}

.phone-kicker {
    text-align: center;
    color: #e85d75;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.phone-title {
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
}

.phone-date {
    text-align: center;
    color: #777;
    margin-bottom: 28px;
}

.phone-upload-area {
    height: 190px;

    border: 2px dashed #f3bfd0;

    border-radius: 28px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: #fff8fa;

    margin-bottom: 20px;

    text-align: center;
}

.phone-upload-area i {
    font-size: 34px;
    color: #e85d75;
    margin-bottom: 16px;
}

.phone-upload-area strong {
    font-size: 18px;
    margin-bottom: 8px;
}

.phone-upload-area small {
    color: #777;
}

.phone-success {
    margin-top: 18px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: #f7f7f7;

    padding: 12px;

    border-radius: 16px;

    font-weight: 600;
}

.phone-success i {
    color: #41c16f;
}

.premium-qr-card {
    position: absolute;
    scale: 0.78;
    right: -40px;
    bottom: 30px;

    transform: rotate(-10deg);

    z-index: 3;
}

.hero-photo-card {
    position: absolute;

    background: white;

    border-radius: 20px;

    padding: 14px 18px;

    display: flex;
    align-items: center;
    gap: 10px;

    box-shadow:
    0 12px 40px rgba(0,0,0,.08);

    font-weight: 600;

    z-index: 4;
}

.hero-photo-card i {
    color: #e85d75;
}

.hero-photo-card-1 {
    left: -115px;
    top: 140px;
}

.hero-photo-card-2 {
    right: -110px;
    top: 170px;
}

.hero-image {
    position: relative;
}

@media(max-width:900px){

    .hero-photo-card {
        display: none;
    }

    .premium-qr-card {
        right: 0;
        bottom: -30px;
    }

    .product-phone {
        width: 100%;
        max-width: 320px;
    }
}

/* BUTTONS */
.btn-primary {
    background: linear-gradient(135deg, #e85d75, #f08ca0);
    color: white;
    border: none;
    padding: 14px 28px;
    cursor: pointer;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
    0 10px 20px rgba(232,93,117,0.25);
}

.btn-secondary {
    background: white;
    border: 1px solid #e7e7e7;
    padding: 14px 24px;
    cursor: pointer;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    color: #222;
    transition: 0.3s;
    box-shadow:
    0 10px 25px rgba(0,0,0,0.04);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow:
    0 15px 30px rgba(0,0,0,0.08);
    border-color: #d8d8d8;
}

/* FEATURES */
.features {
    padding: 60px 0;
    text-align: center;
}

.feature-box h3 {
    font-size: 22px;
    margin-bottom: 14px;
    color: #1f1f1f;
}

.feature-box p {
    color: #666;
    line-height: 1.7;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature-box {
    background: white;
    padding: 40px 30px;
    border-radius: 28px;
    transition: 0.35s;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow:
    0 15px 40px rgba(0,0,0,0.04);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow:
    0 25px 50px rgba(0,0,0,0.08);
}

/* STEPS */

.steps{
padding:100px 0;
}

.steps-layout{
display:grid;
grid-template-columns:380px 1fr;
gap:50px;
margin-top:50px;
align-items:center;
}

.steps-list{
display:flex;
flex-direction:column;
gap:20px;
}

.step-item{
display:flex;
gap:20px;
align-items:center;
padding:22px;
background:white;
border-radius:24px;
cursor:pointer;
transition:.3s;
border:1px solid
rgba(0,0,0,.05);
}

.step-item:hover{
transform: translateY(-4px);
}

.step-item.active{
border:
2px solid
#e85d75;
}

.step-item span{
width:55px;
height:55px;
display:flex;
align-items:center;
justify-content:center;
background:
linear-gradient(
135deg,
#e85d75,
#f09aaa
);
color:white;
border-radius:18px;
font-weight:700;
}

.steps-card{
background:white;
padding:70px;
border-radius:32px;
min-height:320px;
display:flex;
flex-direction:column;
justify-content:center;
box-shadow:
0 20px 50px
rgba(0,0,0,.05);
}

.steps-card h3{
font-size:34px;
margin-bottom:20px;
}

.steps-card p{
font-size:18px;
line-height:1.8;
color:#666;
}

@media(max-width:900px){
.steps-layout{
grid-template-columns:1fr;
}
}

/* PRICING */
.pricing {
    padding: 60px 0;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-top: 12px;
    margin-bottom: 45px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.pricing-box {
    position: relative;
    background: white;
    border-radius: 30px;
    padding: 45px 35px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: 0.3s;
}

.pricing-free-plan {
    display: none;
}

.pricing-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.08);
}

.pricing-box.popular {
    border: 2px solid #e85d75;
    transform: scale(1.04);
}

.pricing-box.popular:hover {
    transform: scale(1.04) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #e85d75, #f08ca0);
    color: white;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-subtitle {
    color: #666;
    margin-bottom: 30px;
}

.pricing-box ul {
    list-style: none;
    margin-bottom: 35px;
}

.pricing-box li {
    margin-bottom: 15px;
    color: #444;
    font-weight: 500;
}

.pricing-box ul li {

line-height: 1.7;
word-break: keep-all;

}

.pricing-box {

min-height: 620px;

display: flex;

flex-direction: column;

}

.pricing-box ul {

flex: 1;

}

.price {
    font-size: 42px;
    font-weight: 700;
    margin: 20px 0 10px;
}

.pricing-grid.four-plans {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1100px) {
    .pricing-grid.four-plans {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .pricing-grid.four-plans {
        grid-template-columns: 1fr;
    }
}

/* Fotoaufgaben */
.photo-tasks-workspace {
    padding: 30px;
}

.photo-task-actions,
.photo-task-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.photo-task-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 24px 0;
    border: 1px solid #ece8e6;
    border-radius: 8px;
    overflow: hidden;
}

.photo-task-stats > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px 22px;
}

.photo-task-stats > div + div {
    border-left: 1px solid #ece8e6;
}

.photo-task-stats strong {
    font-size: 24px;
}

.photo-task-stats span,
.photo-task-status {
    color: #6f6865;
    font-size: 13px;
}

.photo-task-create {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 20px;
    margin-bottom: 18px;
    background: #faf7f6;
    border-radius: 8px;
}

.photo-task-create label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
}

.photo-task-create input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #ded8d5;
    border-radius: 6px;
    background: #fff;
    font: inherit;
}

.photo-task-filter {
    margin-bottom: 16px;
}

.photo-task-filter button {
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid #ded8d5;
    border-radius: 6px;
    background: #fff;
    color: #3d3937;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.photo-task-filter button.active {
    border-color: #eb5d78;
    background: #fce8ed;
    color: #d94765;
}

.photo-task-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.photo-task-card {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 12px;
    align-items: start;
    min-height: 96px;
    padding: 16px;
    border: 1px solid #e7e1de;
    border-radius: 8px;
    background: #fff;
}

.photo-task-card.status-completed {
    border-color: #c9dfd0;
    background: #f7fbf8;
}

.photo-task-card.status-reserved {
    border-color: #ead8a9;
    background: #fffbf1;
}

.photo-task-number,
.guest-photo-task-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fce8ed;
    color: #d94765;
    font-size: 12px;
    font-weight: 800;
}

.photo-task-content {
    display: grid;
    gap: 7px;
    padding-top: 5px;
    line-height: 1.4;
}

.photo-task-release {
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9a6b00;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.photo-task-delete {
    width: 36px;
    height: 36px;
}

.photo-task-result {
    grid-column: 1 / -1;
    min-height: 170px;
    overflow: hidden;
    border-radius: 6px;
    background: #eee;
}

.photo-task-result img,
.photo-task-result video {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.guest-photo-tasks {
    margin: 22px 0 18px;
    border: 1px solid #efd9df;
    border-radius: 8px;
    background: #fff9fa;
    text-align: left;
}

.guest-photo-task-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
}

.guest-photo-task-header > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.guest-photo-task-header span {
    color: #756d69;
    font-size: 12px;
}

.guest-photo-task-list {
    display: grid;
    gap: 8px;
    max-height: 290px;
    padding: 0 12px 12px;
    overflow-y: auto;
}

.guest-photo-task-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 10px;
    border: 1px solid #eee6e3;
    border-radius: 6px;
    background: #fff;
    color: #241f1d;
    font: inherit;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.guest-photo-task-card:hover {
    border-color: #eb5d78;
    background: #fff6f8;
}

.guest-photo-task-card > i {
    color: #eb5d78;
}

.selected-photo-task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0;
    padding: 14px 16px;
    border-left: 4px solid #eb5d78;
    border-radius: 6px;
    background: #fce8ed;
    text-align: left;
}

.selected-photo-task[hidden] {
    display: none;
}

.selected-photo-task > div {
    display: grid;
    gap: 3px;
}

.selected-photo-task span {
    color: #7d656b;
    font-size: 12px;
}

@media (max-width: 800px) {
    .photo-tasks-workspace {
        padding: 20px;
    }

    .photo-task-grid {
        grid-template-columns: 1fr;
    }

    .photo-task-create {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .photo-task-actions > button,
    .photo-task-create > button {
        width: 100%;
    }

    .photo-task-stats > div {
        padding: 14px 10px;
        text-align: center;
    }

    .photo-task-stats strong {
        font-size: 20px;
    }
}

/* FAQ */
.faq {
    padding: 80px 0;
    text-align: center;
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: white;
    border-radius: 22px;
    margin-bottom: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 24px 28px;
    text-align: left;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s;
}

.faq-answer p {
    padding: 0 28px 24px;
    color: #666;
    line-height: 1.7;
    text-align: left;
}

.faq-item.active .faq-answer {
    max-height: 260px;
}

/* FOOTER */
footer {
    margin-top: 40px;
    padding: 60px 0 25px;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 45px;
    align-items: flex-start;
}

.footer-brand p {
    margin-top: 16px;
    color: #666;
    line-height: 1.7;
    max-width: 360px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column h4 {
    margin-bottom: 8px;
    color: #1f1f1f;
}

.footer-column a,
.footer-socials a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: 0.3s;
}

.footer-column a:hover,
.footer-socials a:hover {
    color: #e85d75;
}

.footer-socials {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

.footer-socials a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #faf7f5;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
}

.footer-bottom {
    text-align: center;
    color: #777;
    font-size: 14px;
    margin-top: 45px;
}

.legal-page {

padding:120px 20px;

min-height:100vh;

background:
#faf7f5;

}

.legal-container{

max-width:900px;

margin:auto;

background:white;

padding:60px;

border-radius:32px;

}

.legal-container h1{

margin:
35px 0;

}

.legal-container h2{

margin:
30px 0 10px;

}

.legal-container p{

line-height:1.8;

margin-bottom:15px;

}

/* Kontaktformular Footer */

.contact-form {
    display: grid;
    gap: 16px;
    margin-top: 30px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #eee;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #e85d75;
    box-shadow: 0 0 0 4px rgba(232,93,117,0.10);
}

.contact-form textarea {
    resize: vertical;
}

.legal-back-link {
    display: inline-block;
    margin-top: 25px;
    color: #e85d75;
    font-weight: 600;
    text-decoration: none;
}

/* ENDE */

/* Dashboard */

.gallery-preview {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.empty-state {
    display: none;
    text-align: center;
    padding: 50px 25px;
    border-radius: 28px;
    background: #faf7f5;
    color: #666;
}

.empty-state i {
    font-size: 44px;
    color: #e85d75;
    margin-bottom: 18px;
}

.empty-state h3 {
    color: #1f1f1f;
    margin-bottom: 10px;
}

.gallery-image {
    flex: 1;
    height: 70px;
    border-radius: 14px;

    background-size: cover;
    background-position: center;

    box-shadow: inset 0 0 20px rgba(255,255,255,0.25);
}

.gallery-image:nth-child(1) {
    background: linear-gradient(135deg, #f6c1cc, #e85d75);
}

.gallery-image:nth-child(2) {
    background: linear-gradient(135deg, #f8d7df, #f1a5b5);
}

.gallery-image:nth-child(3) {
    background: linear-gradient(135deg, #f2b6c4, #d94b66);
}

.qr-card {
    position: absolute;
    z-index: 6;
    right: -30px;
    bottom: 30px;

    width: 140px;

    background: white;

    padding: 18px;

    border-radius: 24px;

    box-shadow:
    0 20px 40px rgba(0,0,0,0.12);

    transform: rotate(-8deg);
}

.fake-qr {
    width: 100%;
    aspect-ratio: 1;

    border-radius: 12px;

    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;

    background: white;
    padding: 6px;
}

.fake-qr div {
    background: #111;
    border-radius: 2px;
}

.qr-card p {
    text-align: center;
    font-weight: 600;
    color: #444;
}

@keyframes floatPhone {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}

.play-icon {
    margin-right: 10px;
    font-size: 12px;
}

.feature-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    border-radius: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #fdecef,
        #f8d7df
    );

    color: #e85d75;

    font-size: 28px;
}

/* Responsive */
@media (max-width: 900px) {

    .nav {
        padding: 18px 22px;
    }

    nav {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background: white;
        padding: 25px;
        border-radius: 24px;
        box-shadow:
        0 20px 50px rgba(0,0,0,0.08);
    }

    nav.active {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .step-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-box.popular {
        transform: none;
    }

    .pricing-box.popular:hover {
        transform: translateY(-10px);
    }

    .footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .phone-mockup {
        width: 280px;
    }

    .qr-card {
        right: -10px;
    }
    
    .nav .btn-primary {
    display: none;
    }
}

@media (max-width: 600px) {

    .container {
        width: 92%;
    }

    .logo {
        font-size: 34px;
    }

    .nav {
        padding: 18px;
        border-radius: 22px;
    }

    .nav .btn-primary {
        padding: 14px 20px;
        font-size: 15px;
    }

    .hero {
        padding: 45px 0 70px;
    }

    .hero-badge {
        font-size: 14px;
        padding: 10px 16px;
    }

    .hero h1 {
        font-size: 34px;
        line-height: 1.12;
        max-width: 100%;
    }

    .hero p {
        font-size: 17px;
        line-height: 1.7;
    }

    .hero-buttons {
        gap: 14px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 14px 20px;
        font-size: 15px;
    }

    .phone-mockup {
        width: 260px;
        min-height: 480px;
    }

    .qr-card {
        width: 115px;
        right: -5px;
        bottom: 35px;
    }
}

/* Button to the top */
.scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        #e85d75,
        #f08ca0
    );
    color: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow:
    0 15px 35px rgba(232,93,117,0.35);
    transition: 0.3s;
    z-index: 999;
}

.scroll-top:hover {
    transform: translateY(-4px);
}

/* UPLOAD PAGE */

.upload-page {
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(232,93,117,0.16), transparent 35%),
                #faf7f5;
}

.upload-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.upload-card {
    width: 100%;
    max-width: 520px;
    background: white;
    border-radius: 34px;
    padding: 45px 35px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.08);
}

.upload-logo {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 30px;
}

.upload-logo span {
    color: #e85d75;
}

.upload-kicker {
    color: #e85d75;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-card h1 {
    font-size: 42px;
    margin-bottom: 8px;
}

.upload-date {
    color: #777;
    margin-bottom: 20px;
}

.upload-text {
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #e9c9d1;
    border-radius: 26px;
    padding: 45px 25px;
    margin-bottom: 25px;
    cursor: pointer;
    background: #fff8fa;
    transition: 0.3s;
}

.upload-area:hover {
    border-color: #e85d75;
    background: #fdecef;
}

.upload-area i {
    font-size: 42px;
    color: #e85d75;
    margin-bottom: 16px;
}

.upload-area span {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
}

.upload-area small {
    color: #777;
}

#fileInput {
    display: none;
}

.upload-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: -8px 0 22px;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

.upload-consent input {
    margin-top: 3px;
}

.upload-consent a {
    color: #e85d75;
    font-weight: 600;
}

.upload-submit {
    width: 100%;
    margin-bottom: 25px;
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.preview-item {
    aspect-ratio: 1;
    border-radius: 18px;
    overflow: hidden;
    background: #f4f4f4;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        #f6c1cc,
        #e85d75
    );
    color: white;
    font-size: 28px;
}

.preview-item {
    position: relative;
}

.remove-file {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.65);
    color: white;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.upload-success {
    margin-top: 25px;
    background: #e8f8ee;
    color: #1c8c4c;
    padding: 24px;
    border-radius: 22px;
    font-weight: 600;
    display: none;
    text-align: center;
}

.upload-success h3 {
    margin-bottom: 10px;
}

.upload-success p {
    color: #2e6f4a;
    line-height: 1.6;
    margin-bottom: 18px;
}

.upload-success .btn-secondary {
    background: white;
}

.upload-progress {
    width: 100%;
    height: 12px;
    background: #f1f1f1;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 10px;
}

.upload-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(
        135deg,
        #e85d75,
        #f08ca0
    );
    transition: width 0.2s;
}

.guest-name-input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #eee;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    margin-bottom: 18px;
}

.guest-name-input:focus {
    border-color: #e85d75;
    box-shadow: 0 0 0 4px rgba(232,93,117,0.10);
}

/* DASHBOARD */

.dashboard-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #faf7f5;
}

.dashboard-sidebar {
    background: white;
    padding: 35px 25px;
    border-right: 1px solid rgba(0,0,0,0.05);
    display:flex;
    flex-direction:column;
}

.dashboard-logo {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 45px;
}

.dashboard-logo span {
    color: #e85d75;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
}

.dashboard-nav a.active,
.dashboard-nav a:hover {
    background: #fdecef;
    color: #e85d75;
}

.dashboard-content {
    padding: 45px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.dashboard-kicker {
    color: #e85d75;
    font-weight: 600;
}

.dashboard-header h1 {
    font-size: 42px;
}

.dashboard-date {
    color: #666;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.dashboard-card,
.dashboard-panel {
    background: white;
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.04);
}

.dashboard-card i {
    font-size: 30px;
    color: #e85d75;
    margin-bottom: 18px;
}

.dashboard-card h3 {
    font-size: 34px;
}

.dashboard-card p,
.dashboard-panel p {
    color: #666;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.dashboard-link-box {
    background: #faf7f5;
    padding: 18px;
    border-radius: 16px;
    margin: 22px 0;
    color: #555;
    word-break: break-all;
}

.qr-panel {
    text-align: center;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.dashboard-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.dashboard-gallery > div {
    aspect-ratio: 1;
    border-radius: 18px;
    background: #f4f4f4;
}

.copy-toast {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: #1f1f1f;
    color: white;
    padding: 16px 22px;
    border-radius: 16px;
    font-weight: 600;
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: 0.3s;
    z-index: 9999;
}

.copy-toast.active {
    opacity: 1;
    transform: translateY(0);
}

.gallery-file {
    aspect-ratio: 1;
    border-radius: 18px;
    overflow: hidden;
    background: #f4f4f4;
    cursor: pointer;
    transition: .25s;
    position:relative;
    overflow: hidden;
}

.gallery-file:hover {
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.gallery-file img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-file video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111;
}

.gallery-download{
position:absolute;
top:14px;
right:14px;
width:42px;
height:42px;
border:none;
border-radius:50%;
background:
rgba(
255,
255,
255,
.92
);
cursor:pointer;
font-size:18px;
opacity:0;
transition:.25s;
}

.uploaded-by-badge {
    position: absolute;

    left: 10px;
    bottom: 10px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: auto;
    height: auto;

    min-width: unset;
    min-height: unset;
    max-width: fit-content;

    padding: 6px 10px;

    background: rgba(0,0,0,.72);

    color: white;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 600;

    line-height: 1;

    white-space: nowrap;

    opacity: 0;

    transition: opacity .25s;

    z-index: 20;

    transform: none;
}

.gallery-file:hover .uploaded-by-badge {
    opacity: 1;
}

.gallery-file:focus-within .uploaded-by-badge {
    opacity: 1;
}

@media (max-width: 768px) {
    .uploaded-by-badge {
        opacity: 1;
    }
}

.gallery-file:hover
.gallery-download{
opacity:1;
}

.gallery-delete {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #e85d75;
    cursor: pointer;
    opacity: 0;
    transition: .25s;
}

.gallery-file:hover .gallery-delete {
    opacity: 1;
}

.gallery-filters {
    display: flex;
    gap: 14px;
    margin: 22px 0;
}

.gallery-filters select {
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid #eee;
    font-family: inherit;
    cursor: pointer;
    background: white;
}

@media (max-width: 768px) {
    .gallery-filters {
        flex-direction: column;
    }
}

.video-tile {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f6c1cc, #e85d75);
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
}

.video-tile i {
    font-size: 34px;
}

.dashboard-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111;
    border-radius: 18px;
}

.dashboard-qr {
    width: 160px;
    height: 160px;
    margin: 25px auto;
    background: white;
    padding: 10px;
    border-radius: 18px;
}

.dashboard-qr img {
    width: 100%;
    height: 100%;
}

.settings-panel {
    margin-top: 30px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 25px;
}

.settings-item {
    background:#faf7f5;
    border-radius:22px;
    padding:30px;
}

.settings-item h3 {
    margin-bottom: 8px;
}

.settings-item p {
    margin-bottom: 24px;
    line-height: 1.6;
}

#currentPackageBadge{
    display:inline-flex;

    padding:12px 18px;

    border-radius:999px;

    background:#ffe5ea;

    color:#e85d75;

    font-weight:700;

    font-size:15px;
}

.package-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

#packageInfoButton {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
}

.package-details {
    display: none;
    background: white;
    padding: 18px;
    border-radius: 18px;
    margin-bottom: 18px;
    line-height: 1.7;
    color: #555;
}

.package-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.package-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.package-modal.active {
    display: flex;
}

.package-modal-content {
    position: relative;
    width: min(1100px, 100%);
    background: white;
    border-radius: 32px;
    padding: 45px;
}

.package-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    background: #faf7f5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
}

.package-compare-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.package-compare-card {
    background: #faf7f5;
    border-radius: 24px;
    padding: 24px;
}

.package-compare-card.popular {
    border: 2px solid #e85d75;
}

.package-compare-card strong {
    display: block;
    font-size: 30px;
    margin: 12px 0;
}

@media(max-width:900px){
    .package-compare-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

.settings-item input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #eee;
    font-family: inherit;
    margin-bottom: 12px;
    outline: none;
}

.settings-item input:focus {
    border-color: #e85d75;
    box-shadow: 0 0 0 4px rgba(232,93,117,0.10);
}

.sidebar-logout{
    width:calc(100% - 32px);
    margin-left:16px;
    margin-right:16px;

    margin-top:auto;

    display:flex;
    align-items:center;
    gap:14px;

    padding:18px 20px;

    border:none;
    border-radius:18px;

    background:#faf7f5;
    color:#555;

    font-size:18px;
    font-weight:600;

    cursor:pointer;
    transition:.3s;
}

.sidebar-logout:hover{
    background:#fdecef;
    color:#e85d75;
}

/* CREATE WEDDING PAGE */

.create-page {
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(232,93,117,0.16), transparent 35%),
                #faf7f5;
}

.create-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.create-card {
    width: 100%;
    max-width: 560px;
    background: white;
    border-radius: 34px;
    padding: 45px 35px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.08);
}

.create-kicker {
    color: #e85d75;
    font-weight: 600;
    margin-bottom: 8px;
}

.create-card h1 {
    font-size: 40px;
    margin-bottom: 16px;
}

.create-text {
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
}

.create-form {
    display: grid;
    gap: 16px;
}

.create-form input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #eee;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

.create-form input:focus {
    border-color: #e85d75;
    box-shadow: 0 0 0 4px rgba(232,93,117,0.10);
}

.create-button {
    width: 100%;
    margin-top: 8px;
}

.create-result {
    margin-top: 25px;
    display: none;
    background: #faf7f5;
    border-radius: 22px;
    padding: 22px;
    text-align: left;
    color: #444;
}

.date-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.date-field label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.create-form select{
    width:100%;

    padding:16px 55px 16px 18px;

    border-radius:16px;
    border:1px solid #eee;

    font-family:inherit;
    font-size:15px;

    outline:none;

    background:white;

    cursor:pointer;

    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;

    background-image:url(
    "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"
    );

    background-repeat:no-repeat;

    background-position:
    right 20px center;
}

.create-form select:hover{
border-color:#e85d75;
}

/* AUTH */

.auth-page {
    min-height: 100vh;
    background:
    radial-gradient(
        circle at top right,
        rgba(232,93,117,0.16),
        transparent 35%
    ),#faf7f5;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 520px;
    background: white;
    padding: 45px 35px;
    border-radius: 34px;
    box-shadow:
    0 30px 80px rgba(
        0,0,0,0.08
    );
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-card h1 {
    font-size: 38px;
}

.auth-card input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #eee;
    font-family: inherit;
    outline: none;

}

.auth-card input:focus {

    border-color:#e85d75;
    box-shadow:
    0 0 0 4px
    rgba(
        232,
        93,
        117,
        0.10
    );

}

.auth-button {
    width: 100%;
}

.auth-switch {
    color: #666;
}

.auth-switch a {
    color: #e85d75;
    font-weight: 600;
    text-decoration: none;
}

.auth-message {

    display: none;
    padding: 16px;
    border-radius: 18px;
    background:#e8f8ee;
    color:#1c8c4c;
}

.auth-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-name-row input {
    width: 100%;
}

/* Dashboard Responsive */

.mobile-header {
    display: none;
}

.sidebar-overlay {
    display: none;
}

@media (max-width: 768px) {

    .dashboard-page {
        display: block;
    }

    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 68px;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 18px;
        z-index: 999;
        box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    }

    .mobile-menu-btn {
        position: absolute;
        left: 18px;
        background: none;
        border: none;
        font-size: 28px;
        color: #e85d75;
        cursor: pointer;
    }

    .mobile-header .dashboard-logo {
        font-size: 28px;
        margin: 0;
    }

    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 1001;
        padding: 30px;
        transition: 0.3s;
        box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    }

    .dashboard-sidebar.open {
        left: 0;
    }

    .dashboard-sidebar .dashboard-logo {
        font-size: 30px;
        margin-bottom: 35px;
    }

    .dashboard-nav {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .dashboard-content {
        padding: 95px 18px 40px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .dashboard-header h1 {
        font-size: 34px;
        line-height: 1.15;
    }

    .dashboard-date {
        font-size: 18px;
    }

    .dashboard-header .btn-primary {
        width: 100%;
    }

    .dashboard-grid,
    .dashboard-main-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card,
    .dashboard-panel {
        padding: 26px;
        border-radius: 26px;
    }

    .dashboard-gallery {
        grid-template-columns: 1fr;
    }
}

/* Lightbox Gallerie */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;

    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {

display:flex;

flex-direction:column;

align-items:center;

justify-content:center;

width:100%;

height:100%;

}

.lightbox-content img,
.lightbox-content video{

max-width:85vw;

max-height:70vh;

border-radius:24px;

object-fit:contain;

}

.lightbox-close,
.lightbox-arrow {
    position: absolute;
    border: none;
    background: white;
    color: #111;
    cursor: pointer;

    width: 52px;
    height: 52px;
    border-radius: 50%;

    font-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    top: 30px;
    right: 30px;
}

.lightbox-prev {
    left: 35px;
}

.lightbox-next {
    right: 35px;
}

@media (max-width: 768px) {
    .lightbox-arrow {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
    }
}

.slideshow-controls{

display:flex;

justify-content:center;

gap:14px;

align-items:center;

margin-top:20px;

}

.slideshow-controls button,
.slideshow-controls select{

border:none;

padding:14px 18px;

border-radius:18px;

background:white;

cursor:pointer;

font-size:16px;

}

.slideshow-progress {
    width: 100%;
    height: 5px;
    margin-top: 18px;
    background: rgba(255,255,255,.2);
    border-radius: 999px;
    overflow: hidden;
}

.slideshow-ui {
    width: min(85vw, 900px);
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#slideshowProgressBar{
width:0;
height:100%;
background:white;
transition:
width linear;
}

/* Download all Button */

#downloadAllButton {
    margin-top: 18px;
}

/* Login Page */

.forgot-password {
    text-align: right;
    color: #e85d75;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.password-field {
    position: relative;
    width: 100%;
}

.password-field input {
    padding-right: 52px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);

    border: none;
    background: transparent;
    color: #777;

    cursor: pointer;
    font-size: 16px;
}

.toggle-password:hover {
    color: #e85d75;
}

/* ADMIN */

.admin-page {
    min-height: 100vh;
    background: #faf7f5;
    padding: 50px 20px;
}

.admin-container {
    max-width: 1200px;
    margin: auto;
}

.admin-container h1 {
    font-size: 42px;
    margin: 30px 0;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 35px;
}

#adminWeddingList {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

#adminWeddingList div {
    background: #faf7f5;
    padding: 16px 18px;
    border-radius: 16px;
    color: #555;
    font-weight: 600;
}

@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-container h1 {
        font-size: 34px;
    }
}

.package-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 22px;
}

.package-stat {
    background: #faf7f5;
    border-radius: 18px;
    padding: 20px;
    font-weight: 700;
}

.admin-table {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.admin-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: center;
    background: #faf7f5;
    padding: 16px 18px;
    border-radius: 16px;
    font-weight: 600;
}

.admin-row span {
    color: #555;
}

.admin-row a {
    text-decoration: none;
    color: white;
    background: #e85d75;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
}

@media(max-width:900px){
    .package-stats {
        grid-template-columns: 1fr 1fr;
    }

    .admin-row {
        grid-template-columns: 1fr;
    }
}

/* Smooth scroll Index Page */

html {
    scroll-behavior: smooth;
}


/* WeddyPix application enhancements */
[hidden] { display: none !important; }

.app-toast-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 5000;
    display: grid;
    gap: 10px;
    width: min(380px, calc(100vw - 40px));
}

.app-toast {
    padding: 14px 16px;
    border-left: 4px solid #555;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
    opacity: 0;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.app-toast.active { opacity: 1; transform: translateY(0); }
.app-toast-success { border-color: #2f855a; }
.app-toast-error { border-color: #c53030; }
.app-toast-warning { border-color: #b7791f; }
.app-toast-info { border-color: #3182ce; }

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    color: #222;
    cursor: pointer;
}

.icon-button:hover { border-color: #e85d75; color: #e85d75; }
.icon-button.danger, .btn-danger { color: #b42318; }

.btn-danger {
    padding: 12px 18px;
    border: 1px solid #f0b4ae;
    border-radius: 6px;
    background: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.simple-state {
    min-height: 100vh;
    display: grid;
    place-content: center;
    gap: 10px;
    padding: 30px;
    text-align: center;
}

.upload-card { width: min(620px, 100%); }

.upload-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 8px 0 12px;
    text-align: left;
}

.upload-summary div { display: grid; }
.upload-summary span { color: #777; font-size: 13px; }
.upload-retry { padding: 9px 12px; font-size: 12px; }

.upload-file-list {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.upload-file-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 6px 8px;
    border: 1px solid #ececec;
    border-radius: 7px;
    background: #fff;
}

.upload-file-row.status-success { border-color: #9fd5b4; }
.upload-file-row.status-error { border-color: #efaaa4; }

.upload-file-thumb {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    overflow: hidden;
    border-radius: 6px;
    background: #f4f4f4;
    color: #e85d75;
}

.upload-file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-file-info { min-width: 0; display: grid; text-align: left; }
.upload-file-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.upload-file-info span { color: #777; font-size: 12px; }
.upload-progress { overflow: hidden; }

.quota-track {
    width: 100%;
    height: 6px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 3px;
    background: #f0e5e7;
}

.quota-track div { width: 0; height: 100%; background: #e85d75; transition: width 0.25s ease; }

.gallery-command-row, .qr-actions, .admin-tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-command-row { align-items: stretch; }

.gallery-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    margin: 0;
    padding: 0 20px;
    line-height: 1;
}

.qr-actions {
    align-items: stretch;
    width: min(100%, 390px);
}

.qr-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1 1 0;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 0 12px;
    line-height: 1;
}

.gallery-filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, auto)) auto;
    gap: 10px;
    margin: 22px 0 14px;
}

.gallery-filter-bar select,
.gallery-filter-bar input,
.qr-editor select,
.qr-editor textarea,
.settings-item input,
.settings-item textarea,
.admin-wedding-row select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #dedede;
    border-radius: 6px;
    background: #fff;
    font: inherit;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #dedede;
    border-radius: 6px;
    background: #fff;
}

.search-field input { min-width: 0; padding: 0; border: 0; outline: 0; }

.compact-toggle, .settings-switch {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.compact-toggle input, .settings-switch input { width: 18px; height: 18px; }

.selection-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid #f0ccd3;
    border-radius: 7px;
    background: #fff7f8;
}

.selection-toolbar strong { margin-right: auto; }

.enhanced-gallery-file {
    position: relative;
    min-width: 0;
    aspect-ratio: 1;
    border-radius: 7px;
    background: #f5f5f5;
}

.enhanced-gallery-file > img,
.enhanced-gallery-file > video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-select {
    position: absolute;
    top: 10px;
    left: 10px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.94);
}

.gallery-select input { width: 17px; height: 17px; }

.gallery-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.94);
}

.gallery-favorite.active { color: #e85d75; }

.gallery-file-meta {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    overflow: hidden;
    padding: 6px 8px;
    border-radius: 5px;
    background: rgba(17, 17, 17, 0.72);
    color: #fff;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-info-text {
    margin: 8px 0 18px;
    color: #666;
    line-height: 1.6;
}

#upgradePackageButton,
#comparePackagesButton {
    width: 100%;
    margin-top: 10px;
}

.package-current-label {
    display: block;
    margin-top: 14px;
    color: #666;
    font-size: 12px;
    font-weight: 600;
}

.package-upgrade-action {
    width: 100%;
    margin-top: 14px;
}

.admin-upgrade-request {
    margin-top: 4px;
    color: #c63f58 !important;
    font-weight: 600;
}

.load-more-button { display: block; margin: 22px auto 0; }

.qr-editor { display: grid; gap: 14px; margin-top: 25px; }
.qr-editor label, .settings-item label { display: grid; gap: 6px; color: #555; font-size: 13px; }

.qr-card-preview {
    display: grid;
    justify-items: center;
    gap: 12px;
    width: min(100%, 390px);
    padding: 32px;
    border: 5px solid #e85d75;
    border-radius: 7px;
    background: #fff8fa;
    color: #111;
    margin-bottom: 15px;
}

.qr-card-preview.theme-floral { border-color: #497a5a; background: #f7fbf7; color: #20372a; }
.qr-card-preview.theme-minimal { border-color: #111; background: #fff; }
.qr-card-preview strong { font-size: 22px; text-align: center; }
.qr-card-preview p { margin: 0; text-align: center; }
.qr-card-preview .dashboard-qr { padding: 12px; background: #fff; }

.settings-switch {
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.settings-switch span { display: grid; }
.settings-switch small { color: #777; }

.admin-header, .admin-tools-panel {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.admin-tools-panel { flex-wrap: wrap; }
.admin-status { width: 100%; color: #555; }
.admin-search { width: min(380px, 100%); }

.enhanced-admin-table { display: grid; gap: 8px; }

.admin-wedding-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) 150px 120px 130px auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 7px;
    background: #fff;
}

.admin-wedding-identity { display: grid; min-width: 0; }
.admin-wedding-identity strong, .admin-wedding-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-wedding-identity small { color: #777; }
.admin-row-actions { display: flex; gap: 7px; justify-content: flex-end; }
.admin-empty { padding: 30px; text-align: center; color: #777; }
.package-stat { display: grid; gap: 2px; }
.package-stat strong { font-size: 24px; }

/* Premium landing page refresh */
body {
    background: #f7f3ef;
    color: #171717;
}

.container {
    max-width: 1180px;
}

header {
    padding: 18px 0 0;
    background: rgba(247, 243, 239, 0.86);
    border-bottom: 1px solid rgba(23, 23, 23, 0.06);
}

.nav {
    padding: 16px 22px;
    border: 1px solid rgba(23, 23, 23, 0.08);
    border-radius: 8px;
    box-shadow: 0 18px 55px rgba(45, 34, 29, 0.08);
}

.logo {
    letter-spacing: 0;
}

nav a {
    color: #3f3a36;
    font-size: 14px;
}

.menu-toggle {
    color: transparent;
    font-size: 0;
}

.menu-toggle::before {
    content: "\f0c9";
    color: #171717;
    font-family: "Font Awesome 6 Free";
    font-size: 24px;
    font-weight: 900;
}

.hero {
    min-height: calc(100vh - 92px);
    padding: 74px 0 92px;
    background:
        linear-gradient(120deg, rgba(247, 243, 239, 0.98) 0%, rgba(247, 243, 239, 0.9) 42%, rgba(255, 248, 250, 0.4) 100%),
        #f7f3ef;
}

.hero::before,
.hero::after {
    display: none;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
    gap: 54px;
}

.hero-text {
    align-self: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    padding: 9px 13px;
    border: 1px solid rgba(232, 93, 117, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    color: #bf4058;
    box-shadow: 0 14px 36px rgba(45, 34, 29, 0.06);
}

.hero h1 {
    max-width: 660px;
    margin-bottom: 24px;
    color: #111;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.02;
}

.hero h1 span {
    display: block;
    color: #e85d75;
}

.hero p {
    max-width: 620px;
    color: #4f4843;
    font-size: 18px;
    line-height: 1.75;
}

.hero-link-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 620px;
    margin-top: 34px;
}

.hero-proof div {
    padding: 16px 14px;
    border: 1px solid rgba(23, 23, 23, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
}

.hero-proof strong,
.hero-proof span {
    display: block;
}

.hero-proof strong {
    margin-bottom: 3px;
    font-size: 14px;
}

.hero-proof span {
    color: #69605a;
    font-size: 12px;
}

.hero-visual {
    position: relative;
    min-height: 620px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 34px 90px rgba(38, 28, 24, 0.18);
}

.hero-visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.02), rgba(17, 17, 17, 0.34));
    pointer-events: none;
}

.hero-glass-panel,
.hero-qr-pill {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 54px rgba(17, 17, 17, 0.18);
}

.hero-glass-panel {
    right: 24px;
    bottom: 24px;
    width: min(360px, calc(100% - 48px));
    padding: 20px;
}

.hero-upload-row {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 16px;
}

.hero-upload-row i {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e85d75;
    color: #fff;
}

.hero-upload-row strong,
.hero-upload-row span {
    display: block;
}

.hero-upload-row span {
    color: #665e59;
    font-size: 13px;
}

.hero-mini-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 18px;
}

.hero-mini-gallery span {
    height: 58px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(232, 93, 117, 0.42), rgba(255, 255, 255, 0.18)),
        #d9c3bb;
}

.hero-qr-pill {
    top: 24px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    color: #171717;
    font-weight: 700;
}

@media (max-width: 980px) {
    .hero {
        min-height: auto;
        padding: 52px 0 72px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-text {
        text-align: left;
    }

    .hero p {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-visual,
    .hero-visual img {
        min-height: 460px;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-proof {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-buttons .btn-primary,
    .hero-link-button {
        justify-content: center;
        width: 100%;
    }

    .hero-visual,
    .hero-visual img {
        min-height: 390px;
    }

    .hero-glass-panel {
        right: 14px;
        bottom: 14px;
        width: calc(100% - 28px);
    }

    .hero-qr-pill {
        top: 14px;
        right: 14px;
    }
}

/* Landing page layout fixes */
.hero-content {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
}

.hero-visual {
    width: 100%;
    max-width: 640px;
    justify-self: end;
}

.hero-visual img {
    max-width: 100%;
}

.steps-section {
    padding: 90px 0;
}

.steps-layout {
    align-items: stretch;
}

.steps-card {
    justify-content: flex-start;
    padding: 34px;
    border-radius: 8px;
}

.steps-card h3 {
    font-size: 30px;
}

.steps-card p {
    max-width: 760px;
}

.steps-visual-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr;
    gap: 14px;
    margin-top: 28px;
}

.steps-visual-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f7f3ef;
}

.steps-visual-card.large {
    min-height: 240px;
}

.steps-visual-card.large img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    object-position: 50% 50%;
    transition: object-position 0.35s ease;
}

.steps-visual-card.large::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.03), rgba(17, 17, 17, 0.58));
}

.steps-visual-card.large div {
    position: absolute;
    z-index: 1;
    right: 18px;
    bottom: 18px;
    left: 18px;
    color: #fff;
}

.steps-visual-card.large span {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.steps-visual-card.large strong {
    display: block;
    font-size: 22px;
    line-height: 1.2;
}

.steps-visual-card.small {
    display: grid;
    min-height: 240px;
    align-content: center;
    justify-items: center;
    gap: 16px;
    padding: 22px;
    border: 1px solid rgba(232, 93, 117, 0.16);
    background:
        linear-gradient(135deg, rgba(232, 93, 117, 0.12), rgba(255, 255, 255, 0.82)),
        #fff;
    text-align: center;
}

.steps-visual-card.small i {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e85d75;
    color: #fff;
    font-size: 23px;
}

.steps-visual-card.small span {
    font-weight: 700;
}

.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.pricing-box {
    min-height: 560px;
    border-radius: 8px;
}

.pricing-free-plan {
    display: none !important;
}

@media (max-width: 1050px) {
    .steps-visual-grid {
        grid-template-columns: 1fr 1fr;
    }

    .steps-visual-card.large {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .hero-visual {
        justify-self: center;
        max-width: 100%;
    }

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

@media (max-width: 640px) {
    .steps-card {
        padding: 24px;
    }

    .steps-visual-grid {
        grid-template-columns: 1fr;
    }

    .steps-visual-card.small,
    .steps-visual-card.large,
    .steps-visual-card.large img {
        min-height: 180px;
    }
}

@media (max-width: 1100px) {
    .gallery-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search-field { grid-column: 1 / -1; }
    .admin-wedding-row { grid-template-columns: minmax(200px, 1fr) 140px 110px; }
    .admin-status-toggle, .admin-row-actions { justify-self: start; }
}

@media (max-width: 700px) {
    .app-toast-container { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
    .gallery-filter-bar { grid-template-columns: 1fr; }
    .search-field { grid-column: auto; }
    .gallery-command-row, .qr-actions, .admin-tool-actions { width: 100%; }
    .gallery-command-row button, .qr-actions button, .admin-tool-actions button { flex: 1 1 100%; }
    .selection-toolbar > * { flex: 1 1 100%; }
    .selection-toolbar .icon-button { flex: 0 0 38px; }
    .admin-header, .admin-tools-panel { display: grid; }
    .admin-wedding-row { grid-template-columns: 1fr; }
    .admin-row-actions { justify-content: flex-start; }
    .upload-file-row { grid-template-columns: 48px minmax(0, 1fr) 38px; }
    .upload-file-thumb { width: 48px; height: 48px; }
}
