/* ==========================================
   AaprilShop Gift — Auth Pages Styles
   Designed to fit exactly in one viewport
   ========================================== */

.auth-body {
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 30%, #fbcfe8 60%, #fdf2f8 100%);
    padding: 12px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
}

.auth-container.register-page {
    max-width: 480px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 24px 24px;
    border: 1px solid rgba(249, 168, 212, 0.25);
    box-shadow: 0 20px 60px rgba(236, 72, 153, 0.1), 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    animation: cardSlideUp 0.6s ease-out;
}

.auth-card.login-card {
    padding: 28px 28px;
}

.auth-card.register-card {
    padding: 22px 24px;
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-back-link {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--pink-500);
    font-weight: 600;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.auth-back-link:hover {
    color: var(--pink-700);
    transform: translateX(-4px);
}

.auth-logo-wrapper {
    text-align: center;
    margin-bottom: 6px;
}

.auth-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--pink-200);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.15);
    margin: 0 auto;
}

.auth-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
    line-height: 1.2;
}

.auth-subtitle {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 14px;
    font-weight: 500;
}

/* Alert */
.auth-alert {
    padding: 0;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 0;
}

.auth-alert.success {
    padding: 8px 12px;
    margin-bottom: 10px;
    max-height: 40px;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.auth-alert.error {
    padding: 8px 12px;
    margin-bottom: 10px;
    max-height: 40px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-form.register-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-form.register-form .form-group:nth-child(1),
.auth-form.register-form .form-group:nth-child(2) {
    grid-column: 1 / -1;
}

.auth-form.register-form .auth-btn {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.form-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-input {
    padding: 10px 12px;
    border: 1.5px solid var(--pink-100);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--pink-400);
    box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.1);
}

.form-input::placeholder {
    color: #fda4d3;
    font-size: 0.82rem;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 36px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 2px;
    transition: transform 0.2s ease;
}

.password-toggle:hover {
    transform: translateY(-50%) scale(1.15);
}

.form-error {
    font-size: 0.68rem;
    color: #dc2626;
    font-weight: 600;
    min-height: 0;
    margin-top: 0;
}

/* Auth Button */
.auth-btn {
    padding: 11px 18px;
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 50%, #db2777 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
    margin-top: 2px;
    line-height: 1.2;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

/* Divider */
.auth-divider {
    text-align: center;
    margin: 10px 0 8px;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--pink-100);
}

.auth-divider span {
    position: relative;
    background: rgba(255, 255, 255, 0.92);
    padding: 0 10px;
    font-size: 0.72rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Switch link */
.auth-switch {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 4px;
}

.auth-switch-link {
    color: var(--pink-500);
    font-weight: 700;
    transition: color 0.3s ease;
}

.auth-switch-link:hover {
    color: var(--pink-700);
}

/* Decoration circles */
.auth-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.auth-deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: var(--pink-400);
    top: -150px;
    right: -100px;
    animation: float1 8s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: var(--pink-300);
    bottom: -100px;
    left: -80px;
    animation: float2 10s ease-in-out infinite;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: var(--pink-500);
    top: 40%;
    left: 60%;
    animation: float3 12s ease-in-out infinite;
}

@keyframes float1 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-30px, 20px);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -30px);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, -20px);
    }
}

/* ==========================================
   Admin Panel Styles
   ========================================== */
.admin-body {
    min-height: 100vh;
    background: var(--pink-50);
}

.admin-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(249, 168, 212, 0.2);
    transition: all 0.3s ease;
    padding: 0;
}

.admin-navbar .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.admin-navbar .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.admin-navbar .logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--pink-200);
}

.admin-navbar .logo-text {
    font-family: var(--font-accent);
    font-size: 1.4rem;
    color: var(--pink-600);
    letter-spacing: 0.5px;
}

.admin-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.admin-nav-link {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    color: #4a2040;
    transition: all 0.3s ease;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    outline: none;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: var(--pink-100);
    color: var(--pink-600);
}

.admin-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-user-info {
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--white);
    border: 1px solid var(--pink-200);
}

