/* Centering utility for password field */
.center-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

html, body {
    min-height: 100vh;
    width: 100%;
    height: 100%;
    background: #f4f7fa;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 0 1em 2em 1em;
    box-sizing: border-box;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2em;
    margin-top: 2em;
}

.ipod-card {
    background: #fff;
    border-radius: 1em;
    box-shadow: 0 2px 12px #185a9d22;
    padding: 1.2em 1em 1.5em 1em;
    margin: 0 auto;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ipod-screen {
    width: 100%;
    max-width: 340px;
    height: 220px;
    border-radius: 1em;
    margin-bottom: 1em;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.2em;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0.5em 0.1em 1.5em 0.1em;
    }
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1em;
        margin-top: 1em;
    }
    .ipod-card {
        max-width: 98vw;
        padding: 0.7em 0.2em 1.2em 0.2em;
    }
    .ipod-screen {
        max-width: 98vw;
        height: 160px;
    }
}

@media (max-width: 700px) {
    html, body {
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        min-width: 100vw;
        max-width: 100vw;
        max-height: 100vh;
        overflow: hidden !important;
        position: fixed;
        overscroll-behavior: none;
        touch-action: none;
    }
    .container, .main-content, .admin-section, .product-grid, .ipod-card, .ipod-screen, .ipod-details {
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden !important;
    }
}

