.mfc-wrap {
    --mfc-primary: #16dac1;
    --mfc-primary-dark: #0fb8a2;
    --mfc-text: #1a2b2a;
    --mfc-muted: #6b7c7a;
    --mfc-border: #e3e8e7;
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--mfc-text);
    box-sizing: border-box;
}

.mfc-wrap * {
    box-sizing: border-box;
}

.mfc-hidden {
    display: none !important;
}

.mfc-notice {
    text-align: center;
    padding: 40px 20px;
    background: #f7fafa;
    border-radius: 12px;
}

/* Buttons */
.mfc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: #eef2f1;
    color: var(--mfc-text);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.mfc-btn:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.mfc-btn:active {
    transform: scale(0.97);
}

.mfc-btn-primary {
    background: var(--mfc-primary);
    color: #06282a;
}

.mfc-btn-primary:hover {
    background: var(--mfc-primary-dark);
}

.mfc-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Create form */
.mfc-create h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.mfc-field {
    margin-bottom: 18px;
}

.mfc-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.mfc-field input[type="text"],
.mfc-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--mfc-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.mfc-field input[type="file"] {
    display: block;
    font-size: 13px;
}

#mfc-frame-preview {
    display: block;
    max-width: 160px;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid var(--mfc-border);
}

.mfc-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 10px;
    border: 3px solid var(--mfc-border);
    border-top-color: var(--mfc-primary);
    border-radius: 50%;
    animation: mfc-spin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes mfc-spin {
    to { transform: rotate(360deg); }
}

.mfc-error {
    margin-top: 14px;
    padding: 10px 14px;
    background: #fdeceb;
    color: #b3261e;
    border-radius: 8px;
    font-size: 14px;
}

.mfc-share-link {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.mfc-share-link input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--mfc-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--mfc-muted);
}

/* Campaign page / editor */
.mfc-campaign-title {
    font-size: 26px;
    margin-bottom: 6px;
    text-align: center;
}

.mfc-campaign-desc {
    text-align: center;
    color: var(--mfc-muted);
    margin-bottom: 6px;
}

.mfc-supporters {
    text-align: center;
    color: var(--mfc-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.mfc-editor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mfc-canvas-holder {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--mfc-border);
    background: repeating-conic-gradient(#f2f2f2 0% 25%, #ffffff 0% 50%) 50% / 20px 20px;
}

#mfc-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
    touch-action: none;
}

#mfc-canvas:active {
    cursor: grabbing;
}

.mfc-upload-hint {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--mfc-muted);
    pointer-events: none;
    text-align: center;
}

.mfc-upload-hint span {
    font-size: 40px;
}

.mfc-controls {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.mfc-upload-btn input {
    display: none;
}

.mfc-zoom-row {
    width: 100%;
    text-align: center;
}

.mfc-zoom-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.mfc-zoom-row input[type="range"] {
    width: 100%;
}

.mfc-hint-text {
    font-size: 12px;
    color: var(--mfc-muted);
    margin-top: 4px;
}

.mfc-share-row {
    margin-top: 32px;
    text-align: center;
}

.mfc-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
}

.mfc-share-wa { background: #25d366; color: #fff; }
.mfc-share-fb { background: #1877f2; color: #fff; }
.mfc-share-x  { background: #000; color: #fff; }

.mfc-share-row .mfc-share-link {
    width: 100%;
    max-width: 360px;
}

/* Gallery / listing */
.mfc-grid {
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.mfc-card {
    display: block;
    text-decoration: none;
    color: var(--mfc-text);
    border: 1px solid var(--mfc-border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.mfc-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.mfc-card-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: repeating-conic-gradient(#f2f2f2 0% 25%, #ffffff 0% 50%) 50% / 20px 20px;
}

.mfc-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mfc-card-body {
    padding: 12px 14px;
}

.mfc-card-body h3 {
    font-size: 15px;
    margin: 0 0 6px;
    line-height: 1.3;
}

.mfc-card-supporters {
    font-size: 12px;
    color: var(--mfc-muted);
}

@media (max-width: 480px) {
    .mfc-campaign-title {
        font-size: 22px;
    }
}