.admin-user-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--pink-600);
    line-height: 1.3;
}

.admin-user-email {
    font-size: 0.7rem;
    color: var(--text-light);
    line-height: 1.2;
}

.admin-logout-btn {
    padding: 8px 18px;
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.admin-logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

/* Admin Content */
.admin-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px 30px 24px;
}

.admin-welcome {
    margin-bottom: 30px;
}

.admin-welcome h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.admin-welcome p {
    font-size: 0.92rem;
    color: var(--text-light);
}

/* Admin Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background: var(--white);
    border-radius: 18px;
    padding: 24px;
    border: 1px solid rgba(249, 168, 212, 0.12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.admin-stat-icon.pink {
    background: var(--pink-100);
}

.admin-stat-icon.purple {
    background: #f3e8ff;
}

.admin-stat-icon.amber {
    background: #fef3c7;
}

.admin-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.admin-stat-label {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 600;
    margin-top: 4px;
}

/* Orders Table */
.admin-orders-section {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid rgba(249, 168, 212, 0.12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.admin-orders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--pink-100);
}

.admin-orders-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
}

.admin-filter-group {
    display: flex;
    gap: 8px;
}

.admin-filter-btn {
    padding: 6px 16px;
    border: 1px solid var(--pink-200);
    background: var(--white);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-filter-btn.active,
.admin-filter-btn:hover {
    background: var(--pink-500);
    color: var(--white);
    border-color: var(--pink-500);
}

.admin-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-orders-table th {
    text-align: left;
    padding: 14px 20px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--pink-50);
    border-bottom: 1px solid var(--pink-100);
}

.admin-orders-table td {
    padding: 14px 20px;
    font-size: 0.88rem;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(249, 168, 212, 0.08);
    vertical-align: middle;
}

