/* my3dshoe Foot Profiles — Site-aligned dark green theme */
:root {
    --fp-primary: #39A751;
    --fp-primary-dark: #2f9946;
    --fp-primary-glow: #72d58a;
    --fp-bg: #0B0D0C;
    --fp-surface: #121614;
    --fp-card-bg: linear-gradient(180deg, rgba(20,24,22,.96) 0%, rgba(12,15,13,.98) 100%);
    --fp-card-solid: #151917;
    --fp-card-hover: #1A201D;
    --fp-border: rgba(114, 213, 138, 0.16);
    --fp-border-strong: rgba(114, 213, 138, 0.26);
    --fp-text: #EEF7EF;
    --fp-text-secondary: rgba(226, 238, 229, 0.82);
    --fp-text-muted: rgba(180, 196, 186, 0.72);
    --fp-danger: #EF4444;
    --fp-success: #41D17A;
    --fp-warning: #F59E0B;
    --fp-shadow: 0 16px 40px rgba(0,0,0,0.32);
    --fp-border-animation-width: 1.5px;
    --fp-border-animation-speed: 4.8s;
    --fp-border-animation-angle: 0turn;
    --fp-border-animation-color: rgba(114,213,138,.88);
}

@property --fp-border-animation-angle {
    syntax: "<angle>";
    initial-value: 0turn;
    inherits: false;
}

@keyframes fpBorderRotate {
    to { --fp-border-animation-angle: 1turn; }
}

@keyframes fpPanelFlow {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

@keyframes fpButtonSweep {
    0% { transform: translateX(0); }
    100% { transform: translateX(420%); }
}

.my3dshoe-fp-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 20px 40px;
    color: var(--fp-text);
}

.my3dshoe-fp-wrapper * { box-sizing: border-box; }

.my3dshoe-fp-wrapper h2 {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--fp-text);
}

.my3dshoe-fp-wrapper h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--fp-text);
}

.my3dshoe-fp-wrapper h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--fp-text);
}

.my3dshoe-fp-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 32px;
}

.my3dshoe-fp-card,
.my3dshoe-fp-form,
.my3dshoe-fp-feedback-form,
.my3dshoe-fp-claim-banner,
.my3dshoe-fp-xyz-preview {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--fp-card-bg);
    border: 1px solid var(--fp-border);
    border-radius: 18px;
    box-shadow: var(--fp-shadow), inset 0 1px 0 rgba(255,255,255,.03);
    backdrop-filter: blur(10px);
}

.my3dshoe-fp-card::before,
.my3dshoe-fp-form::before,
.my3dshoe-fp-feedback-form::before,
.my3dshoe-fp-claim-banner::before,
.my3dshoe-fp-xyz-preview::before {
    content: "";
    pointer-events: none;
    position: absolute;
    z-index: 0;
    inset: calc(var(--fp-border-animation-width) * -1);
    border-radius: inherit;
    border: solid transparent;
    border-width: var(--fp-border-animation-width);
    animation: fpBorderRotate var(--fp-border-animation-speed) linear infinite;
    background: conic-gradient(
        from var(--fp-border-animation-angle),
        transparent 86%,
        rgba(114,213,138,0) 88%,
        var(--fp-border-animation-color) 94%,
        rgba(114,213,138,.20) 98%,
        transparent 100%
    ) border-box;
    background-clip: border-box;
    background-origin: border-box;
    mask: radial-gradient(farthest-side, rgba(0,0,0,0) calc(97% - var(--fp-border-animation-width)), rgba(0,0,0,0)) content-box,
          radial-gradient(farthest-side, rgba(0,0,0,0) calc(2% - var(--fp-border-animation-width)), #000) border-box;
    -webkit-mask-composite: destination-in;
    mask-composite: intersect;
}

.my3dshoe-fp-card::after,
.my3dshoe-fp-form::after,
.my3dshoe-fp-feedback-form::after,
.my3dshoe-fp-claim-banner::after,
.my3dshoe-fp-xyz-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        radial-gradient(circle at 16% 18%, rgba(114,213,138,.12), transparent 24%),
        radial-gradient(circle at 86% 0%, rgba(114,213,138,.08), transparent 28%),
        linear-gradient(120deg, transparent 38%, rgba(114,213,138,.07) 50%, transparent 64%);
    transform: translateX(-120%);
    animation: fpPanelFlow 8.8s linear infinite;
}

