:root {
    --bg: #060a18;
    --panel: rgba(255, 255, 255, 0.08);
    --panel-solid: #111b39;
    --text: #ecf3ff;
    --muted: #b8c5f8;
    --accent: #67e8f9;
    --accent-2: #8b5cf6;
    --accent-3: #22d3ee;
    --danger: #f87171;
    --success: #34d399;
    --border: rgba(255, 255, 255, 0.2);
    --shadow: 0 20px 52px rgba(5, 9, 27, 0.58);
}

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 8%, rgba(139, 92, 246, 0.34), transparent 36%),
        radial-gradient(circle at 86% 4%, rgba(34, 211, 238, 0.24), transparent 40%),
        radial-gradient(circle at 52% 120%, rgba(103, 232, 249, 0.2), transparent 45%),
        linear-gradient(170deg, #040816, var(--bg));
    background-size: 120% 120%;
    animation: bg-pan 16s ease-in-out infinite alternate;
    min-height: 100vh;
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    filter: blur(46px);
    opacity: 0.38;
    pointer-events: none;
}

body::before {
    width: 240px;
    height: 240px;
    top: 14%;
    left: -80px;
    background: #7c3aed;
    animation: orb-float-a 9s ease-in-out infinite;
}

body::after {
    width: 300px;
    height: 300px;
    right: -110px;
    top: 38%;
    background: #22d3ee;
    animation: orb-float-b 11s ease-in-out infinite;
}

a {
    color: #a5d8ff;
}

.container {
    width: min(1140px, calc(100% - 2rem));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: rgba(7, 11, 27, 0.64);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
}

.brand {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.35px;
    background: linear-gradient(90deg, #bff6ff, #d2bfff, #aaf0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pill {
    display: inline-block;
    border: 1px solid rgba(160, 219, 255, 0.4);
    color: #dff3ff;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(111, 193, 255, 0.1);
    font-size: 0.76rem;
    box-shadow: inset 0 0 14px rgba(103, 232, 249, 0.15);
}

.hero {
    padding: 2.4rem 0 1.5rem;
    animation: fade-slide 0.6s ease-out;
}

.hero h1 {
    margin: 0;
    font-size: clamp(1.75rem, 3.9vw, 2.8rem);
    letter-spacing: 0.25px;
    line-height: 1.15;
}

.hero p {
    color: var(--muted);
    margin-top: 0.7rem;
    max-width: 780px;
    line-height: 1.62;
}

.card {
    border: 1px solid rgba(177, 202, 255, 0.28);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
        radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.2), transparent 42%),
        radial-gradient(circle at 100% 100%, rgba(34, 211, 238, 0.12), transparent 48%);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 58px rgba(4, 8, 24, 0.62);
}

.card-body {
    padding: 1.6rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(12, 1fr);
}

.field {
    grid-column: span 12;
}

.col-6 {
    grid-column: span 12;
}

@media (min-width: 880px) {
    .col-6 {
        grid-column: span 6;
    }
}

label {
    display: block;
    margin-bottom: 0.38rem;
    font-size: 0.88rem;
    color: #d9e8ff;
    font-weight: 640;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: linear-gradient(160deg, rgba(8, 14, 36, 0.66), rgba(8, 14, 36, 0.58));
    color: var(--text);
    padding: 0.74rem 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input:hover,
textarea:hover,
select:hover {
    border-color: rgba(148, 187, 255, 0.62);
}

input:focus,
textarea:focus,
select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.22), 0 0 18px rgba(103, 232, 249, 0.12);
    transform: translateY(-1px);
}

textarea {
    min-height: 105px;
    resize: vertical;
}

.row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn,
button {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0.7rem 1.02rem;
    font-weight: 670;
    cursor: pointer;
    transition: 0.22s ease;
}

.btn-primary {
    color: #071128;
    background: linear-gradient(100deg, var(--accent), var(--accent-2), var(--accent-3));
    background-size: 220% 220%;
    animation: shimmer 6s ease-in-out infinite;
    box-shadow: 0 8px 20px rgba(34, 211, 238, 0.22);
}

.btn-primary:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
}

.btn-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(179, 207, 255, 0.5);
}

.btn-danger-outline {
    color: #ffd6d6;
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.44);
}

.btn-danger-outline:hover {
    background: rgba(248, 113, 113, 0.24);
}

.btn-danger-outline:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.message {
    margin: 1rem 0;
    border-radius: 14px;
    border: 1px solid;
    padding: 0.78rem 0.95rem;
    font-size: 0.9rem;
    backdrop-filter: blur(6px);
}

.message-success {
    border-color: rgba(52, 211, 153, 0.74);
    background: rgba(52, 211, 153, 0.14);
    color: #bcffe8;
}

.message-error {
    border-color: rgba(248, 113, 113, 0.74);
    background: rgba(248, 113, 113, 0.14);
    color: #ffd3d3;
}

.section-title {
    margin: 0.45rem 0 0.9rem;
    color: #deebff;
    font-size: 1rem;
    letter-spacing: 0.2px;
}

.phone-group,
.social-group {
    display: grid;
    gap: 0.86rem;
}

.phone-row {
    display: flex;
    gap: 0.75rem;
    align-items: end;
}

.phone-input-wrap {
    flex: 1;
}

@media (max-width: 640px) {
    .phone-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.social-item {
    border: 1px dashed rgba(173, 187, 239, 0.45);
    border-radius: 12px;
    padding: 0.72rem;
    background: rgba(7, 17, 40, 0.45);
}

.social-item .row {
    align-items: flex-start;
}

.social-item input[type="checkbox"] {
    width: 17px;
    margin-top: 0.26rem;
}

.social-input {
    opacity: 0.56;
}

.social-input.enabled {
    opacity: 1;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.74rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    text-align: left;
    font-size: 0.9rem;
    vertical-align: top;
}

th {
    color: #cde0ff;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    background: rgba(9, 15, 38, 0.8);
    position: sticky;
    top: 0;
}

table tr:hover td {
    background: rgba(255, 255, 255, 0.045);
}

.tag {
    display: inline-block;
    margin: 0.12rem 0.22rem 0.12rem 0;
    padding: 0.2rem 0.54rem;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.5);
    color: #e2f0ff;
    font-size: 0.76rem;
}

.media-preview img {
    max-width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border);
    display: block;
    box-shadow: 0 8px 20px rgba(4, 10, 28, 0.45);
}

.media-missing {
    color: #bcc8ef;
    font-size: 0.82rem;
    opacity: 0.92;
}

.footer-note {
    color: #9eafdf;
    margin-top: 1rem;
    font-size: 0.82rem;
}

.spacer {
    height: 1.6rem;
}

@keyframes bg-pan {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 40% 30%;
    }
}

@keyframes orb-float-a {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-22px) scale(1.08);
    }
}

@keyframes orb-float-b {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(24px) scale(1.05);
    }
}

@keyframes shimmer {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes fade-slide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
