* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #fff8ef;
    color: #2b1a1a;
    padding-top: 112px;
    padding-bottom: 48px;
}

main {
    flex: 1 0 auto;
}

/* HEADER */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    border-bottom: 4px solid #c9993a;
    box-shadow: 0 6px 20px rgba(201,153,58,0.28);
}

.top-header::after {
    content: "";
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f1d99b, #c9993a, #f1d99b, transparent);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 14px;
}

.brand img {
    height: 76px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-name {
    color: #7a1020;
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: bold;
}

.brand-tagline {
    color: #b6862e;
    font-size: 13px;
    margin-top: 6px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav a {
    color: #7a1020;
    text-decoration: none;
    font-weight: 600;
}

.main-nav a:hover,
.main-nav a.active {
    color: #c9993a;
}

.main-nav a.active::after {
    content: "";
    display: block;
    height: 3px;
    background: #c9993a;
    margin-top: 6px;
    border-radius: 2px;
}

/* BUTTONS */
.btn,
button,
.btn-primary {
    background: #7a1020;
    color: #ffffff;
    padding: 12px 26px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
    font-weight: 600;
    cursor: pointer;
}

.btn:hover,
button:hover,
.btn-primary:hover {
    background: #c9993a;
}

.btn-gold {
    background: #c9993a;
}

.btn-gold:hover {
    background: #7a1020;
}

.btn-outline {
    display: inline-block;
    padding: 10px 22px;
    border: 2px solid #7a1020;
    color: #7a1020;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
}

.btn-outline:hover {
    background: #7a1020;
    color: #ffffff;
}

/* HOMEPAGE */
.premium-hero {
    min-height: 72vh;
    padding: 70px 30px;
    background:
        linear-gradient(rgba(255,248,239,0.78), rgba(255,248,239,0.92)),
        url('/assets/images/wedding1.png');
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid #c9993a;
    display: grid;
    grid-template-columns: 220px minmax(320px, 820px) 220px;
    gap: 32px;
    align-items: center;
    justify-content: center;
    position: relative;
}

.premium-hero::before {
    content: "ॐ";
    position: absolute;
    top: 60px;
    left: 7%;
    font-family: Georgia, serif;
    font-size: 95px;
    color: rgba(201,153,58,0.15);
}

.premium-hero::after {
    content: "✦ ✧ ✦ ✧ ✦";
    position: absolute;
    right: 8%;
    top: 18%;
    color: rgba(201,153,58,0.35);
    font-size: 26px;
    letter-spacing: 14px;
    animation: goldFloat 4s ease-in-out infinite;
}

.hero-content {
    text-align: center;
    padding: 52px 42px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    border-radius: 30px;
    border: 1px solid #f1d99b;
    box-shadow: 0 24px 70px rgba(122,16,32,0.20);
    position: relative;
    animation: fadeUp 0.8s ease;
}

.hero-content::before {
    content: "🪔";
    position: absolute;
    left: 28px;
    bottom: -22px;
    font-size: 34px;
    animation: diyaFloat 3s ease-in-out infinite;
}

.hero-content::after {
    content: "🪔";
    position: absolute;
    right: 28px;
    bottom: -22px;
    font-size: 34px;
    animation: diyaFloat 3s ease-in-out infinite reverse;
}

.hero-content h1 {
    font-family: Georgia, serif;
    font-size: 68px;
    color: #7a1020;
    margin: 0 0 14px;
}

.telugu-line {
    font-size: 23px;
    color: #b6862e;
    margin-bottom: 22px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.5;
}

.hero-main-text {
    font-family: Georgia, serif;
    font-size: 34px;
    color: #2b1a1a;
    margin: 12px 0;
    font-weight: 400;
}

.hero-sub-text {
    font-size: 22px;
    color: #6b4b4b;
}

.brand-highlight {
    color: #7a1020;
    font-weight: bold;
    font-family: Georgia, serif;
}

.hero-buttons {
    margin-top: 20px;
}

.hero-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
    border: 3px solid rgba(201,153,58,0.55);
    background: #ffffff;
}

.hero-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.hero-image-left {
    transform: rotate(-3deg);
}

.hero-image-right {
    transform: rotate(3deg);
}

/* FEATURES */
.feature-section {
    max-width: 1200px;
    margin: 58px auto 80px;
    padding: 0 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 22px;
    border-top: 6px solid #c9993a;
    box-shadow: 0 14px 38px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 55px rgba(122,16,32,0.15);
}

.feature-icon {
    font-size: 34px;
    margin-bottom: 10px;
}

.feature-card h3 {
    color: #7a1020;
    font-family: Georgia, serif;
    font-size: 24px;
}

.feature-card p {
    color: #6b4b4b;
    line-height: 1.6;
}

/* PAGE HERO */
.hero,
.page-hero {
    min-height: calc(100vh - 250px);
    text-align: center;
    padding: 90px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1,
.page-hero h1 {
    color: #7a1020;
    font-family: Georgia, serif;
    font-size: 52px;
}

.hero p,
.page-hero p {
    font-size: 20px;
    color: #6b4b4b;
    max-width: 1100px;
    margin: 12px auto;
}

/* FORMS */
.form-box {
    max-width: 520px;
    margin: 55px auto;
    background: #ffffff;
    padding: 34px;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.wide-form {
    max-width: 760px;
}

.form-box h2 {
    color: #7a1020;
    font-family: Georgia, serif;
}

.form-subtitle {
    color: #6b4b4b;
    margin-top: -8px;
    margin-bottom: 24px;
}

label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

input, select, textarea {
    width: 100%;
    padding: 13px;
    margin-bottom: 18px;
    border: 1px solid #d7c7bd;
    border-radius: 8px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #c9993a;
    box-shadow: 0 0 0 3px rgba(201,153,58,0.15);
}

/* MESSAGES */
.message-success {
    background: #e9fff1;
    color: #1a7a3a;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #1a7a3a;
    margin-bottom: 15px;
}

.message-error {
    background: #fff0f0;
    color: #8b0d1a;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #8b0d1a;
}

/* LOGIN */
.login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link-secondary,
.forgot-link a,
.form-footer-link a {
    color: #7a1020;
    text-decoration: none;
    font-weight: 600;
}

.link-secondary:hover,
.forgot-link a:hover,
.form-footer-link a:hover {
    color: #c9993a;
}

.register-box,
.form-footer-link {
    margin-top: 24px;
    text-align: center;
    border-top: 1px solid #f1e2c7;
    padding-top: 20px;
    color: #6b4b4b;
}

/* USER DROPDOWN */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropbtn {
    background: #7a1020;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 15px;
}

.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 44px;
    background: #ffffff;
    min-width: 210px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.14);
    border: 1px solid #f1e2c7;
    border-radius: 10px;
    z-index: 9999;
    overflow: hidden;
}

.user-dropdown-content.show {
    display: block;
}

.user-dropdown-content a {
    display: block;
    padding: 13px 16px;
    color: #7a1020;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.user-dropdown-content a:hover {
    background: #fff8ef;
    color: #c9993a;
}

/* PAGE + CARDS */
.page-container {
    max-width: 1100px;
    margin: 45px auto;
    padding: 0 24px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.profile-card,
.profile-view {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.profile-card h3,
.profile-view h2,
.details-section h3 {
    color: #7a1020;
    font-family: Georgia, serif;
}

.details-section {
    border-top: 1px solid #f1e2c7;
    padding-top: 18px;
    margin-top: 22px;
}

/* SEARCH */
.search-box {
    background: #ffffff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 14px;
    margin-bottom: 30px;
}

.search-box input,
.search-box select {
    margin-bottom: 0;
}

/* ADMIN */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.admin-table th {
    background: #7a1020;
    color: #ffffff;
    text-align: left;
    padding: 14px;
}

.admin-table td {
    padding: 13px;
    border-bottom: 1px solid #f1e2c7;
}

.admin-table select {
    margin-bottom: 0;
}

.btn-small {
    display: inline-block;
    background: #7a1020;
    color: #ffffff;
    padding: 7px 12px;
    border-radius: 18px;
    text-decoration: none;
    font-size: 13px;
    margin: 3px;
}

.btn-small:hover {
    background: #c9993a;
}

/* SUBSCRIPTION */
.subscription-box {
    background: #fff8ef;
    border: 1px solid #f1e2c7;
    border-left: 5px solid #c9993a;
    padding: 16px;
    border-radius: 10px;
    margin: 20px 0;
}

.subscription-box h3 {
    color: #7a1020;
    margin-top: 0;
}

.plan-list {
    padding-left: 20px;
    margin: 12px 0;
}

.plan-list li {
    margin-bottom: 10px;
}

.premium-box {
    border-left: 5px solid #7a1020;
}

/* FOOTER DESKTOP */
.site-footer,
.top-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #ffffff;
    border-top: 4px solid #c9993a;
    box-shadow: 0 -6px 20px rgba(201,153,58,0.28);
}

.site-footer::before,
.top-footer::before {
    content: "";
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f1d99b, #c9993a, #f1d99b, transparent);
}

.footer-copy,
.footer-bottom {
    text-align: center;
    padding: 10px;
    font-size: 13px;
    color: #6b4b4b;
    background: #ffffff;
}

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes goldFloat {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    50% {
        transform: translateY(-12px);
        opacity: 0.75;
    }
}

@keyframes diyaFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* MOBILE DEFAULT HIDDEN */
.mobile-menu-btn,
.mobile-menu,
.mobile-bottom-nav {
    display: none;
}

/* MOBILE ONLY */
@media (max-width: 768px) {
    body {
        padding-top: 86px;
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .top-header {
        height: 86px;
    }

    .header-container {
        max-width: none;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 8px 16px;
    }

    .brand {
        gap: 10px;
    }

    .brand img {
        height: 52px;
    }

    .brand-text {
        display: flex !important;
        align-items: flex-start;
    }

    .brand-name {
        font-size: 21px;
        line-height: 1.1;
    }

    .brand-tagline {
        font-size: 10px;
        line-height: 1.2;
    }

    .desktop-nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
        background: #7a1020;
        color: #ffffff;
        border: none;
        border-radius: 12px;
        padding: 8px 13px;
        font-size: 22px;
        margin: 0;
        cursor: pointer;
    }

    .mobile-menu {
        display: none;
        position: fixed;
        top: 86px;
        right: 16px;
        background: #ffffff;
        border: 1px solid #f1d99b;
        border-radius: 14px;
        box-shadow: 0 12px 35px rgba(0,0,0,0.16);
        z-index: 10001;
        overflow: hidden;
        min-width: 190px;
    }

    .mobile-menu.show {
        display: block;
    }

    .mobile-menu a {
        display: block;
        padding: 14px 18px;
        color: #7a1020;
        text-decoration: none;
        font-weight: 700;
        border-bottom: 1px solid #f6ead0;
    }

    .mobile-menu a:hover {
        background: #fff8ef;
        color: #c9993a;
    }

    .site-footer,
    .top-footer {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(72px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: #ffffff;
        border-top: 3px solid #c9993a;
        box-shadow: 0 -6px 20px rgba(201,153,58,0.25);
        z-index: 10000;
    }

    .mobile-bottom-nav a {
        color: #7a1020;
        text-decoration: none;
        font-size: 12px;
        font-weight: 700;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .mobile-bottom-nav a span {
        font-size: 20px;
        margin-bottom: 3px;
    }

    .mobile-bottom-nav a.active {
        color: #c9993a;
        background: #fff8ef;
    }

    .premium-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 42px 18px;
    }

    .premium-hero::after {
        display: none;
    }

    .hero-image {
        display: none;
    }

    .hero-content {
        padding: 34px 22px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .telugu-line {
        font-size: 17px;
        line-height: 1.6;
    }

    .hero-main-text {
        font-size: 25px;
    }

    .hero-sub-text {
        font-size: 17px;
    }

    .feature-section {
        grid-template-columns: 1fr;
        margin-bottom: 100px;
    }

    .page-hero,
    .hero {
        min-height: calc(100vh - 158px);
        padding: 40px 24px;
    }

    .page-hero h1,
    .hero h1 {
        font-size: 44px;
        line-height: 1.1;
    }

    .page-hero p,
    .hero p {
        font-size: 19px;
        line-height: 1.5;
    }

    .search-box {
        grid-template-columns: 1fr;
    }
}