.my3dshoe-fp-card > *,
.my3dshoe-fp-form > *,
.my3dshoe-fp-feedback-form > *,
.my3dshoe-fp-claim-banner > *,
.my3dshoe-fp-xyz-preview > * {
    position: relative;
    z-index: 1;
}

.my3dshoe-fp-card {
    padding: 22px;
    transition: border-color .2s ease, transform .18s ease, box-shadow .18s ease;
}

.my3dshoe-fp-card:hover {
    transform: translateY(-1px);
    border-color: var(--fp-border-strong);
    box-shadow: 0 20px 44px rgba(0,0,0,0.36), 0 0 0 1px rgba(114,213,138,.10);
}

.my3dshoe-fp-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.my3dshoe-fp-card-header strong {
    font-size: 1.15rem;
    color: var(--fp-text);
}

.my3dshoe-fp-badge {
    background: rgba(114,213,138,.08);
    border: 1px solid rgba(114,213,138,.16);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.78rem;
    color: var(--fp-primary-glow);
}

.my3dshoe-fp-card-body { margin-bottom: 16px; }

.my3dshoe-fp-xyz {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.my3dshoe-fp-xyz span {
    font-size: 0.92rem;
    color: var(--fp-text-secondary);
}

.my3dshoe-fp-xyz strong {
    color: var(--fp-primary-glow);
    font-size: 1.12rem;
    font-weight: 800;
    margin-left: 2px;
}

.my3dshoe-fp-measure {
    font-size: 0.9rem;
    color: var(--fp-text-muted);
    margin: 4px 0;
}

.my3dshoe-fp-date {
    font-size: 0.78rem;
    color: var(--fp-text-muted);
    margin: 8px 0 0;
}

.my3dshoe-fp-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.my3dshoe-fp-card-actions .button,
.my3dshoe-fp-submit .button-primary,
.my3dshoe-fp-submit button[type="submit"],
.my3dshoe-fp-claim-banner .button,
.my3dshoe-fp-measure-guide .button-secondary {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: all .18s ease;
}

.my3dshoe-fp-card-actions .button {
    font-size: 0.84rem;
    padding: 8px 16px;
    background: rgba(114,213,138,.10);
    border: 1px solid rgba(114,213,138,.20);
    color: var(--fp-text-secondary);
}

.my3dshoe-fp-card-actions .button::after,
.my3dshoe-fp-submit .button-primary::after,
.my3dshoe-fp-submit button[type="submit"]::after,
.my3dshoe-fp-claim-banner .button::after,
.my3dshoe-fp-measure-guide .button-secondary::after {
    content: "";
    position: absolute;
    inset: -20% auto -20% -38%;
    width: 30%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
    animation: fpButtonSweep 4.6s linear infinite;
}

.my3dshoe-fp-card-actions .button:hover {
    background: rgba(114,213,138,.16);
    border-color: rgba(114,213,138,.36);
    color: var(--fp-text);
}

.my3dshoe-fp-delete {
    color: #ff7e7e !important;
    border-color: rgba(239,68,68,.45) !important;
    background: rgba(239,68,68,.10) !important;
}

.my3dshoe-fp-delete:hover {
    background: rgba(239,68,68,.16) !important;
    border-color: rgba(239,68,68,.65) !important;
}

.my3dshoe-fp-empty {
    color: var(--fp-text-secondary);
    font-size: 0.95rem;
    padding: 20px 0;
}

.my3dshoe-fp-claim-banner {
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.my3dshoe-fp-claim-banner p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--fp-text-secondary);
}