/* Modal styles for user profile */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-btn:hover {
    color: #f44336;
}
/* --- Global Mobile App-Like Enhancements --- */
@media (max-width: 600px) {
    html, body {
        width: 100vw;
        min-height: 100vh;
        overflow-x: hidden;
        background: linear-gradient(120deg, #43cea2 0%, #185a9d 100%);
        font-size: 17px;
    }
    .container, .auth-container, .login-container {
        max-width: 100vw;
        width: 100vw;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        padding: 1em 0.2em 2em 0.2em;
        margin: 0;
        background: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    h1, h2, h3, h4 {
        font-size: 1.3em;
        margin: 0.7em 0 0.5em 0;
        text-align: center;
    }
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.2em;
        margin-top: 1em;
    }
    .ipod-card, .product-card {
        max-width: 98vw;
        width: 98vw;
        border-radius: 0.8em;
        box-shadow: 0 2px 8px #185a9d22;
        padding: 1em 0.2em 1.5em 0.2em;
        margin: 0 auto;
    }
    .ipod-screen {
        width: 98vw;
        max-width: 340px;
        height: 160px;
        border-radius: 1em;
    }
    .ipod-title {
        font-size: 1.1em;
    }
    .ipod-desc {
        font-size: 1em;
    }
    .ipod-bid, .ipod-status {
        font-size: 1em;
    }
    .ipod-bids li {
        font-size: 0.98em;
        padding: 0.3em 0.5em;
    }
    .logout-link {
        top: 8px;
        right: 8px;
        padding: 0.6em 1em;
        font-size: 0.98em;
        border-radius: 12px;
    }
    .admin-section form, .login-container form, .auth-container form {
        max-width: 98vw !important;
        width: 98vw !important;
        padding: 0.5em 0.2em;
    }
    .admin-section input, .admin-section button, .login-container input, .login-container button, .auth-container input, .auth-container button {
        font-size: 1em !important;
        padding: 0.9em 0.5em !important;
        border-radius: 8px !important;
    }
    .bid-form input[type="range"] {
        width: 90vw !important;
        max-width: 220px;
    }
    .bid-form input[type="number"] {
        width: 80vw !important;
        max-width: 110px;
        font-size: 1em !important;
    }
    .bid-form button {
        width: 100%;
        font-size: 1.1em;
        padding: 1em 0;
        border-radius: 8px;
    }
    .link-btn, button, input[type="submit"] {
        width: 100%;
        min-width: unset;
        font-size: 1.1em;
        padding: 1em 0.2em;
        border-radius: 8px;
        margin-top: 0.7em;
    }
    .modal-content {
        max-width: 95vw;
        padding: 1.2em 0.7em;
    }
    .nav {
        font-size: 1.1em;
        padding: 0.7em 0.2em;
        border-radius: 0 0 18px 18px;
    }
    .nav a {
        font-size: 1.1em;
        padding: 0.7em 0.7em;
        margin: 0 0.5em;
    }
    footer {
        font-size: 1em;
        padding: 0.7em 0;
    }
    /* Fixed bottom nav for app feel */
    .bottom-nav {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100vw;
        background: #185a9d;
        color: #fff;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0.7em 0 0.5em 0;
        z-index: 1000;
        box-shadow: 0 -2px 12px #185a9d44;
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
    }
    .bottom-nav a {
        color: #fff;
        text-decoration: none;
        font-size: 1.2em;
        font-weight: 600;
        padding: 0.5em 1em;
        border-radius: 12px;
        transition: background 0.2s, color 0.2s;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .bottom-nav a.active, .bottom-nav a:active {
        background: #43cea2;
        color: #185a9d;
    }
    .bottom-nav .icon {
        font-size: 1.5em;
        margin-bottom: 0.1em;
    }
}
@media (max-width: 600px) {
    .container, .auth-container {
        max-width: 100vw;
        width: 100vw;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        padding: 1em 0.2em 2em 0.2em;
        margin: 0;
        background: #fff;
    }
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.2em;
        margin-top: 1em;
    }
    .ipod-card, .product-card {
        max-width: 98vw;
        width: 98vw;
        border-radius: 0.8em;
        box-shadow: 0 2px 8px #185a9d22;
        padding: 1em 0.2em 1.5em 0.2em;
        margin: 0 auto;
    }
    .ipod-screen {
        width: 98vw;
        max-width: 340px;
        height: 160px;
        border-radius: 1em;
    }
    .ipod-title {
        font-size: 1.1em;
    }
    .ipod-desc {
        font-size: 1em;
    }
    .ipod-bid, .ipod-status {
        font-size: 1em;
    }
    .ipod-bids li {
        font-size: 0.98em;
        padding: 0.3em 0.5em;
    }
    .logout-link {
        top: 8px;
        right: 8px;
        padding: 0.6em 1em;
        font-size: 0.98em;
        border-radius: 12px;
    }
    .admin-section form {
        max-width: 98vw !important;
        width: 98vw !important;
        padding: 0.5em 0.2em;
    }
    .admin-section input, .admin-section button {
        font-size: 1em !important;
        padding: 0.9em 0.5em !important;
        border-radius: 8px !important;
    }
    .bid-form input[type="range"] {
        width: 90vw !important;
        max-width: 220px;
    }
    .bid-form input[type="number"] {
        width: 80vw !important;
        max-width: 110px;
        font-size: 1em !important;
    }
    .bid-form button {
        width: 100%;
        font-size: 1.1em;
        padding: 1em 0;
        border-radius: 8px;
    }
    footer {
        font-size: 1em;
        padding: 0.7em 0;
    }
}
.login-container {
    max-width: 400px;
    margin: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px #0002;
    padding: 2em 1.2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    width: 100%;
    animation: fadeInUp 0.7s;
}

.login-container h2 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

.login-container form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2em;
}

.login-container label {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 1.1em;
    font-weight: bold;
}

.login-container input {
    width: 100%;
    font-size: 1.15em;
    padding: 1em;
    border-radius: 8px;
    border: 1px solid #b0bec5;
    margin-top: 0.2em;
    box-sizing: border-box;
}

.login-container button {
    width: 100%;
    font-size: 1.2em;
    padding: 1.2em 0;
    border-radius: 8px;
    margin-top: 1em;
}

.link-btn {
    width: 100%;
    font-size: 1.1em;
    padding: 1em 0;
    border-radius: 8px;
    margin-top: 0.7em;
}

