:root {
    --parchment: #f4e4bc;
    --parchment-dark: #d4c4a0;
    --parchment-light: #faf6ed;
    --ink-black: #1a1a1a;
    --hogwarts-gold: #d4af37;
    --hogwarts-bronze: #cd7f32;

    --gryffindor-red: #740001;
    --gryffindor-gold: #dba506;
    --gryffindor-scarlet: #a50000;

    --slytherin-green: #1a472a;
    --slytherin-silver: #aaaaaa;

    --ravenclaw-blue: #0e1a40;
    --ravenclaw-bronze: #cd7f32;

    --hufflepuff-yellow: #ecb939;
    --hufflepuff-black: #1a1a1a;

    --font-display: "Philosopher", cursive;
    --font-heading: "MedievalSharp", cursive;
    --font-body: "Cormorant Garamond", serif;
    --font-script: "Henny Penny", cursive;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--parchment);
    color: var(--ink-black);
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.7;
    overflow-x: hidden;
    background-image:
        url("https://www.transparenttextures.com/patterns/aged-paper.png"),
        linear-gradient(
            180deg,
            var(--parchment-light) 0%,
            var(--parchment) 50%,
            var(--parchment-dark) 100%
        );
}

.magic-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.magic-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--hogwarts-gold);
    border-radius: 50%;
    animation: particle-float 8s ease-in-out infinite;
    opacity: 0;
}

@keyframes particle-float {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1);
    }
}

.candle-flicker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(255, 200, 100, 0.15) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse at 20% 20%,
            rgba(255, 150, 50, 0.08) 0%,
            transparent 30%
        ),
        radial-gradient(
            ellipse at 80% 30%,
            rgba(255, 150, 50, 0.08) 0%,
            transparent 30%
        );
    animation: candle-glow 4s ease-in-out infinite alternate;
}

@keyframes candle-glow {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

.hogwarts-letter {
    max-width: 700px;
    margin: 40px auto;
    padding: 40px;
    background: linear-gradient(
        135deg,
        #fffef5 0%,
        var(--parchment-light) 50%,
        var(--parchment) 100%
    );
    border: 4px double var(--hogwarts-gold);
    box-shadow:
        0 0 0 2px #5a4a3a,
        0 0 0 4px var(--hogwarts-gold),
        0 15px 50px rgba(0, 0, 0, 0.3),
        inset 0 0 80px rgba(212, 175, 55, 0.1);
    position: relative;
    animation: letter-appear 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes letter-appear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95) rotate(-1deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(-0.5deg);
    }
}

.hogwarts-seal {
    text-align: center;
    margin-bottom: 25px;
    animation: seal-float 4s ease-in-out infinite;
}

.hogwarts-seal img {
    width: 100px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

@keyframes seal-float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

.letter-header {
    border-bottom: 2px solid var(--hogwarts-gold);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.return-address {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--ink-black);
    margin-bottom: 8px;
}

.owl-delivery {
    font-style: italic;
    font-size: 0.85rem;
    color: #666;
    text-align: right;
}

.letter-body {
    text-align: center;
}

.salutation {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.letter-text {
    margin: 12px 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.big-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
}

.age-title {
    font-family: var(--font-script);
    font-size: 4.5rem;
    background: linear-gradient(
        180deg,
        var(--gryffindor-gold) 0%,
        #8b6914 50%,
        var(--gryffindor-gold) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-glow 3s ease-in-out infinite alternate;
    text-shadow: none;
}

@keyframes title-glow {
    0% {
        filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.8));
    }
}

.house-badge {
    font-size: 3rem;
    animation: badge-float 3s ease-in-out infinite;
}

.house-badge.gryffindor {
    animation-delay: 0s;
}
.house-badge.slytherin {
    animation-delay: 1.5s;
}

@keyframes badge-float {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

.birthday-name {
    font-family: var(--font-heading);
    font-size: 5.8rem;
    color: var(--gryffindor-red);
    margin: 20px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.event-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.detail-box {
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.15) 0%,
        rgba(212, 175, 55, 0.05) 100%
    );
    border: 2px solid var(--hogwarts-gold);
    border-radius: 8px;
    padding: 15px 20px;
    width: 260px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.detail-box:hover {
    transform: translateY(-5px);
}

.detail-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 5px;
}

.detail-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: #666;
    display: block;
}