.admin-orders-table tr:hover td {
    background: var(--pink-50);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-badge.waiting {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.confirmed {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.done {
    background: #dcfce7;
    color: #166534;
}

.status-badge.cancelled {
    background: #fef2f2;
    color: #991b1b;
}

.admin-action-btn {
    padding: 6px 14px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid;
    margin-right: 4px;
}

.admin-action-btn.confirm {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

.admin-action-btn.complete {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.admin-action-btn.cancel {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.admin-action-btn.delete {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.admin-action-btn:hover {
    transform: scale(1.05);
}

.admin-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.admin-empty-icon {
    font-size: 3rem;
    margin-bottom: 14px;
}

.admin-empty-text {
    font-size: 1rem;
    font-weight: 600;
}

.admin-empty-sub {
    font-size: 0.85rem;
    margin-top: 6px;
}

/* Admin Link in Navbar */
.admin-links-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================
   Order Form Modal Styles
   ========================================== */
.order-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.order-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.order-modal {
    background: var(--white);
    border-radius: 24px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.order-modal-overlay.active .order-modal {
    transform: translateY(0) scale(1);
}

.order-modal-header {
    padding: 28px 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
}

.order-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pink-50);
    border: 1px solid var(--pink-100);
    color: var(--text-medium);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-modal-close:hover {
    background: var(--pink-500);
    color: var(--white);
    border-color: var(--pink-500);
}

.order-modal-body {
    padding: 24px 28px 28px;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-form .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.order-form .form-input,
.order-form .form-select {
    padding: 13px 16px;
    border: 2px solid var(--pink-100);
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.order-form .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ec4899' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.order-form .form-input:focus,
.order-form .form-select:focus {
    border-color: var(--pink-400);
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.1);
}

.order-form .form-textarea {
    padding: 13px 16px;
    border: 2px solid var(--pink-100);
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
    resize: vertical;
    min-height: 80px;
}

.order-form .form-textarea:focus {
    border-color: var(--pink-400);
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.1);
}

.order-form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.order-submit-btn {
    flex: 1;
    padding: 14px 24px;
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 50%, #db2777 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.order-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.order-wa-btn {
    flex: 1;
    padding: 14px 24px;
    background: #25D366;
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.order-wa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.order-success-msg {
    text-align: center;
    padding: 30px 20px;
    display: none;
}

.order-success-msg.show {
    display: block;
}

.order-success-icon {
    font-size: 3.5rem;
    margin-bottom: 14px;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.order-success-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.order-success-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==========================================
   Share Buttons Styles
   ========================================== */
.share-buttons {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--pink-100);
    background: var(--pink-50);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--text-medium);
}

.share-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.2);
}

.share-btn.wa:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.share-btn.fb:hover {
    background: #1877F2;
    color: white;
    border-color: #1877F2;
}

.share-btn.tw:hover {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.share-btn.copy:hover {
    background: var(--pink-500);
    color: white;
    border-color: var(--pink-500);
}

.share-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 4px;
}

/* ==========================================
   Google Maps Embed
   ========================================== */
.maps-wrapper {
    margin-top: 40px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--pink-100);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.maps-wrapper iframe {
    width: 100%;
    height: 350px;
    border: 0;
    display: block;
}

/* ==========================================
   Order Button in Product Card
   ========================================== */
.btn-order-form {
    padding: 10px 18px;
    background: var(--white);
    color: var(--pink-600);
    border: 2px solid var(--pink-300);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.btn-order-form:hover {
    background: var(--pink-50);
    transform: scale(1.05);
}

/* Nav Auth Links */
.nav-auth-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid var(--pink-100);
}

.nav-auth-link {
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.82rem;
    transition: all 0.3s ease;
}

.nav-auth-link.login-link {
    color: var(--pink-600);
    border: 1px solid var(--pink-200);
    background: var(--white);
}

.nav-auth-link.login-link:hover {
    background: var(--pink-50);
}

.nav-auth-link.register-link {
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: var(--white);
    border: none;
}

.nav-auth-link.register-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

/* ==========================================
   Export buttons
   ========================================== */
.export-buttons {
    display: flex;
    gap: 8px;
}

.export-btn {
    padding: 8px 18px;
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--pink-200);
    background: var(--white);
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 6px;
}

.export-btn:hover {
    background: var(--pink-100);
    transform: translateY(-1px);
}

/* ==========================================
   Responsive for Auth / Admin
   ========================================== */
@media (max-width: 768px) {
    .auth-card {
        padding: 20px 18px;
    }

    .auth-card.login-card {
        padding: 22px 20px;
    }

    .auth-card.register-card {
        padding: 16px 16px;
    }

    .auth-title {
        font-size: 1.1rem;
    }

    .auth-subtitle {
        margin-bottom: 10px;
        font-size: 0.78rem;
    }

    .auth-logo {
        width: 44px;
        height: 44px;
    }

    .auth-form {
        gap: 10px;
    }

    .auth-form.register-form {
        gap: 8px;
    }

    .form-input {
        padding: 9px 10px;
        font-size: 0.82rem;
    }

    .auth-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .auth-divider {
        margin: 8px 0 6px;
    }

    .auth-container {
        max-width: 360px;
    }

    .auth-container.register-page {
        max-width: 420px;
    }

    .admin-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .admin-stat-card {
        padding: 18px;
        gap: 12px;
    }
    
    .admin-stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
    
    .admin-stat-value {
        font-size: 1.5rem;
    }
    
    .admin-stat-label {
        font-size: 0.78rem;
    }

    .admin-navbar .nav-container {
        height: auto;
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .admin-nav-menu {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .admin-nav-link {
        white-space: nowrap;
    }
    
    .admin-nav-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .admin-user-email {
        display: none;
    }
    
    .admin-nav-badge {
        padding: 3px 10px;
        font-size: 0.68rem;
        margin-left: auto;
    }
    
    .admin-nav-right {
        width: 100%;
        justify-content: flex-end;
    }
    
    .admin-user-info {
        display: none;
    }
    
    .admin-logout-btn {
        font-size: 0.78rem;
        padding: 7px 16px;
        width: 100%;
    }

    .admin-orders-header {
        padding: 16px;
    }
    
    .admin-orders-header > div {
        width: 100%;
    }
    
    .admin-filter-group {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        width: 100%;
        margin-bottom: 8px;
    }
    
    .admin-filter-btn {
        font-size: 0.72rem;
        padding: 6px 8px;
        white-space: nowrap;
    }

    .admin-orders-table {
        display: block;
    }

    .admin-orders-table thead {
        display: none;
    }
    
    .admin-orders-table tbody {
        display: block;
    }
    
    .admin-orders-table tr {
        display: block;
        margin-bottom: 16px;
        border: 2px solid var(--pink-100);
        border-radius: 16px;
        padding: 16px;
        background: var(--white);
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    
    .admin-orders-table td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        padding: 8px 0;
        border: none;
        font-size: 0.8rem;
        gap: 12px;
    }
    
    .admin-orders-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--pink-600);
        min-width: 80px;
        flex-shrink: 0;
        font-size: 0.74rem;
    }
    
    .admin-orders-table td:not(:last-child) {
        border-bottom: 1px solid var(--pink-50);
    }
    
    .admin-orders-table td:last-child {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding-top: 12px;
    }
    
    .admin-orders-table td:last-child::before {
        margin-bottom: 6px;
    }
    
    .admin-action-btn {
        font-size: 0.75rem;
        padding: 8px 12px;
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .status-badge {
        font-size: 0.72rem;
        padding: 4px 12px;
    }
    
    .admin-content {
        padding: 20px 16px;
    }
    
    .admin-welcome {
        margin-bottom: 20px;
    }
    
    .admin-welcome h2 {
        font-size: 1.4rem;
    }
    
    .admin-welcome p {
        font-size: 0.88rem;
    }
    
    .admin-orders-title {
        font-size: 1.05rem;
    }
    
    .admin-empty {
        padding: 40px 20px;
    }
    
    .admin-empty-icon {
        font-size: 2.5rem;
    }
    
    .admin-empty-text {
        font-size: 0.92rem;
    }
    
    .admin-empty-sub {
        font-size: 0.8rem;
    }

    .order-modal {
        border-radius: 20px;
    }

    .order-modal-header {
        padding: 20px 20px 0;
    }

    .order-modal-body {
        padding: 20px;
    }

    .order-form-buttons {
        flex-direction: column;
    }

    .nav-auth-links {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        justify-content: center;
        width: 100%;
        padding-top: 8px;
        border-top: 1px solid var(--pink-100);
    }

    .export-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        width: 100%;
    }
    
    .export-btn {
        font-size: 0.72rem;
        padding: 8px 10px;
        min-width: unset;
    }
}

/* Extra small screens — ensure register fits in viewport */
@media (max-width: 480px) {
    .auth-body {
        padding: 6px;
    }

    .auth-card.register-card {
        padding: 12px 12px;
    }

    .auth-card.login-card {
        padding: 16px 14px;
    }

    .auth-logo-wrapper {
        margin-bottom: 3px;
    }

    .auth-logo {
        width: 34px;
        height: 34px;
    }

    .auth-title {
        font-size: 0.95rem;
        margin-bottom: 1px;
    }

    .auth-subtitle {
        font-size: 0.7rem;
        margin-bottom: 6px;
    }

    .auth-back-link {
        font-size: 0.68rem;
        margin-bottom: 3px;
    }

    .auth-form {
        gap: 7px;
    }

    .auth-form.register-form {
        gap: 5px;
    }

    .form-label {
        font-size: 0.62rem;
    }

    .form-group {
        gap: 2px;
    }

    .form-input {
        padding: 7px 8px;
        font-size: 0.75rem;
        border-radius: 6px;
    }

    .form-input::placeholder {
        font-size: 0.72rem;
    }

    .password-toggle {
        font-size: 0.75rem;
        right: 6px;
    }

    .auth-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 6px;
        margin-top: 0;
    }

    .auth-divider {
        margin: 5px 0 3px;
    }

    .auth-divider span {
        font-size: 0.6rem;
    }

    .auth-switch {
        font-size: 0.7rem;
        margin-top: 2px;
    }

    .auth-alert.success,
    .auth-alert.error {
        padding: 5px 8px;
        font-size: 0.68rem;
        margin-bottom: 5px;
    }
}