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

:root {
    --color-bg: #faf8f5;
    --color-surface: #ffffff;
    --color-text: #2c2c2c;
    --color-muted: #6b7280;
    --color-border: #e8e4df;
    --color-accent: #b8954a;
    --color-accent-dark: #96783a;
    --color-dark: #1a1a1a;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

/* Header */
.header {
    text-align: center;
    padding: 32px 0 24px;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--color-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.subtitle {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin-top: 6px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-top: 8px;
}

.back-btn {
    display: inline-block;
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-btn:hover {
    color: var(--color-dark);
}

.header-actions,
.header-buttons {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
    width: 100%;
}

.action-btn,
.comment-btn,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 22px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none !important;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 14px rgba(26, 26, 26, 0.08);
    line-height: 1.2;
    white-space: nowrap;
}

.action-btn:hover,
.comment-btn:hover,
.btn:hover {
    transform: translateY(-1px);
}

.action-btn:active,
.comment-btn:active,
.btn:active {
    transform: translateY(0);
}

.action-btn-primary,
.comment-btn:not(.travel-btn),
.btn-primary {
    background: var(--color-dark);
    color: #fff !important;
    border-color: var(--color-dark);
}

.action-btn-primary:hover,
.comment-btn:not(.travel-btn):hover,
.btn-primary:hover {
    background: #2f2f2f;
    box-shadow: 0 8px 20px rgba(26, 26, 26, 0.16);
}

.action-btn-google,
.travel-btn,
.btn-outline.btn-google {
    background: #fff;
    color: var(--color-dark) !important;
    border-color: var(--color-border);
}

.action-btn-google:hover,
.travel-btn:hover,
.btn-outline.btn-google:hover {
    border-color: #cfd4dc;
    box-shadow: 0 8px 20px rgba(26, 26, 26, 0.08);
}

.action-btn-icon {
    flex-shrink: 0;
}

.btn-outline {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-dark);
}

.btn-block {
    width: 100%;
}

.form-intro {
    text-align: center;
    color: var(--color-muted);
    font-size: 0.92rem;
    margin-bottom: 22px;
    line-height: 1.6;
}

.submit-comment-btn,
.comment-form .btn-primary,
#submitBtn.btn-primary {
    width: 100%;
    min-height: 54px;
    margin-top: 8px;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-dark) 0%, #2d2618 100%);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(26, 26, 26, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.submit-comment-btn:hover:not(:disabled),
.comment-form .btn-primary:hover:not(:disabled),
#submitBtn.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(26, 26, 26, 0.22);
}

.submit-comment-btn:disabled,
.comment-form .btn-primary:disabled,
#submitBtn.btn-primary:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
}

/* Hero */
.hero {
    margin-bottom: 36px;
}

.hero-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--color-surface);
}

.hero-photo {
    width: 100%;
    height: auto;
    display: block;
}

/* Sections */
.satisfaction-section,
.comment-form-section,
.comments-section {
    background: var(--color-surface);
    padding: 28px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    margin-bottom: 24px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 8px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.satisfaction-login {
    text-align: center;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--color-bg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.satisfaction-login-text {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.google-signin-slot {
    display: flex;
    justify-content: center;
    min-height: 44px;
}

.google-signed-bar,
.comment-google-signed {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.google-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border);
}

.google-user-label,
.comment-google-label {
    font-size: 0.88rem;
    color: var(--color-muted);
}

.comment-google-auth {
    margin-bottom: 20px;
}

.comment-google-login {
    text-align: center;
}

.comment-google-signed strong {
    display: block;
    color: var(--color-dark);
    font-size: 1rem;
}

.google-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 3px 8px 3px 5px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
    line-height: 1;
}

.google-verified-icon {
    display: block;
    flex-shrink: 0;
}

.google-verified-check {
    display: block;
    color: #16a34a;
    flex-shrink: 0;
}

.comment-name,
.admin-comment-name {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.login-hint {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* Satisfaction */
.satisfaction-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.satisfaction-btn {
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px 24px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 90px;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
}

.satisfaction-btn:hover:not(:disabled) {
    border-color: var(--color-accent);
    background: #fff;
}

.satisfaction-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.satisfaction-btn.is-selected {
    border-color: var(--color-accent);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(184, 149, 74, 0.2);
}

.satisfaction-btn.is-loading {
    pointer-events: none;
}

.satisfaction-btn .emoji {
    font-size: 2rem;
    line-height: 1;
}

.satisfaction-btn .count {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-dark);
}

/* Comments */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    padding: 20px;
    background: var(--color-bg);
    border-radius: var(--radius);
    border-left: 3px solid var(--color-accent);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.comment-name {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.95rem;
}

.comment-date {
    color: var(--color-muted);
    font-size: 0.8rem;
}

.comment-text {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

.no-comments {
    text-align: center;
    color: var(--color-muted);
    padding: 32px 16px;
    font-size: 0.95rem;
}

/* Form */
.comment-form {
    max-width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-dark);
}

.optional {
    font-weight: 400;
    color: var(--color-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--color-bg);
    transition: border-color 0.2s;
    line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: #fff;
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px 0 8px;
    color: var(--color-muted);
    font-size: 0.8rem;
}

/* Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color-dark);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    z-index: 1000;
    animation: toastIn 0.25s ease;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

/* Responsive */
@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }

    .header-actions,
    .header-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .action-btn,
    .comment-btn,
    .btn {
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .satisfaction-btn {
        min-width: 80px;
        padding: 14px 18px;
    }

    .satisfaction-btn .emoji {
        font-size: 1.75rem;
    }

    .satisfaction-section,
    .comment-form-section,
    .comments-section {
        padding: 20px 16px;
    }
}