.detail-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--gryffindor-red);
}

.rsvp-deadline {
    margin-top: 25px;
    font-style: italic;
}

.rsvp-deadline strong {
    color: var(--gryffindor-red);
}

.signature {
    margin-top: 30px;
    text-align: right;
}

.headmaster-signature {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--gryffindor-red);
    margin: 10px 0;
}

.headmaster-title {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.hogwarts-stamp {
    position: absolute;
    bottom: 30px;
    right: 30px;
    opacity: 0.7;
    transform: rotate(15deg);
}

.hogwarts-stamp img {
    width: 48px;
    filter: sepia(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.countdown-section {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(212, 175, 55, 0.1) 100%
    );
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--gryffindor-red);
    margin-bottom: 10px;
}

.section-subtitle {
    font-style: italic;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

.countdown-subtitle {
    font-style: italic;
    color: #666;
    margin-bottom: 25px;
}

.timer-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 35px !important;
    width: 200px !important;
    min-width: 200px !important;
    border-radius: 8px;
    border: 3px solid var(--hogwarts-gold);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.time-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.time-block[data-house="gryffindor"] {
    background: linear-gradient(
        180deg,
        var(--gryffindor-scarlet) 0%,
        var(--gryffindor-red) 100%
    );
    border-color: var(--gryffindor-gold);
}

.time-block[data-house="gryffindor"]::before {
    background: var(--gryffindor-gold);
}

.time-block[data-house="slytherin"] {
    background: linear-gradient(
        180deg,
        #2a5a3a 0%,
        var(--slytherin-green) 100%
    );
    border-color: var(--slytherin-silver);
}

.time-block[data-house="slytherin"]::before {
    background: var(--slytherin-silver);
}

.time-block[data-house="ravenclaw"] {
    background: linear-gradient(180deg, #1e2a50 0%, var(--ravenclaw-blue) 100%);
    border-color: var(--ravenclaw-bronze);
}

.time-block[data-house="ravenclaw"]::before {
    background: var(--ravenclaw-bronze);
}

.time-block[data-house="hufflepuff"] {
    background: linear-gradient(
        180deg,
        #c9a829 0%,
        var(--hufflepuff-yellow) 100%
    );
    border-color: var(--hufflepuff-black);
}

.time-block[data-house="hufflepuff"]::before {
    background: var(--hufflepuff-black);
}

.time-block:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.time-icon {
    font-size: 3.5rem !important;
    margin-bottom: 10px;
}

.time-number {
    font-family: var(--font-heading);
    font-size: 5rem !important;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.time-label {
    font-size: 1.2rem !important;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

.location-section {
    padding: 60px 20px;
    background: linear-gradient(
        135deg,
        rgba(26, 71, 42, 0.1) 0%,
        rgba(116, 0, 1, 0.1) 100%
    );
}

.platform-9 {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.platform-sign {
    font-size: 5rem;
    margin-bottom: 10px;
    animation: platform-appear 1s ease-out;
}

@keyframes platform-appear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.platform-number {
    font-family: var(--font-heading);
    color: var(--gryffindor-red);
}

.platform-fraction {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--gryffindor-gold);
    vertical-align: super;
}

.platform-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gryffindor-red);
    margin-bottom: 10px;
}

.platform-description {
    font-style: italic;
    color: #666;
}

.location-card {
    background: var(--parchment-light);
    border: 3px solid var(--hogwarts-gold);
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.location-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.location-card h3 {
    font-family: var(--font-heading);
    color: var(--gryffindor-red);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.address {
    color: #666;
    margin-bottom: 20px;
}

.magic-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, var(--gryffindor-red) 0%, #5a0001 100%);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    border-radius: 50px;
    border: 2px solid var(--hogwarts-gold);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(116, 0, 1, 0.35);
}

.magic-button:hover {
    background: linear-gradient(180deg, var(--hogwarts-gold) 0%, #8b6914 100%);
    color: var(--gryffindor-red);
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

.houses-section {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(
        180deg,
        var(--parchment) 0%,
        var(--parchment-dark) 100%
    );
}

.houses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 30px auto 0;
}

.house-card {
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.house-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 0;
}

.house-card > * {
    position: relative;
    z-index: 1;
}

.house-card.gryffindor {
    background: linear-gradient(
        135deg,
        var(--gryffindor-scarlet) 0%,
        var(--gryffindor-red) 100%
    );
    border-color: var(--gryffindor-gold);
}

.house-card.gryffindor::before {
    background: var(--gryffindor-gold);
}

.house-card.slytherin {
    background: linear-gradient(
        135deg,
        #2a5a3a 0%,
        var(--slytherin-green) 100%
    );
    border-color: var(--slytherin-silver);
}

.house-card.slytherin::before {
    background: var(--slytherin-silver);
}

.house-card.ravenclaw {
    background: linear-gradient(135deg, #1e2a50 0%, var(--ravenclaw-blue) 100%);
    border-color: var(--ravenclaw-bronze);
}

.house-card.ravenclaw::before {
    background: var(--ravenclaw-bronze);
}

.house-card.hufflepuff {
    background: linear-gradient(
        135deg,
        #c9a829 0%,
        var(--hufflepuff-yellow) 100%
    );
    border-color: var(--hufflepuff-black);
}

.house-card.hufflepuff::before {
    background: var(--hufflepuff-black);
}

.house-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.house-crest {
    font-size: 3rem;
    margin-bottom: 10px;
}

.house-card h4 {
    font-family: var(--font-heading);
    color: white;
    font-size: 1.4rem;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.house-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.house-colors {
    font-size: 1.1rem;
    color: white;
    font-style: italic;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.dresscode-section {
    padding: 60px 20px;
    background: linear-gradient(
        180deg,
        var(--parchment-dark) 0%,
        var(--parchment) 100%
    );
}

.dresscode-box {
    background: var(--parchment-light);
    border: 3px double var(--hogwarts-gold);
    border-radius: 8px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.dresscode-box::before,
.dresscode-box::after {
    content: "⚜";
    position: absolute;
    font-size: 2rem;
    color: var(--hogwarts-gold);
}

.dresscode-box::before {
    top: 10px;
    left: 15px;
}

.dresscode-box::after {
    bottom: 10px;
    right: 15px;
    transform: rotate(180deg);
}

.robe-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.dresscode-box h4 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--gryffindor-red);
    margin-bottom: 10px;
}

.dresscode-quote {
    font-style: italic;
    color: #666;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 6px;
}

.gallery-section {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(
        135deg,
        rgba(116, 0, 1, 0.08) 0%,
        rgba(26, 71, 42, 0.08) 100%
    );
}

.photo-frame-magic {
    display: inline-block;
    margin: 15px;
    position: relative;
    animation: frame-float 4s ease-in-out infinite;
}

.photo-frame-magic:nth-child(odd) {
    animation-delay: 0s;
}

.photo-frame-magic:nth-child(even) {
    animation-delay: 2s;
}

@keyframes frame-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.frame-inner {
    border: 12px solid;
    border-image: linear-gradient(
            135deg,
            var(--hogwarts-gold),
            var(--hogwarts-bronze)
        )
        1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.frame-inner img {
    display: block;
    width: 250px;
    height: 320px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-frame-magic:hover .frame-inner img {
    transform: scale(1.1);
}

.frame-seal {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 1.5rem;
    background: var(--parchment-light);
    border-radius: 50%;
    padding: 8px;
    border: 2px solid var(--hogwarts-gold);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.hashtag-section {
    padding: 60px 20px;
}

.hashtag-box {
    background: linear-gradient(135deg, var(--ravenclaw-blue) 0%, #152030 100%);
    border: 3px solid var(--ravenclaw-bronze);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: white;
    max-width: 500px;
    margin: 0 auto;
}

.hashtag-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.hashtag-box h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.hashtag-box p {
    opacity: 0.9;
    margin-bottom: 15px;
}

.hashtag-display {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--ravenclaw-bronze);
    margin: 20px 0;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    border: 2px solid var(--ravenclaw-bronze);
}

.songs-section {
    padding: 60px 20px;
    background: var(--parchment);
}

.songs-subtitle {
    font-style: italic;
    color: #666;
    margin-bottom: 25px;
}

.song-form {
    max-width: 500px;
    margin: 0 auto 30px;
}

.song-input-group {
    display: flex;
    gap: 10px;
}

.song-input-group input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--hogwarts-gold);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: white;
}

.song-input-group input:focus {
    outline: none;
    border-color: var(--gryffindor-red);
    box-shadow: 0 0 20px rgba(116, 0, 1, 0.2);
}

.song-list {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid var(--hogwarts-gold);
    animation: item-appear 0.4s ease-out;
}

@keyframes item-appear {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.song-name {
    flex: 1;
    font-weight: 600;
}

.gifts-section {
    padding: 60px 20px;
    background: linear-gradient(
        180deg,
        var(--parchment) 0%,
        var(--parchment-dark) 100%
    );
}

.gringotts-vault {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 4px solid var(--hogwarts-gold);
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.vault-door {
    width: 80px;
    height: 80px;
    background: var(--hogwarts-gold);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dragon-statue {
    font-size: 2.5rem;
}

.gifts-message {
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
}

.gift-card {
    background: rgba(212, 175, 55, 0.15);
    padding: 20px;
    border-radius: 8px;
    border: 2px solid var(--hogwarts-gold);
}

.gift-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.gift-alias {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--hogwarts-gold);
}

.rsvp-section {
    padding: 60px 20px;
    background: linear-gradient(
        135deg,
        var(--parchment-light) 0%,
        var(--parchment) 100%
    );
}

.rsvp-intro {
    margin-bottom: 25px;
    color: #666;
}

.rsvp-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.rsvp-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    border: 3px solid;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.rsvp-btn.yes {
    color: #1a472a;
    border-color: #1a472a;
}

.rsvp-btn.yes:hover,
.rsvp-btn.yes.selected {
    background: #1a472a;
    color: white;
    transform: scale(1.05);
}

.rsvp-btn.no {
    color: var(--gryffindor-red);
    border-color: var(--gryffindor-red);
}

.rsvp-btn.no:hover,
.rsvp-btn.no.selected {
    background: var(--gryffindor-red);
    color: white;
    transform: scale(1.05);
}

.rsvp-form {
    max-width: 450px;
    margin: 0 auto 40px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--hogwarts-gold);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gryffindor-red);
    box-shadow: 0 0 20px rgba(116, 0, 1, 0.15);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    justify-content: center;
    font-size: 1.2rem;
    padding: 16px;
}

.guests-section {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.guests-section h4 {
    font-family: var(--font-heading);
    color: var(--gryffindor-red);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.guests-list {
    background: var(--parchment-light);
    border: 2px solid var(--hogwarts-gold);
    border-radius: 8px;
    padding: 20px;
}

.guest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 4px solid var(--hogwarts-gold);
    animation: item-appear 0.4s ease-out;
}

.guest-name {
    flex: 1;
    font-weight: 600;
}

.guest-status {
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 15px;
}

.guest-status.yes {
    background: rgba(26, 71, 42, 0.15);
    color: #1a472a;
}

.guest-status.no {
    background: rgba(116, 0, 1, 0.15);
    color: var(--gryffindor-red);
}

.empty-list {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 20px;
}

.pearl-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, var(--ravenclaw-blue) 0%, #0d1225 100%);
    color: white;
}

.pearl-box {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--ravenclaw-bronze);
    border-radius: 12px;
}

.pearl-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: pearl-glow 3s ease-in-out infinite;
}

@keyframes pearl-glow {
    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(205, 127, 50, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(205, 127, 50, 0.8));
    }
}

.pearl-box h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--ravenclaw-bronze);
}

.pearl-box p {
    font-style: italic;
    opacity: 0.9;
    font-size: 1.1rem;
}

.quotes-section {
    padding: 50px 20px;
    background: var(--parchment);
}

.quote-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 30px;
}

.End-quote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gryffindor-red);
    margin-bottom: 15px;
    font-style: italic;
}

