:root {
    --loquee-bg: #F7F5F2;
    --loquee-card: #FFFFFF;
    --loquee-text: #1A1A1A;
    --loquee-secondary: #7A7A7A;
    --loquee-muted: #B8B8B8;
    --loquee-accent: #6B8F71;
    --loquee-accent-light: rgba(107, 143, 113, 0.12);
    --loquee-warm: #E6DDD4;
    --loquee-warm-light: rgba(230, 221, 212, 0.5);
    --loquee-border: rgba(0,0,0,0.06);
    --loquee-error: #C45C5C;
    --loquee-success: #6B8F71;
    
    --font-serif: 'Source Serif 4', Georgia, serif;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
    
    --transition: 0.15s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--loquee-bg);
    color: var(--loquee-text);
    line-height: 1.65;
    min-height: 100vh;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

.text-secondary {
    color: var(--loquee-secondary);
}

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

/* Layout */
.container {
    max-width: 540px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: rgba(247, 245, 242, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--loquee-border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--loquee-text);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    color: var(--loquee-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    transition: all var(--transition);
}

.nav-links a:hover {
    color: var(--loquee-text);
    background: var(--loquee-warm-light);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    border-radius: 50% !important;
}

.nav-icon svg {
    opacity: 0.7;
    transition: opacity var(--transition);
}

.nav-icon:hover svg {
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--loquee-accent);
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(107, 143, 113, 0.25);
}

.btn-primary:hover {
    background: #5A7D60;
    box-shadow: 0 4px 12px rgba(107, 143, 113, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--loquee-warm);
    color: var(--loquee-text);
}

.btn-secondary:hover {
    background: #DDD0C4;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--loquee-border);
    color: var(--loquee-text);
}

.btn-outline:hover {
    background: var(--loquee-card);
    border-color: var(--loquee-muted);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.8rem;
}

/* Cards */
.card {
    background: var(--loquee-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--loquee-border);
    box-shadow: var(--shadow-sm);
}

.card-hover {
    transition: all var(--transition);
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

/* Circle Card */
.circle-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.circle-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.circle-name {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 500;
}

.active-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(123, 158, 107, 0.12);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--loquee-accent);
    font-weight: 500;
}

.active-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--loquee-accent);
    border-radius: 50%;
}

.question-preview {
    background: rgba(232, 213, 196, 0.15);
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--loquee-text);
    opacity: 0.8;
}

.circle-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-avatars {
    display: flex;
    margin-left: -8px;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--loquee-warm);
    border: 2px solid var(--loquee-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 500;
    margin-left: -8px;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar-more {
    background: var(--loquee-border);
    color: var(--loquee-secondary);
    font-size: 0.6rem;
}

.circle-status {
    font-size: 0.8rem;
    color: var(--loquee-secondary);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--loquee-secondary);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--loquee-border);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--loquee-card);
    transition: all var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--loquee-accent);
    box-shadow: 0 0 0 4px var(--loquee-accent-light);
}

.form-input::placeholder {
    color: var(--loquee-muted);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237A7A7A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* Response Card */
.response-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--loquee-card);
    border: 1px solid var(--loquee-border);
    margin-bottom: 16px;
    animation: fadeInUp 0.3s ease-out;
}

.response-card.own {
    background: rgba(123, 158, 107, 0.08);
    border-color: rgba(123, 158, 107, 0.2);
}

.response-text {
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.response-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--loquee-secondary);
}

.response-author {
    font-weight: 500;
}

/* Check-in Card */
.checkin-card {
    background: linear-gradient(135deg, var(--loquee-warm) 0%, rgba(232, 213, 196, 0.5) 100%);
    border: none;
    padding: 24px;
}

.checkin-question {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.checkin-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--loquee-secondary);
}

/* Thinking of You */
.thinking-of-you-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(232, 213, 196, 0.4) 0%, rgba(232, 213, 196, 0.25) 100%);
    border: 1px solid rgba(123, 158, 107, 0.3);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
}

.thinking-of-you-btn:hover {
    transform: scale(0.98);
    box-shadow: var(--shadow-md);
}

.thinking-of-you-btn .emoji {
    font-size: 1.5rem;
}

.thinking-of-you-btn .text {
    text-align: left;
}

.thinking-of-you-btn .title {
    font-weight: 600;
    color: var(--loquee-text);
}

.thinking-of-you-btn .subtitle {
    font-size: 0.8rem;
    color: var(--loquee-secondary);
}

.thinking-of-you-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(90deg, rgba(232, 213, 196, 0.25) 0%, rgba(232, 213, 196, 0.1) 100%);
    border: 1px solid rgba(123, 158, 107, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    animation: fadeInUp 0.3s ease-out;
}

.thinking-of-you-card .emoji {
    font-size: 1.5rem;
}

.thinking-of-you-card .content {
    flex: 1;
}

.thinking-of-you-card .message {
    font-weight: 500;
}

.thinking-of-you-card .time {
    font-size: 0.8rem;
    color: var(--loquee-secondary);
}

/* Members Section */
.members-section {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(229, 229, 229, 0.3);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.members-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.members-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--loquee-secondary);
}

.members-count {
    font-size: 0.8rem;
    color: var(--loquee-secondary);
    opacity: 0.7;
}

.members-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.member-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 60px;
}

.member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--loquee-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
}

.member-avatar.current {
    border: 2px solid var(--loquee-accent);
}

.member-name {
    font-size: 0.75rem;
    color: var(--loquee-secondary);
    text-align: center;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h2 {
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--loquee-secondary);
    margin-bottom: 24px;
}

/* Page Sections */
.page-header {
    padding: 32px 0;
}

.page-content {
    padding-bottom: 40px;
}

.section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--loquee-secondary);
    margin-bottom: 16px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

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

.modal {
    background: var(--loquee-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 90%;
    max-width: 400px;
    transform: scale(0.95);
    transition: transform 0.2s;
}

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

.modal-header {
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.25rem;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--loquee-secondary);
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-error {
    background: rgba(196, 92, 92, 0.08);
    color: var(--loquee-error);
    border: 1px solid rgba(196, 92, 92, 0.15);
}

.alert-success {
    background: var(--loquee-accent-light);
    color: var(--loquee-accent);
    border: 1px solid rgba(107, 143, 113, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .header-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-links {
        gap: 16px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 16px;
    }
}

/* Utilities */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.hidden { display: none; }
