:root {
    --ds-bg: #0d0d0d;
    --ds-frame-border: rgba(255, 255, 255, 0.08);
    --ds-surface: rgba(15, 15, 15, 0.32);
    --ds-surface-strong: rgba(20, 20, 20, 0.46);
    --ds-text-main: #f5f2ec;
    --ds-text-dark: #f3eee7;
    --ds-text-muted: rgba(255, 245, 235, 0.78);
    --ds-shadow: rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 16px 24px;
    background: var(--ds-bg);
    color: var(--ds-text-main);
    font-family: "Acumin Pro", "Acumin Variable Concept", "Segoe UI", Helvetica, Arial, sans-serif;
    position: relative;
    overflow-x: hidden;
}

body.ds-modal-open {
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
    mix-blend-mode: screen;
    background-image: url("../img/grain.png");
    background-size: 320px 320px;
    background-repeat: repeat;
    z-index: 0;
}

.ds-bg-parallax {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(233, 151, 86, 0.04) 0%, rgba(14, 16, 24, 0.18) 42%, rgba(8, 10, 18, 0.68) 100%),
        url("../img/signs-vintage.jpg") center top / cover no-repeat;
    z-index: 0;
}

.ds-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 28px 20px 22px;
    z-index: 1;
    will-change: transform;
}

.ds-card::before {
    content: none;
}

.ds-card-frame {
    max-width: 430px;
    min-height: min(820px, calc(100vh - 48px));
    border-radius: 38px;
    overflow: hidden;
    border: 1px solid var(--ds-frame-border);
    background: rgba(10, 10, 10, 0.24);
    backdrop-filter: blur(14px);
    box-shadow:
        0 28px 55px var(--ds-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ds-card-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(245, 143, 67, 0.12) 0%, rgba(28, 21, 19, 0.06) 30%, rgba(13, 16, 28, 0.14) 62%, rgba(8, 10, 19, 0.38) 100%);
    z-index: 0;
}

.ds-card > * {
    position: relative;
    z-index: 1;
}

.ds-utility-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 22px;
}

.ds-utility-button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.28);
    color: rgba(255, 248, 240, 0.94);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    transition: transform 0.14s ease, background-color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.ds-utility-button:hover {
    transform: translateY(-1px);
    background: rgba(18, 18, 18, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.ds-social-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
}

.ds-social-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 248, 240, 0.92);
    text-decoration: none;
    background: rgba(18, 18, 18, 0.18);
    backdrop-filter: blur(8px);
    font-size: 1.2rem;
    transition: transform 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}

.ds-social-icon:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.34);
}

.ds-avatar {
    width: 98px;
    height: 98px;
    border-radius: 50%;
    border: 3px solid rgba(255, 248, 241, 0.2);
    background: rgba(10, 10, 10, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.ds-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ds-avatar-text {
    display: none;
}

.ds-name {
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    font-family: Georgia, "Times New Roman", serif;
}

.ds-name span {
    color: #fff0df;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.ds-tagline {
    text-align: center;
    color: var(--ds-text-muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 0.9rem;
    font-family: Georgia, "Times New Roman", serif;
}

.ds-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.ds-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.35rem;
    border-radius: 16px;
    background: var(--ds-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--ds-text-dark);
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}

.ds-link:hover {
    transform: translateY(-2px);
    background: var(--ds-surface-strong);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.ds-link strong {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.ds-link span small {
    display: block;
    margin-top: 0.16rem;
    color: rgba(243, 238, 231, 0.68);
    font-size: 0.75rem;
}

.ds-link i {
    font-size: 1rem;
    color: rgba(243, 238, 231, 0.78);
}

.ds-footer {
    margin-top: 28px;
    padding-top: 18px;
    padding-bottom: calc(env(safe-area-inset-bottom) + 28px);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 245, 235, 0.62);
    letter-spacing: 0.06em;
}

.ds-footer a {
    color: inherit;
    text-decoration: none;
}

.ds-footer a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.ds-share-modal[hidden] {
    display: none;
}

.ds-share-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
}

.ds-share-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(6px);
}

.ds-share-sheet {
    position: absolute;
    left: 50%;
    bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px));
    width: min(92vw, 560px);
    max-height: calc(100vh - 72px);
    transform: translateX(-50%);
    border-radius: 28px;
    background: #f5f2ec;
    color: #171717;
    padding: 28px 22px 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    overflow-y: auto;
}

.ds-share-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #2a2a2a;
    font-size: 1.1rem;
    cursor: pointer;
}

.ds-share-title {
    margin: 0 0 18px;
    text-align: center;
    font-size: 1.7rem;
    font-weight: 700;
}

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

.ds-share-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #171717;
    text-decoration: none;
    font-size: 0.88rem;
    text-align: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.ds-share-icon {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e6e2dc;
    color: #171717;
    font-size: 1.4rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.ds-share-status {
    min-height: 1.2em;
    margin: 16px 0 0;
    text-align: center;
    color: rgba(23, 23, 23, 0.66);
    font-size: 0.9rem;
}

.formkit-modal .formkit-close,
.formkit-modal [data-element="close"],
.formkit-modal button[aria-label="Close"],
.formkit-modal button[aria-label="close"] {
    width: 28px !important;
    height: 28px !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: rgba(23, 23, 23, 0.72) !important;
    border: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: 18px !important;
    right: 18px !important;
    box-shadow: none !important;
    font-size: 1.6rem !important;
    line-height: 1 !important;
    opacity: 1 !important;
}

.formkit-modal .formkit-close:hover,
.formkit-modal [data-element="close"]:hover,
.formkit-modal button[aria-label="Close"]:hover,
.formkit-modal button[aria-label="close"]:hover {
    background: transparent !important;
    color: #171717 !important;
}

@media (max-width: 480px) {
    body {
        padding: 24px 12px 12px;
    }

    .ds-card {
        padding: 22px 16px 18px;
    }

    .ds-card-frame {
        min-height: calc(100vh - 24px);
        border-radius: 32px;
    }

    .ds-utility-row {
        margin-bottom: 18px;
    }

    .ds-social-row {
        gap: 12px;
        margin-bottom: 20px;
    }

    .ds-avatar {
        width: 88px;
        height: 88px;
    }

    .ds-links {
        max-width: none;
    }

    .ds-link {
        padding: 1.1rem 1.15rem;
    }

    .ds-embed-divider {
        margin-bottom: 0.75rem;
    }

    .ds-embed-frame {
        height: 400px;
    }

    .ds-share-sheet {
        width: calc(100vw - 20px);
        bottom: max(16px, env(safe-area-inset-bottom));
        max-height: calc(100vh - 32px);
        padding: 26px 16px 18px;
        border-radius: 24px;
    }

    .ds-share-title {
        font-size: 1.4rem;
    }

    .ds-share-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ds-share-icon {
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
    }
}