.quote-author {
    font-size: 1rem;
    color: #666;
}

.hogwarts-footer {
    padding: 50px 20px;
    background: linear-gradient(180deg, var(--ink-black) 0%, #0a0a0a 100%);
    color: var(--hogwarts-gold);
    text-align: center;
    border-top: 4px solid var(--hogwarts-gold);
}

.footer-seal {
    margin-bottom: 120px;
}

.footer-seal img {
    width: 160px;
    opacity: 0.6;
}

.footer-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-name {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-contact {
    margin-bottom: 20px;
}

.owl-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    background: #25d366;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}

.owl-contact:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.footer-created {
    font-size: 0.85rem;
    opacity: 0.6;
}

.admin-link {
    display: block;
    margin-top: 10px;
    color: var(--hogwarts-gold);
    opacity: 0.5;
    text-decoration: none;
    font-size: 0.8rem;
    transition: opacity 0.3s;
}

.admin-link:hover {
    opacity: 1;
}

.music-control {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(180deg, var(--gryffindor-red) 0%, #5a0001 100%);
    color: white;
    padding: 14px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(116, 0, 1, 0.5);
    border: 2px solid var(--hogwarts-gold);
    z-index: 1000;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
}

.music-control:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(212, 175, 55, 0.5);
}

.music-control.playing {
    animation: music-glow 2s ease-in-out infinite;
}

@keyframes music-glow {
    0%,
    100% {
        box-shadow: 0 5px 25px rgba(116, 0, 1, 0.5);
    }
    50% {
        box-shadow: 0 5px 35px rgba(212, 175, 55, 0.6);
    }
}

.wand-icon {
    font-size: 1.3rem;
    animation: none;
}

.music-control.playing .wand-icon {
    animation: wand-spin 2s linear infinite;
}

@keyframes wand-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.music-text {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hogwarts-letter {
        margin: 20px;
        padding: 25px;
    }

    .age-title {
        font-size: 3rem;
    }

    .big-title {
        gap: 10px;
    }

    .house-badge {
        font-size: 2rem;
    }

    .timer-container {
        gap: 10px;
    }

    .time-block {
        width: calc(50% - 10px) !important;
        min-width: calc(50% - 10px) !important;
        padding: 15px 10px;
    }

    .time-number {
        font-size: 1.6rem;
    }

    .houses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-frame-magic {
        margin: 10px;
    }

    .frame-inner img {
        width: 180px;
        height: 240px;
    }

    .song-input-group {
        flex-direction: column;
    }

    .rsvp-buttons {
        flex-direction: column;
        align-items: center;
    }

    .music-text {
        display: none;
    }

    .detail-box {
        flex-wrap: wrap;
        justify-content: center;
        width: 100% !important;
        max-width: 260px;
        height: auto !important;
        min-height: 120px;
    }

    .detail-box .magic-button {
        margin-top: 10px;
    }

    .location-card {
        padding: 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .letter-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hogwarts-seal {
        margin-bottom: 15px;
    }

    .hogwarts-seal img {
        width: 80px;
    }

    .location-btn {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .age-title {
        font-size: 2.2rem;
    }

    .birthday-name {
        font-size: 1.8rem;
    }

    .event-details {
        flex-direction: column;
        align-items: center;
    }

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

    .hogwarts-letter {
        margin: 10px;
        padding: 15px;
    }

    .house-badge {
        font-size: 1.5rem;
    }

    .big-title {
        gap: 5px;
    }

    .timer-container {
        gap: 8px;
    }

    .time-block {
        width: calc(50% - 8px) !important;
        min-width: calc(50% - 8px) !important;
        padding: 10px 8px;
    }

    .time-number {
        font-size: 1.4rem;
    }

    .time-label {
        font-size: 0.7rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .detail-box {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        width: 100% !important;
        max-width: 260px;
        height: auto !important;
        min-height: 120px;
    }

    .detail-box .magic-button {
        margin-top: 10px;
    }

    .location-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .rsvp-btn {
        padding: 12px 24px;
    }

    .song-input-group {
        flex-direction: column;
        gap: 10px;
    }

    .frame-inner img {
        width: 150px;
        height: 200px;
    }

    .dumbledore-quote {
        font-size: 0.9rem;
    }

    .footer-content {
        padding: 20px 10px;
    }
}
