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

:root {
    --color-evergreen: #153f2c;
    --color-evergreen-2: #24573f;
    --color-cranberry: #d84a3e;
    --color-cranberry-dark: #a9342d;
    --color-paper: #fbfaf5;
    --color-paper-2: #f1eadc;
    --color-gold: #d8a84e;
    --color-ink: #143629;
    --color-muted: #637469;
    --color-border: #e2d9c8;
    --shadow-soft: 0 18px 50px rgba(20, 54, 41, 0.16);
    --radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(216, 168, 78, 0.22), transparent 34rem),
        linear-gradient(135deg, #123a29 0%, #285c42 48%, #86a95d 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px;
    padding-top: 32px;
    color: var(--color-ink);
}

.container {
    width: 100%;
    max-width: 1120px;
}

.card {
    background: transparent;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: none;
}

h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
    margin-top: 20px;
}

.subtitle {
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
}

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

label {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

input,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

textarea {
    min-height: 118px;
    font: inherit;
    line-height: 1.45;
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-gold);
}

textarea[readonly] {
    background-color: #f7fafc;
    color: #4a5568;
    cursor: text;
}

/* Large form input for create group page */
.form-input-large {
    width: 100%;
    padding: 18px 24px !important;
    border: 3px solid #e2e8f0 !important;
    font-size: 1.3rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
}