.my3dshoe-fp-claim-banner .button,
.my3dshoe-fp-submit .button-primary,
.my3dshoe-fp-submit button[type="submit"] {
    background: linear-gradient(135deg, var(--fp-primary) 0%, var(--fp-primary-dark) 100%);
    border: 1px solid rgba(114,213,138,.45);
    color: #fff;
    box-shadow: 0 10px 24px rgba(57,167,81,.26);
}

.my3dshoe-fp-claim-banner .button {
    padding: 9px 20px;
    font-size: 0.88rem;
    white-space: nowrap;
}

.my3dshoe-fp-claim-banner .button:hover,
.my3dshoe-fp-submit .button-primary:hover,
.my3dshoe-fp-submit button[type="submit"]:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #40b55b 0%, #34a34d 100%);
}

.my3dshoe-fp-form {
    padding: 28px;
}

.my3dshoe-fp-create-section { margin-top: 32px; }

.my3dshoe-fp-field { margin-bottom: 20px; }

.my3dshoe-fp-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--fp-text);
    font-size: 0.92rem;
}

.my3dshoe-fp-field .required { color: #ff8b8b; }

.my3dshoe-fp-field input[type="text"],
.my3dshoe-fp-field input[type="number"],
.my3dshoe-fp-field select,
.my3dshoe-fp-field textarea {
    width: 100%;
    max-width: 520px;
    padding: 11px 14px;
    border: 1px solid rgba(114,213,138,.12);
    border-radius: 12px;
    font-size: 0.96rem;
    color: var(--fp-text);
    background: rgba(255,255,255,.03);
    transition: border-color 0.2s, box-shadow 0.2s, background .2s;
    box-sizing: border-box;
}

.my3dshoe-fp-field input::placeholder,
.my3dshoe-fp-field textarea::placeholder {
    color: var(--fp-text-muted);
}

.my3dshoe-fp-field input:focus,
.my3dshoe-fp-field select:focus,
.my3dshoe-fp-field textarea:focus {
    outline: none;
    border-color: rgba(114,213,138,.42);
    background: rgba(255,255,255,.05);
    box-shadow: 0 0 0 3px rgba(57,167,81,0.14);
}

.my3dshoe-fp-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2372d58a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.my3dshoe-fp-field-hint {
    display: block;
    font-size: 0.79rem;
    color: var(--fp-text-muted);
    margin-top: 4px;
}

.my3dshoe-fp-route-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.my3dshoe-fp-route-pill {
    appearance: none;
    border: 1px solid rgba(114,213,138,.18);
    background: rgba(114,213,138,.08);
    color: var(--fp-text-secondary);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: all .18s ease;
}

.my3dshoe-fp-route-pill:hover {
    border-color: rgba(114,213,138,.34);
    color: var(--fp-text);
    background: rgba(114,213,138,.13);
}

.my3dshoe-fp-route-pill.is-active {
    color: #fff;
    border-color: rgba(114,213,138,.46);
    background: linear-gradient(135deg, var(--fp-primary) 0%, var(--fp-primary-dark) 100%);
    box-shadow: 0 10px 24px rgba(57,167,81,.22);
}

.my3dshoe-fp-toggle-line {
    margin: 10px 0 2px;
}

.my3dshoe-fp-toggle-line a {
    color: var(--fp-primary-glow);
    text-decoration: none;
    font-size: 0.86rem;
}

.my3dshoe-fp-toggle-line a:hover {
    text-decoration: underline;
}

.my3dshoe-fp-xyz-preview {
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(57,167,81,0.08), rgba(114,213,138,0.05));
}

