/* Flavorist Creator Portal */

.flavorist-creator-page,
.flavorist-dashboard {
    min-height: 100vh;
    background: #f7f7f5;
    padding: 60px 20px;
}

.flavorist-auth-card {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 24px;
    padding: 42px;
    box-shadow: 0 12px 45px rgba(0,0,0,.06);
}

.flavorist-brand {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    color: #111;
    margin-bottom: 22px;
}

.flavorist-auth-card h1 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 30px;
    line-height: 1.2;
    color: #111;
}

.flavorist-subtitle {
    text-align: center;
    color: #777;
    line-height: 1.6;
    margin: 0 0 30px;
}

.flavorist-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flavorist-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.flavorist-form label {
    font-size: 14px;
    font-weight: 650;
    color: #222;
    margin-top: 8px;
}

.flavorist-form input,
.flavorist-form select,
.flavorist-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 11px;
    padding: 13px 14px;
    background: #fff;
    color: #111;
    font: inherit;
    outline: none;
}

.flavorist-form input:focus,
.flavorist-form select:focus,
.flavorist-form textarea:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0,0,0,.07);
}

.flavorist-primary-button,
.flavorist-outline-button {
    display: inline-block;
    text-decoration: none;
    border-radius: 11px;
    padding: 13px 18px;
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
}

.flavorist-primary-button {
    background: #111;
    color: #fff;
    border: 1px solid #111;
    margin-top: 12px;
}

.flavorist-primary-button.inline {
    width: auto;
}

.flavorist-outline-button {
    background: #fff;
    color: #111;
    border: 1px solid #ddd;
}

.flavorist-auth-footer {
    text-align: center;
    margin-top: 25px;
    color: #777;
    font-size: 14px;
}

.flavorist-auth-footer a {
    color: #111;
    font-weight: 700;
}

.flavorist-alert {
    padding: 13px 15px;
    border-radius: 11px;
    margin-bottom: 20px;
    font-size: 14px;
}

.flavorist-alert.error {
    color: #a51d2d;
    background: #fff1f2;
    border: 1px solid #ffd5da;
}

.flavorist-alert.success {
    color: #176b37;
    background: #effaf2;
    border: 1px solid #ccebd5;
}

.flavorist-dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

.flavorist-dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 30px;
}

.flavorist-eyebrow {
    color: #888;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.flavorist-dashboard-top h1 {
    margin: 7px 0;
    color: #111;
}

.flavorist-dashboard-top p {
    margin: 0;
    color: #777;
}

.flavorist-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.flavorist-stat,
.flavorist-dashboard-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 25px;
}

.flavorist-stat span {
    display: block;
    color: #777;
    font-size: 14px;
    margin-bottom: 10px;
}

.flavorist-stat strong {
    display: block;
    color: #111;
    font-size: 30px;
}

.flavorist-dashboard-card {
    margin-bottom: 20px;
}

.flavorist-dashboard-card h2 {
    margin: 0 0 7px;
    color: #111;
}

.flavorist-dashboard-card p {
    color: #777;
}

.flavorist-referral {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.flavorist-referral input {
    min-width: 0;
    flex: 1;
    padding: 13px 14px;
    border: 1px solid #ddd;
    border-radius: 11px;
    background: #fafafa;
}

.flavorist-referral button {
    border: 0;
    border-radius: 11px;
    padding: 13px 20px;
    background: #111;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.flavorist-code {
    margin-top: 13px;
    color: #777;
}

.flavorist-code strong {
    color: #111;
}

.flavorist-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.flavorist-card-title-row > a {
    color: #111;
    font-weight: 700;
}

.flavorist-progress {
    height: 10px;
    border-radius: 20px;
    overflow: hidden;
    background: #eee;
    margin: 18px 0;
}

.flavorist-progress div {
    height: 100%;
    background: #111;
}

.flavorist-muted {
    color: #888;
}

.flavorist-referral-list {
    margin-top: 15px;
}

.flavorist-referral-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.flavorist-referral-row:last-child {
    border-bottom: 0;
}

.flavorist-referral-row span {
    display: block;
    color: #888;
    font-size: 13px;
    margin-top: 4px;
}

.flavorist-referral-row > div:last-child {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flavorist-status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    background: #f1f1f1;
    font-size: 12px;
    font-weight: 700;
}

.flavorist-empty {
    color: #888;
    padding: 20px 0;
}

.flavorist-table-wrap {
    overflow-x: auto;
}

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

.flavorist-table th,
.flavorist-table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.flavorist-table th {
    font-size: 13px;
    color: #777;
}

.flavorist-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #111;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 800px) {
    .flavorist-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .flavorist-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .flavorist-creator-page,
    .flavorist-dashboard {
        padding: 30px 15px;
    }

    .flavorist-auth-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .flavorist-stats-grid {
        grid-template-columns: 1fr;
    }

    .flavorist-dashboard-top {
        flex-direction: column;
    }

    .flavorist-referral {
        flex-direction: column;
    }

    .flavorist-card-title-row {
        flex-direction: column;
    }
}