input[readonly] {
    background-color: #f7fafc;
    color: #4a5568;
    cursor: text;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

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

.btn-primary {
    background: var(--color-cranberry);
    border: 3px solid var(--color-cranberry-dark);
    color: white;
    width: 100%;
}

/* Large button for create group form */
.btn-form-large {
    font-size: 1.3rem !important;
    padding: 18px 24px !important;
    font-weight: 600 !important;
}

.btn-secondary {
    background: var(--color-evergreen);
    border: 3px solid #fff;
    color: white;
}

.btn-secondary:hover {
    background: var(--color-evergreen-2);
}

.btn-whatsapp {
    background: #25D366;
    border: 3px solid #128C7E;
    color: white;
}

.btn-whatsapp:hover {
    background: #20BA5A;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    width: 100%;
}

.admin-badge {
    background: #F5624D;
    border: 2px solid #c41e3a;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}

.admin-switch-container {
    text-align: center;
    margin: 15px 0 20px 0;
}

.admin-switch-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
}

.admin-switch-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.url-section {
    background: #e8c99b;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.label {
    color: #0F8A5F;
    font-weight: 600;
    margin-bottom: 10px;
}

.url-display {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
}

.url-display input {
    grid-column: 1 / -1;
}

.url-display button {
    grid-column: auto;
}

.members-section {
    margin: 20px 0;
}

.members-list {
    list-style: none;
    padding: 0;
}

.members-list li {
    padding: 12px 16px;
    background: #e8c99b;
    border-radius: 8px;
    margin-bottom: 8px;
    color: #0F8A5F;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge {
    background: #0F8A5F;
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.state-info {
    background: #e8c99b;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 20px 0;
}

.state-info p {
    color: #0c4826;
    margin: 0;
}

.state-info strong {
    color: #0F8A5F;
    text-transform: capitalize;
}

.welcome-message {
    text-align: center;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
}

.info-message {
    text-align: center;
    color: #0c4826;
    padding: 16px;
    background: #e8c99b;
    border-radius: 8px;
    margin: 20px 0;
}

.success-message {
    text-align: center;
    color: #0F8A5F;
    padding: 16px;
    background: #e8c99b;
    border: 2px solid #0F8A5F;
    border-radius: 8px;
    margin: 20px 0;
}

.error-message {
    text-align: center;
    color: #e53e3e;
    padding: 16px;
    background: #fff5f5;
    border: 2px solid #fc8181;
    border-radius: 8px;
    margin: 20px 0;
}

.assignment-card {
    background: #F5624D;
    border: 3px solid #c41e3a;
    color: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.assignment-card h2 {
    color: white;
    margin-bottom: 20px;
}

.assignment-name {
    font-size: 2rem;
    font-weight: bold;
    margin: 20px 0;
}

.assignment-card .info-message {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.assignment-instruction {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 10px 0;
}

spoiler-span {
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    min-width: 200px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

spoiler-span:hover {
    transform: scale(1.05);
}

/* Top bar: back on the left, secondary links on the right */
.page-top {
    width: 100%;
    max-width: 1120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0 auto 8px;
}

.page-back {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 4px;
    opacity: 0.9;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.page-back:hover {
    opacity: 1;
    text-decoration: underline;
}

.page-top .language-switcher {
    margin-top: 0;
    justify-content: flex-end;
}

/* Page Logo (appears on all pages) */
.page-logo {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.logo-image-header {
    max-width: 100%;
    width: 250px;
    height: auto;
}

/* Landing Page Styles */

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 0;
}

.hero-title {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    line-height: 1.5;
}

/* My Groups Section */
.my-groups-teaser {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 24px 0 36px 0;
    padding: 22px 24px;
    background: var(--color-paper);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.my-groups-teaser .my-groups-title {
    margin-bottom: 4px;
}

.my-groups-teaser p {
    color: var(--color-muted);
    margin: 0;
}

.my-groups-teaser .btn {
    width: auto;
}

.my-groups-page .my-groups-list {
    margin: 8px 0 24px;
}

.my-group-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.my-group-remove {
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-muted);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0 14px;
}

.my-group-remove:hover {
    color: var(--color-cranberry-dark);
    border-color: #efc4bd;
    background: #fff5f3;
}

.my-groups-empty {
    display: grid;
    gap: 16px;
    justify-items: start;
    padding: 20px;
    background: var(--color-paper);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.my-groups-empty p {
    color: var(--color-muted);
    margin: 0;
}

.my-groups-empty .btn {
    width: auto;
}

.my-groups-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.my-groups-actions .btn {
    width: auto;
}

.my-groups-section {
    margin: 24px 0 36px 0;
    padding: 28px;
    background: var(--color-paper);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.my-groups-title {
    text-align: left;
    color: var(--color-ink);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.my-groups-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.my-group-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.my-group-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: var(--color-paper-2);
}

.my-group-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.my-group-info {
    flex: 1;
}

.my-group-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-evergreen);
    margin-bottom: 4px;
}

.my-group-date {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.my-group-arrow {
    font-size: 1.5rem;
    color: var(--color-evergreen);
    font-weight: bold;
}

/* Final CTA Section */
.final-cta-section {
    text-align: center;
    margin-top: 28px;
    padding: 34px 30px;
    background: var(--color-paper);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.final-cta-title {
    font-size: 2.2rem;
    color: var(--color-ink);
    margin-bottom: 15px;
    text-shadow: none;
}

.final-cta-subtitle {
    font-size: 1.2rem;
    color: var(--color-muted);
    margin-bottom: 25px;
}

.logo {
    text-align: center;
    margin-top: -20px;
    margin-bottom: 0px;
}

.logo-image {
    max-width: 100%;
    width: 300px;
    height: auto;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.how-it-works {
    margin: 0 0 28px 0;
    padding: 28px;
    background: var(--color-paper);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.how-it-works h2 {
    text-align: left;
    color: var(--color-ink);
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.step {
    display: grid;
    gap: 14px;
    align-items: start;
    padding: 18px;
    background: white;
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    border: 1px solid var(--color-border);
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-number {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: var(--color-evergreen);
    border: 0;
    color: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    position: static;
    box-shadow: none;
}

.step-content h3 {
    margin: 0 0 5px 0;
    color: var(--color-ink);
    font-size: 1.2rem;
}

.step-content p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.btn-hero {
    font-size: 1.8rem;
    padding: 21px 52px;
    margin-top: 30px;
    box-shadow: 0 6px 18px rgba(245, 98, 77, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 6px 18px rgba(245, 98, 77, 0.5);
    }
    50% {
        box-shadow: 0 8px 24px rgba(245, 98, 77, 0.7);
    }
}

.btn-hero:hover {
    box-shadow: 0 6px 20px rgba(45, 122, 62, 0.5);
}

.btn-back {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 20px;
    display: block;
    text-align: center;
    transition: all 0.2s;
    opacity: 0.8;
}

.btn-back:hover {
    opacity: 1;
    text-decoration: underline;
}

/* History Section */
.history-section {
    margin-top: 28px;
    padding: 28px;
    background: var(--color-paper);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.history-section h2 {
    text-align: left;
    color: var(--color-ink);
    font-size: 2rem;
    margin-bottom: 20px;
}

.history-content {
    color: var(--color-ink);
}

.history-intro {
    text-align: left;
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--color-muted);
}

.history-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.history-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: left;
    transition: all 0.3s ease;
}

.history-card:hover {
    transform: translateY(-5px);
    background: var(--color-paper-2);
    border-color: var(--color-border);
    box-shadow: 0 8px 20px rgba(20, 54, 41, 0.12);
}

.history-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.history-card h3 {
    color: var(--color-ink);
    font-size: 1.2rem;
    margin: 10px 0;
}

.history-card p {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.history-brazil {
    background: var(--color-evergreen);
    border: 1px solid var(--color-evergreen-2);
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 30px;
    position: relative;
}

.history-brazil-icon {
    font-size: 2.2rem;
    text-align: left;
    margin-bottom: 15px;
}

.history-brazil h3 {
    color: white;
    font-size: 1.5rem;
    text-align: left;
    margin-bottom: 15px;
}

.history-brazil p {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: left;
}

.history-names {
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffe8ba;
    margin-top: 20px;
    margin-bottom: 0;
}

/* Statistics Section */
.stats-section {
    margin-top: 28px;
    padding: 28px;
    background: var(--color-paper);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.stats-section h2 {
    text-align: left;
    color: var(--color-ink);
    font-size: 2rem;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 25px 20px;
    text-align: left;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(20, 54, 41, 0.12);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-ink);
    margin: 10px 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.stat-loading {
    font-size: 2rem;
    color: var(--color-muted);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Language Switcher */
.language-switcher {
    text-align: center;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lang-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    cursor: pointer;
}

.lang-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.55;
    padding: 30px 20px 20px 20px;
    margin-top: 40px;
    width: 100%;
}

.footer p {
    margin: 0;
}

.footer p + p {
    margin-top: 4px;
    opacity: 0.9;
}

/* Organizer Control Room Redesign */
.group-container {
    max-width: 1120px;
}

.group-shell,
.landing-shell,
.create-shell {
    background: var(--color-paper);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 28px;
}

.group-header,
.landing-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.eyebrow,
.panel-label {
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.panel-label {
    color: rgba(255, 255, 255, 0.72);
}

.group-header h1,
.landing-hero h1,
.join-panel h2,
.section-heading h2,
.suggestion-group h3,
.assignment-suggestions-card h3 {
    color: var(--color-ink);
    text-align: left;
    text-shadow: none;
    margin-top: 0;
}

.group-header h1,
.landing-hero h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
}

.group-state-pill {
    background: var(--color-paper-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-ink);
    font-weight: 800;
    padding: 9px 12px;
    white-space: nowrap;
}

.group-state-pill[data-state="drawing"] {
    background: #f7e4dc;
    color: var(--color-cranberry-dark);
}

.group-state-pill[data-state="error"] {
    background: #fff1f0;
    color: var(--color-cranberry-dark);
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
    align-items: start;
}

.next-step-panel {
    background: var(--color-evergreen);
    color: white;
    border-radius: var(--radius);
    padding: 22px;
    position: sticky;
    top: 18px;
}

.next-step-panel h2 {
    color: white;
    font-size: 1.8rem;
    line-height: 1.08;
    margin: 0 0 12px;
}

.next-step-panel p {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.5;
}

.next-step-panel .btn {
    margin-top: 18px;
}

.member-view-link {
    display: block;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: var(--radius);
    margin-top: 10px;
    padding: 11px 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.2s;
}

.member-view-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.56);
    transform: translateY(-1px);
}

.admin-checklist {
    display: grid;
    gap: 8px;
    list-style: none;
    margin-top: 18px;
}

.admin-checklist li {
    display: flex;
    gap: 10px;
    align-items: center;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 700;
}

.admin-checklist span {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
}

.admin-checklist .is-done {
    color: white;
}

.admin-checklist .is-done span {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-evergreen);
}

.workspace-main {
    display: grid;
    gap: 16px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.summary-card,
.panel-card,
.suggestions-panel,
.join-panel,
.product-preview {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px;
}

.summary-card strong {
    display: block;
    color: var(--color-ink);
    font-size: 1.6rem;
    line-height: 1;
}

.summary-card span {
    color: var(--color-muted);
    font-weight: 700;
    font-size: 0.9rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.section-heading h2 {
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.section-heading p,
.join-panel .subtitle,
.landing-copy p {
    color: var(--color-muted);
    line-height: 1.55;
    margin: 0;
    text-align: left;
}

.invite-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.invite-actions input {
    grid-column: 1 / -1;
}

.share-message-box {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.share-message-box label {
    color: var(--color-ink);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.whatsapp-pack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.whatsapp-pack .btn {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
}

.share-joined-btn {
    margin: 0 0 14px;
    width: 100%;
}

.members-list li {
    background: var(--color-paper);
    border: 1px solid var(--color-border);
    color: var(--color-ink);
    gap: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.member-meta {
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: right;
}

.member-remove {
    border: 1px solid #efc4bd;
    background: #fff5f3;
    color: var(--color-cranberry-dark);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 7px 10px;
}

.member-remove:hover {
    background: #fde7e2;
}

.rules-form {
    display: grid;
    gap: 12px;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rules-form label {
    color: var(--color-ink);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.rules-form input,
.rules-form textarea {
    margin-top: 8px;
}

.rules-form textarea {
    min-height: 96px;
}

.rules-form .btn {
    justify-self: start;
}

.rules-list {
    display: grid;
    gap: 10px;
}

.rule-item {
    display: grid;
    gap: 4px;
    background: var(--color-paper);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 12px;
}

.rule-item span {
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.rule-item strong {
    color: var(--color-ink);
    font-size: 1rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.suggestion-form {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.suggestion-form label,
.join-panel label,
.create-shell label {
    color: var(--color-ink);
}

.suggestion-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.suggestions-list {
    display: grid;
    gap: 12px;
}

.suggestion-group {
    background: var(--color-paper);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 14px;
}

.suggestion-group h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.suggestion-group ul,
.assignment-suggestions-card ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.suggestion-group li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    background: white;
    border-radius: var(--radius);
    padding: 9px 10px;
    color: var(--color-ink);
}

.suggestion-remove {
    border: none;
    background: transparent;
    color: var(--color-cranberry);
    cursor: pointer;
    font-weight: 800;
}

.empty-state {
    color: var(--color-muted);
    background: var(--color-paper);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius);
    padding: 12px;
}

.assignment-card {
    background: var(--color-cranberry);
    border-color: var(--color-cranberry-dark);
}

.assignment-suggestions-card {
    background: white;
    color: var(--color-ink);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px;
    margin-top: 0;
}

.assignment-suggestions-card li {
    background: var(--color-paper);
    border-radius: var(--radius);
    padding: 9px 10px;
}

.join-panel {
    max-width: 640px;
    margin: 0 auto;
}

.join-panel .subtitle {
    margin-bottom: 24px;
}

.success-message.compact {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.32);
    color: white;
    margin: 18px 0 0;
}

.admin-switch-link {
    border-radius: var(--radius);
}

.landing-shell {
    margin-bottom: 36px;
}

.blog-shell,
.blog-article-shell {
    background: var(--color-paper);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 28px;
}

.blog-header,
.blog-article-header {
    max-width: 780px;
    margin-bottom: 24px;
}

.blog-header h1,
.blog-article-header h1 {
    color: var(--color-ink);
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 1;
    margin-bottom: 14px;
    text-align: left;
}

.blog-header p,
.blog-article-header p,
.blog-article-content p,
.blog-article-content li {
    color: var(--color-muted);
    line-height: 1.65;
}

.blog-featured-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.blog-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
}

.blog-card-meta {
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.blog-card h2 {
    margin: 8px 0;
}

.blog-card h2,
.blog-card h2 a,
.blog-article-content h2 {
    color: var(--color-ink);
}

.blog-card h2 a,
.blog-read-link {
    text-decoration: none;
}

.blog-read-link {
    color: var(--color-cranberry-dark);
    display: inline-block;
    font-weight: 800;
    margin-top: 14px;
}

.blog-article-header .btn,
.blog-cta .btn {
    margin-top: 18px;
    width: auto;
}

.blog-article-content {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
}

.blog-article-content h2 {
    font-size: 1.45rem;
    margin: 28px 0 10px;
}

.blog-article-content ul {
    display: grid;
    gap: 8px;
    margin: 12px 0 0 20px;
}

.blog-callout,
.blog-cta {
    background: var(--color-paper);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px;
    margin-top: 16px;
}

.blog-cta {
    margin-top: 32px;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 28px;
    align-items: center;
}

.landing-copy p {
    font-size: 1.1rem;
    margin-top: 14px;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
}

.hero-actions .btn {
    width: auto;
}

.product-preview {
    background: var(--color-evergreen);
    color: white;
    padding: 18px;
}

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

.preview-header span {
    background: rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: 6px 9px;
    font-weight: 700;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.preview-stats div {
    background: var(--color-paper);
    border-radius: var(--radius);
    color: var(--color-ink);
    padding: 12px;
}

.preview-stats strong {
    display: block;
    font-size: 1.5rem;
}

.preview-stats span {
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.create-shell {
    max-width: 680px;
    margin: 0 auto;
}

.create-shell h2,
.create-shell .subtitle {
    color: var(--color-ink);
    text-align: left;
}

.create-shell .subtitle {
    color: var(--color-muted);
}

.create-shell .btn-back {
    color: var(--color-evergreen);
}

@media (max-width: 640px) {
    body {
        padding-top: 20px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .page-logo {
        margin-bottom: 15px;
    }

    .logo-image-header {
        width: 200px;
    }

    .card {
        padding: 0;
    }

    h1 {
        font-size: 2rem;
    }

    .logo-image {
        width: 210px;
    }

    .how-it-works h2 {
        font-size: 1.5rem;
        color: #fff;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .step {
        padding: 15px 15px 15px 30px;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        border-width: 3px;
        left: -22px;
    }

    .step-content h3 {
        font-size: 1.2rem;
    }

    .step-content p {
        font-size: 0.9rem;
    }

    .btn-hero {
        font-size: 1.6rem;
        padding: 18px 40px;
    }

    /* Hero Section Mobile */
    .hero-section {
        margin-bottom: 35px;
        padding: 20px 0;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    /* My Groups Mobile */
    .my-groups-section {
        margin: 30px 0 40px 0;
        padding: 20px;
    }

    .my-groups-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .my-group-card {
        padding: 14px 16px;
        gap: 12px;
    }

    .my-group-icon {
        font-size: 1.7rem;
    }

    .my-group-name {
        font-size: 1rem;
    }

    .my-group-date {
        font-size: 0.8rem;
    }

    .my-group-arrow {
        font-size: 1.3rem;
    }

    /* Admin Switch Mobile */
    .admin-switch-link {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    /* Final CTA Mobile */
    .final-cta-section {
        margin-top: 40px;
        padding: 30px 20px;
    }

    .final-cta-title {
        font-size: 1.7rem;
        margin-bottom: 12px;
    }

    .final-cta-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .url-display {
        grid-template-columns: 1fr;
    }

    .url-display input {
        grid-column: 1;
    }

    .url-display button {
        grid-column: 1;
        width: 100%;
    }

    .assignment-name {
        font-size: 1.5rem;
    }

    /* History Section Mobile */
    .history-section {
        margin-top: 40px;
        padding-top: 30px;
    }

    .history-section h2 {
        font-size: 1.6rem;
    }

    .history-intro {
        font-size: 1rem;
    }

    .history-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .history-icon {
        font-size: 2.5rem;
    }

    .history-card h3 {
        font-size: 1.1rem;
    }

    .history-card p {
        font-size: 0.85rem;
    }

    .history-brazil {
        padding: 20px;
    }

    .history-brazil h3 {
        font-size: 1.3rem;
    }

    .history-brazil p {
        font-size: 0.9rem;
        text-align: left;
    }

    .history-names {
        font-size: 1rem;
    }

    /* Statistics Section Mobile */
    .stats-section {
        margin-top: 40px;
        padding-top: 30px;
    }

    .stats-section h2 {
        font-size: 1.6rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
        min-height: 50px;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Create Group Form Mobile */
    .form-input-large {
        width: 100%;
        padding: 16px 20px !important;
        font-size: 1.1rem !important;
    }

    .btn-form-large {
        font-size: 1.1rem !important;
        padding: 16px 20px !important;
    }

    .create-group-form label {
        font-size: 1rem;
    }

    .group-shell,
    .landing-shell,
    .create-shell,
    .blog-shell,
    .blog-article-shell,
    .blog-article-content {
        padding: 18px;
    }

    .group-header,
    .landing-header,
    .workspace-grid,
    .landing-hero,
    .suggestion-input-row,
    .invite-actions,
    .rules-grid,
    .whatsapp-pack {
        grid-template-columns: 1fr;
        display: grid;
    }

    .group-header h1,
    .landing-hero h1 {
        font-size: 2rem;
    }

    .blog-header h1,
    .blog-article-header h1 {
        font-size: 2rem;
    }

    .group-state-pill {
        justify-self: start;
    }

    .next-step-panel {
        position: static;
    }

    .summary-grid,
    .preview-stats {
        grid-template-columns: 1fr;
    }

    .suggestion-input-row .btn,
    .invite-actions .btn,
    .hero-actions .btn {
        width: 100%;
    }

    .member-meta {
        text-align: left;
    }

    .members-list li {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .member-remove {
        width: 100%;
    }

    .rules-form .btn,
    .share-message-box .btn {
        width: 100%;
    }
}