.my3dshoe-fp-xyz-preview h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--fp-primary-glow);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.my3dshoe-fp-xyz-values {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.my3dshoe-fp-xyz-values span {
    font-size: 1rem;
    color: var(--fp-text-secondary);
}

.my3dshoe-fp-xyz-values strong {
    color: var(--fp-primary-glow);
    font-size: 1.4rem;
    font-weight: 800;
}

.my3dshoe-fp-xyz-note {
    font-size: 0.79rem;
    color: var(--fp-text-muted);
    margin: 8px 0 0;
}

.my3dshoe-fp-submit { margin-top: 24px; }

.my3dshoe-fp-submit .button-primary,
.my3dshoe-fp-submit button[type="submit"] {
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 999px;
}

.my3dshoe-fp-measure-guide { margin: 8px 0; }

.my3dshoe-fp-measure-guide .button-secondary {
    background: rgba(114,213,138,.08);
    border: 1px solid rgba(114,213,138,.18);
    color: var(--fp-text-secondary);
    padding: 8px 14px;
    font-size: 0.85rem;
}

.my3dshoe-fp-measure-guide .button-secondary:hover {
    border-color: rgba(114,213,138,.36);
    color: var(--fp-primary-glow);
    background: rgba(114,213,138,.14);
}

.my3dshoe-fp-feedback-history {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 0.88rem;
    color: var(--fp-text);
}

.my3dshoe-fp-feedback-history th,
.my3dshoe-fp-feedback-history td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(114,213,138,.10);
}

.my3dshoe-fp-feedback-history th {
    font-weight: 600;
    color: var(--fp-text-secondary);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.my3dshoe-fp-feedback-history tr:hover td {
    background: rgba(255,255,255,.03);
}

.my3dshoe-fp-feedback-form {
    padding: 24px;
    max-width: 760px;
}

.my3dshoe-fp-latest-feedback {
    margin-top: 12px;
    padding: 12px 14px;
    background: rgba(57,167,81,0.08);
    border: 1px solid rgba(114,213,138,.14);
    border-radius: 12px;
    font-size: 0.88rem;
    color: var(--fp-text-secondary);
}

.my3dshoe-fp-feedback-label {
    font-weight: 700;
    color: var(--fp-text);
    margin-right: 8px;
}

.my3dshoe-fp-latest-feedback strong { color: var(--fp-success); }

.woocommerce-message,
.woocommerce-error {
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-width: 1px;
    border-style: solid;
}

.woocommerce-message {
    background: rgba(65,209,122,0.10);
    border-color: rgba(65,209,122,0.28);
    color: var(--fp-success);
}

.woocommerce-error {
    background: rgba(239,68,68,0.10);
    border-color: rgba(239,68,68,0.28);
    color: #ff8d8d;
}

.my3dshoe-fp-wrapper > a {
    color: var(--fp-primary-glow);
    text-decoration: none;
    font-size: 0.88rem;
}

.my3dshoe-fp-wrapper > a:hover { text-decoration: underline; }

@media (max-width: 767px) {
    .my3dshoe-fp-wrapper {
        padding: 24px 14px 34px;
    }

    .my3dshoe-fp-card,
    .my3dshoe-fp-form,
    .my3dshoe-fp-feedback-form,
    .my3dshoe-fp-claim-banner,
    .my3dshoe-fp-xyz-preview {
        border-radius: 14px;
    }

    .my3dshoe-fp-card,
    .my3dshoe-fp-form,
    .my3dshoe-fp-feedback-form {
        padding: 16px;
    }

    .my3dshoe-fp-claim-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .my3dshoe-fp-xyz,
    .my3dshoe-fp-xyz-values,
    .my3dshoe-fp-route-toggle,
    .my3dshoe-fp-card-actions {
        gap: 12px;
    }

    .my3dshoe-fp-field input[type="text"],
    .my3dshoe-fp-field input[type="number"],
    .my3dshoe-fp-field select,
    .my3dshoe-fp-field textarea {
        max-width: none;
    }

    .my3dshoe-fp-card-actions .button,
    .my3dshoe-fp-submit .button-primary,
    .my3dshoe-fp-submit button[type="submit"],
    .my3dshoe-fp-claim-banner .button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
