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

:root {
    --shop-accent: #B50AB5;
    --shop-accent-soft: #FFD7E9;
    --shop-accent-soft-hover: #FFC4F8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    background: white;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 2rem;
    border-top: 1px solid #f0f0f0;
}

.bottom-nav a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
}

.bottom-nav a.active {
    color: #ffb6c1;
    font-weight: 600;
}

.bottom-nav a:hover {
    color: #ffb6c1;
}

/* ========== หน้าอื่นๆ (มี header แบบธรรมดา) ========== */
body:not(.page-promotion) .hero-promotion {
    display: none;
}

header {
    background: white;
    color: #333;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

header h1 {
    font-size: 1.25rem;
    color: black;
}

nav a {
    color: #666;
    text-decoration: none;
    margin-left: 1rem;
}

nav a:hover {
    color: #ffb6c1;
}

main {
    flex: 1;
    padding: 2rem 1.5rem 100px;
}

footer {
    background: #f8f8f8;
    color: #666;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Service list */
.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.service-card {
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid #ffb6c1;
    background: white;
    text-decoration: none;
    color: black;
    text-align: center;
}

/* ========== หน้า Login ========== */
.page-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 2rem 1.5rem;
}

.login-container {
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.login-header {
    margin-bottom: 2rem;
}

.login-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #FF0FE3 0%, #FFF672 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-logo img {
    width: 115%;
    height: 115%;
    object-fit: contain;
}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: black;
    margin-bottom: 0.25rem;
}

.login-subtitle {
    font-size: 0.95rem;
    color: #333;
    font-weight: 400;
}

.login-form {
    margin-bottom: 1.5rem;
}

.login-form .form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.login-form label {
    display: block;
    font-size: 0.9rem;
    color: black;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
}

.login-form input:focus {
    border-color: #ff6b9d;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 2.75rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.toggle-password .eye-icon {
    width: 20px;
    height: 20px;
    color: #666;
}

.btn-login {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #B50AB5;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 0.5rem;
}

.btn-login:hover {
    opacity: 0.9;
}

.link-forgot {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #e74c3c;
    text-decoration: none;
}

.link-forgot:hover {
    text-decoration: underline;
}

.social-login {
    margin: 1.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
}

.social-divider {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 1rem;
}

.social-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
}

.social-btn svg {
    width: 22px;
    height: 22px;
}

.social-facebook {
    color: #1877f2;
}

.social-facebook svg {
    color: #1877f2;
}

.social-line {
    color: #00b900;
}

.social-line svg {
    color: #00b900;
}

.social-sep {
    color: #ddd;
    font-size: 1rem;
}

.register-text {
    font-size: 0.9rem;
    color: #333;
}

.link-register {
    color: #e91e63;
    font-weight: 600;
    text-decoration: none;
}

.link-register:hover {
    text-decoration: underline;
}

/* ========== หน้า Dashboard (หลัง Login) ========== */
.page-dashboard {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: white;
}

.dashboard-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: white;
    border-bottom: 1px solid #eee;
    gap: 1rem;
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: black;
    display: block;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: black;
    font-weight: 700;
    font-size: 1.1rem;
}

.header-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ffe4ec;
    border-radius: 50%;
}

.header-logo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.dashboard-main {
    flex: 1;
    padding: 2rem 1.5rem 6rem;
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: black;
    margin-bottom: 2rem;
}

.add-shop-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: black;
    max-width: 200px;
}

.add-shop-box {
    width: 120px;
    height: 120px;
    border: 2px dashed #333;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s, background 0.2s;
}

.add-shop-card:hover .add-shop-box {
    border-color: #9c27b0;
    background: rgba(156, 39, 176, 0.05);
}

.add-icon {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
}

.add-shop-label {
    font-size: 1rem;
    font-weight: 500;
}

.dashboard-footer {
    background: #7b1fa2;
    color: white;
    text-align: center;
    padding: 1rem 1.5rem;
}

.dashboard-footer p {
    margin: 0;
    font-size: 0.9rem;
}