@media (max-width: 600px) {
    body {
        padding: 0;
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        background: linear-gradient(120deg, #43cea2 0%, #185a9d 100%);
    }
    .login-container {
        max-width: 98vw;
        width: 98vw;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        padding: 2.5em 1em 2em 1em;
        justify-content: center;
    }
    .login-container h2 {
        font-size: 2.2em;
    }
    .login-container form {
        gap: 1.5em;
    }
    .login-container input {
        font-size: 1.15em;
        padding: 1em;
    }
    .login-container button, .link-btn {
        font-size: 1.15em;
        padding: 1.1em 0;
    }
    .modal-content {
        max-width: 95vw;
        padding: 1.2em 0.7em;
    }
}
.shipping-stamp-red {
    display: inline-block;
    font-size: 1.3em;
    color: #0a2342; /* navy blue */
        overflow: visible;
    }

    /* Confetti animation for VENDIDO */
    .shipping-stamp-red {
        position: relative;
    }
    .confetti {
        pointer-events: none;
        position: absolute;
        left: 0; top: 0; width: 100%; height: 100%;
        z-index: 20;
    }
    .confetti-piece {
        position: absolute;
        width: 8px; height: 16px;
        border-radius: 2px;
        opacity: 0.85;
        animation: confetti-fall 2.5s linear infinite;
    }
    @keyframes confetti-fall {
        0% { transform: translateY(-30px) rotate(0deg); opacity: 1; }
        80% { opacity: 1; }
        100% { transform: translateY(60px) rotate(360deg); opacity: 0.7; }
    }
    background: repeating-linear-gradient(-12deg, #e53935 0px, #e53935 8px, #fff 8px, #fff 13px);
    border: 4px double #b71c1c;
    border-radius: 18px 6px 18px 6px/10px 18px 10px 18px;
    padding: 0.35em 1.1em;
    margin: 0.7em 0;
    font-weight: bold;
    letter-spacing: 0.12em;
    box-shadow: 0 4px 18px #b71c1c55, 0 0 0 3px #fff inset;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-8deg) scale(1.01);
    position: relative;
    z-index: 10;
    animation: stampPopRed 0.7s cubic-bezier(.68,-0.55,.27,1.55);
    text-shadow: 1px 1px 4px #b71c1c55;
    font-family: 'Impact', 'Arial Black', Arial, sans-serif;
    letter-spacing: 0.18em;
    /* Distressed ink effect */
    background-image:
        repeating-linear-gradient(-12deg, #e53935 0px, #e53935 8px, #fff 8px, #fff 13px),
        linear-gradient(135deg, transparent 70%, rgba(255,255,255,0.18) 100%),
        repeating-linear-gradient(120deg, transparent 0 6px, #fff 6px 8px, transparent 8px 14px),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.18) 0 2px, transparent 2px 8px);
    filter: contrast(1.1) grayscale(0.1);
    opacity: 0.93;
}
.stamp-winner-red {
    display: block;
    font-size: 0.9em;
    color: #0a2342;
    margin-top: 0.2em;
    text-shadow: 1px 1px 3px #fff, 0 0 1px #b71c1c99;
    font-family: 'Arial Black', Arial, sans-serif;
    letter-spacing: 0.08em;
    opacity: 0.92;
}
@keyframes stampPopRed {
    0% { transform: scale(0.7) rotate(-16deg); opacity: 0; }
    60% { transform: scale(1.18) rotate(-8deg); opacity: 1; }
    100% { transform: scale(1.04) rotate(-8deg); opacity: 1; }
}

.shipping-stamp {
    display: inline-block;
    font-size: 2.2em;
    color: #fff;
    background: repeating-linear-gradient(-45deg, #43cea2, #43cea2 10px, #185a9d 10px, #185a9d 20px);
    border: 4px solid #185a9d;
    border-radius: 18px;
    padding: 0.5em 1.5em;
    margin: 1em 0;
    font-weight: bold;
    letter-spacing: 0.08em;
    box-shadow: 0 6px 32px #185a9d55;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-6deg);
    position: relative;
    z-index: 10;
    animation: stampPop 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}
.stamp-winner {
    display: block;
    font-size: 1.2em;
    color: #ffe082;
    margin-top: 0.2em;
    text-shadow: 1px 1px 2px #185a9d99;
}
@keyframes stampPop {
    0% { transform: scale(0.7) rotate(-12deg); opacity: 0; }
    60% { transform: scale(1.15) rotate(-6deg); opacity: 1; }
    100% { transform: scale(1) rotate(-6deg); opacity: 1; }
}

/* Modern Mobile App-Like CSS */
body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(120deg, #43cea2 0%, #185a9d 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: #222;
    overscroll-behavior-y: none;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(24,90,157,0.95);
    color: #fff;
    padding: 1em 0.5em;
    box-shadow: 0 4px 24px #185a9d44;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.15em;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    animation: navFadeIn 0.7s;
}
.nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 1.2em;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.6em 1.2em;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
.nav a:hover, .nav a:focus {
    background: #43cea2;
    color: #185a9d;
}

@keyframes navFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.container, .auth-container {
    max-width: 900px;
    margin: 32px auto;
    background: rgba(255,255,255,0.85);
    padding: 2em 1em;
    border-radius: 24px;
    box-shadow: 0 8px 32px #185a9d33;
    animation: fadeInUp 0.7s;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2em;
    margin-top: 2em;
}
.ipod-card, .product-card {
    background: rgba(255,255,255,0.95);
    border-radius: 28px;
    box-shadow: 0 8px 32px #185a9d22;
    padding: 1.5em 1em 2em 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 370px;
    margin: 0 auto;
    position: relative;
    transition: box-shadow 0.3s, transform 0.3s;
    animation: cardPop 0.7s;
}
.ipod-card:hover, .product-card:hover {
    box-shadow: 0 16px 48px #43cea244;
    transform: translateY(-6px) scale(1.03);
}
@keyframes cardPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.ipod-screen {
    width: 220px;
    height: 160px;
    background: linear-gradient(120deg, #43cea2 0%, #185a9d 100%);
    border-radius: 18px;
    margin-bottom: 1em;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 12px #185a9d44;
}
.carousel {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.carousel-img {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.7s cubic-bezier(.77,0,.18,1);
    margin: 0 12px;

    .carousel {
        position: relative;
        width: 100%;
        height: 220px;
        overflow: hidden;
        border-radius: 12px;
        background: #f0f2f5;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .carousel-img {
        position: absolute;
        width: 100%;
        height: 100%;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        margin: 0 auto;
        border-radius: 10px;
        background: #f0f2f5;
    }

    @media (max-width: 600px) {
        .carousel {
            height: 160px;
            min-height: 120px;
            max-width: 98vw;
        }
        .carousel-img img {
            max-width: 98vw;
            max-height: 140px;
        }
    }
    animation: imgFadeIn 0.7s;
}
@keyframes imgFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.no-img {
    color: #aaa;
    font-size: 1.1em;
    text-align: center;
}
.ipod-details {
    width: 100%;
    text-align: center;
    margin-bottom: 1em;
}
.ipod-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #185a9d;
    margin-bottom: 0.3em;
    letter-spacing: 0.5px;
}
.ipod-desc {
    color: #555;
    font-size: 1.05em;
    margin-bottom: 0.5em;
}
.ipod-bid, .ipod-status {
    font-size: 1.05em;
    margin-bottom: 0.2em;
    color: #43cea2;
    font-weight: 600;
}
.ipod-bids ul {
    list-style: none;
    padding: 0;
    margin: 0.2em 0 0.5em 0;
}
.ipod-bids li {
    font-size: 1em;
    color: #185a9d;
    background: #eaf6fb;
    border-radius: 8px;
    margin-bottom: 2px;
    padding: 0.3em 0.7em;
    animation: fadeInUp 0.5s;
}
.ipod-controls {
    margin-top: 0.5em;
}
button, .nav a, input[type="submit"], .link-btn {
    font-size: 1.15em;
    border-radius: 16px;
    padding: 1em 1.5em;
    min-width: 120px;
    min-height: 48px;
    box-shadow: 0 2px 8px #185a9d22;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    background: linear-gradient(120deg, #43cea2 0%, #185a9d 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}
button:hover, .nav a:hover, .link-btn:hover {
    background: linear-gradient(120deg, #185a9d 0%, #43cea2 100%);
    color: #fff;
    box-shadow: 0 4px 16px #185a9d44;
    transform: scale(1.04);
}
input, select, textarea {
    font-size: 1.1em;
    border-radius: 12px;
    padding: 1em 1.2em;
    margin: 0.5em 0;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #43cea2;
    background: #f4fbfd;
    transition: border 0.2s;
}
input:focus, select:focus, textarea:focus {
    border: 1.5px solid #185a9d;
}
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(24,90,157,0.18);
    z-index: 1000;
    overflow-y: auto;
    backdrop-filter: blur(4px);
    animation: modalFadeIn 0.5s;
}
.modal-content {
    background: rgba(255,255,255,0.98);
    padding: 2em 1em;
    border-radius: 18px;
    max-width: 400px;
    margin: 5em auto;
    position: relative;
    box-shadow: 0 8px 32px #185a9d44;
    animation: fadeInUp 0.5s;
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.success-message {
    color: #43cea2;
    margin-bottom: 1em;
    font-weight: bold;
    animation: fadeInUp 0.5s;
}
.error-message {
    color: #e53935;
    margin-bottom: 1em;
    font-weight: bold;
    animation: fadeInUp 0.5s;
}
.admin-section {
    margin-bottom: 2em;
    background: rgba(67,206,162,0.08);
    border-radius: 18px;
    box-shadow: 0 2px 12px #43cea244;
    padding: 1.2em 1em;
    animation: fadeInUp 0.7s;
}
.admin-section h2 {
    margin-top: 0;
    color: #185a9d;
}
.admin-actions {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1em;
}
.admin-actions button {
    min-width: 120px;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    box-shadow: 0 2px 12px #185a9d22;
    overflow: hidden;
}
.admin-table th, .admin-table td {
    padding: 0.8em 0.7em;
    text-align: left;
}
.admin-table th {
    background: #185a9d;
    color: #fff;
    font-weight: 600;
}
.admin-table tr:nth-child(even) {
    background: #eaf6fb;
}
.admin-table tr:nth-child(odd) {
    background: #fff;
}
.admin-table td {
    vertical-align: top;
}
@media (max-width: 700px) {
    .container, .auth-container {
        padding: 0.5em;
        margin: 10px auto;
        border-radius: 0;
        box-shadow: none;
    }
    table, thead, tbody, th, td, tr {
        display: block;
    }
    table.admin-table {
        min-width: 0;
        width: 100%;
        overflow-x: auto;
        border: 0;
    }
    thead {
        display: none;
    }
    tr {
        margin-bottom: 1em;
        border-bottom: 2px solid #eee;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 4px #43cea222;
        padding: 0.5em 0.7em;
    }
    body {
        font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
        background: linear-gradient(120deg, #43cea2 0%, #185a9d 100%);
        min-height: 100vh;
        margin: 0;
        padding: 0;
        color: #222;
        overscroll-behavior-y: none;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .login-container {
        max-width: 400px;
        margin: auto;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px #0001;
        padding: 2em;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .login-container form {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.2em;
    }

    .login-container label {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .login-container input {
        width: 80%;
        margin: 0 auto;
    }
    td:before {
        content: attr(data-label);
        font-weight: bold;
        color: #43cea2;
        margin-right: 1em;
        min-width: 90px;
        display: inline-block;
    }
}
@media (max-width: 600px) {
    .ipod-card, .product-card, .register-container, .login-container {
        max-width: 99vw !important;
        margin: 0.5em auto !important;
        padding: 1.2em 0.2em 1.5em 0.2em !important;
    }
    .container { padding: 0.5em; }
    .ipod-screen { width: 98vw; max-width: 98vw; height: 38vw; min-height: 120px; }
    button, .nav a, input[type="submit"], .link-btn {
        font-size: 1.1em;
        padding: 0.8em 1em;
        width: 100%;
        box-sizing: border-box;
    }
    .admin-actions {
        flex-direction: column;
        gap: 0.5em;
    }
}
