/* Six authored compositions. All selectors stay inside the card. */
.premium-setting{padding:16px;border:1px solid var(--line);border-radius:14px;margin-bottom:24px;font-size:12px}.premium-setting label{display:flex;align-items:center;gap:10px}.premium-setting input{width:18px;height:18px;accent-color:#647ed4}.premium-setting small{display:block;color:var(--muted);font-size:10px;line-height:1.9;margin-top:8px}
.card-profile.premium-card[data-template]{--p-bg:#171918;--p-ink:#f2e9d7;--p-muted:#bcb8af;--p-accent:#e2c389;--p-line:#e2c38936;--p-tint:#ffffff07;background:transparent;border:0;padding:0;overflow:visible;border-radius:26px;box-shadow:none;perspective:1400px;color:var(--p-ink);transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform .18s ease;touch-action:pan-y}
.premium-rotor{display:grid;transform-style:preserve-3d;transition:transform .65s cubic-bezier(.2,.7,.2,1)}.premium-rotor.turned{transform:rotateY(180deg)}
.premium-front,.premium-back{grid-area:1/1;min-width:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:26px;border:1px solid var(--p-line);background:var(--p-bg);box-shadow:0 20px 65px #17263b20;overflow:hidden;position:relative;isolation:isolate}
.premium-back{transform:rotateY(180deg);display:flex;flex-direction:column;justify-content:space-between}
.premium-edition{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:23px 25px 0;font-size:10px;color:var(--p-accent);letter-spacing:1px}.premium-edition>span{display:flex;align-items:center;gap:6px}.premium-edition svg{width:15px;height:15px}.premium-edition span[dir]{font:8px var(--english);letter-spacing:2px}
.card-profile.premium-card[data-template] .profile-cover{background:transparent;min-height:0;padding:28px 25px 24px;border-radius:0;color:var(--p-ink);overflow:visible}.card-profile.premium-card[data-template] .profile-cover:before,.card-profile.premium-card[data-template] .profile-cover:after{display:none}.card-profile.premium-card[data-template] .identity-mark{display:none}.card-profile.premium-card[data-template] .identity-top{min-height:0}.card-profile.premium-card[data-template] .profile-avatar{width:92px;height:92px;border:1px solid var(--p-accent);padding:5px;background:var(--p-tint);border-radius:50%;color:var(--p-accent);box-shadow:none}.card-profile.premium-card[data-template] .profile-avatar img{border-radius:inherit}.card-profile.premium-card[data-template] .identity-copy{margin-top:24px}.card-profile.premium-card[data-template] .profile-name{font-size:34px;line-height:1.45;font-weight:700;color:var(--p-ink);overflow-wrap:anywhere;letter-spacing:-1px}.card-profile.premium-card[data-template] .profile-job{font-size:13px;color:var(--p-muted);margin-top:8px}.card-profile.premium-card[data-template] .profile-company{border:1px solid var(--p-line);color:var(--p-accent);background:var(--p-tint);font-size:11px;margin-top:14px;border-radius:6px;padding:6px 10px}.card-profile.premium-card[data-template] .profile-body{padding:0 25px}.card-profile.premium-card[data-template] .profile-bio{color:var(--p-muted);font-size:12px;line-height:2;margin:0 0 20px;white-space:pre-line}.card-profile.premium-card[data-template] .save-contact{background:var(--p-accent);color:var(--p-bg);border:0;box-shadow:none;border-radius:10px;min-height:52px;font-weight:600}.card-profile.premium-card[data-template] .contact-buttons{gap:7px;margin-top:10px}.card-profile.premium-card[data-template] .contact-buttons a{background:var(--p-tint);border:1px solid var(--p-line);color:var(--p-ink);border-radius:10px;min-height:48px;font-size:11px}.card-profile.premium-card[data-template] .profile-link{color:var(--p-ink);border-color:var(--p-line);padding-block:14px}.card-profile.premium-card[data-template] .profile-link small,.card-profile.premium-card[data-template] .links-heading{color:var(--p-muted)}.card-profile.premium-card[data-template] .link-avatar{background:var(--p-tint);color:var(--p-accent);border-radius:9px}.card-profile.premium-card[data-template] .link-arrow{color:var(--p-accent)}.card-profile.premium-card[data-template] .profile-footer{color:var(--p-muted);font-size:9px;opacity:.8;margin-top:18px}.card-profile.premium-card[data-template] .profile-footer strong{color:inherit}
.premium-tools{display:flex;flex-wrap:wrap;gap:5px;padding:16px 20px 21px;justify-content:center}.premium-tools button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:42px;padding:7px 9px;border:1px solid var(--p-line);border-radius:8px;background:var(--p-tint);color:var(--p-ink);font-family:inherit;font-size:10px;cursor:pointer}.premium-tools svg{width:15px;height:15px}.premium-card button:focus-visible,.premium-card a:focus-visible{outline:3px solid var(--p-accent);outline-offset:3px}.premium-tools button:hover{background:var(--p-line)}.premium-card .save-contact:hover{filter:brightness(1.08)}
.premium-status{display:flex;align-items:center;gap:7px;color:var(--p-ink);font-size:10px;padding:18px 25px 0}.premium-status i{width:6px;height:6px;border-radius:50%;background:#43c78a;box-shadow:0 0 0 4px #43c78a18;animation:statusGlow 3s infinite}@keyframes statusGlow{50%{box-shadow:0 0 0 7px #43c78a08}}
.premium-back-content{text-align:center;padding:28px 24px;overflow-wrap:anywhere}.premium-kicker{font-size:11px;color:var(--p-muted)}.premium-back h2{font-size:26px;color:var(--p-ink);line-height:1.6;margin:12px 0 22px}.premium-qr{background:white;border-radius:17px;padding:12px;width:min(228px,100%);margin:auto;box-shadow:0 8px 35px #0001}.premium-qr svg{display:block;width:100%;height:auto}.premium-qr-caption{font-size:10px;color:var(--p-muted);margin:15px 0 25px}.premium-about{font-size:13px;line-height:2;color:var(--p-ink);white-space:pre-line}.premium-company{color:var(--p-accent);font-size:11px}
/* Sovereign: concentric engraving and a moving warm light. */
[data-template=sovereign] .premium-front:before{content:'';position:absolute;z-index:-1;inset:0;background:radial-gradient(circle at var(--spot-x,20%) var(--spot-y,10%),#e2c38922,transparent 48%)}
[data-template=sovereign] .premium-front:after{content:'';position:absolute;z-index:-1;width:260px;height:260px;left:-130px;top:75px;border:1px solid #e2c38930;border-radius:50%;box-shadow:0 0 0 24px #e2c38906,0 0 0 25px #e2c38916,0 0 0 50px #e2c38905,0 0 0 51px #e2c38910}
.card-profile.premium-card[data-template=sovereign] .identity-copy{border-right:2px solid var(--p-accent);padding-right:16px}.card-profile.premium-card[data-template=sovereign] .profile-avatar{border-radius:18px 18px 40px 18px}
/* Prism: translucent surface floating over colour, centered portrait. */
.card-profile.premium-card[data-template=prism]{--p-bg:#eeeffb;--p-ink:#302a59;--p-muted:#655f80;--p-accent:#6252b6;--p-line:#7b6caa30;--p-tint:#ffffff66}
[data-template=prism] .premium-front,[data-template=prism] .premium-back{background:radial-gradient(ellipse at 0 0,#badff799,transparent 65%),radial-gradient(ellipse at 100% 35%,#dbb8f380,transparent 65%),#ffffffa6;backdrop-filter:blur(24px);border-color:#fff;box-shadow:inset 0 1px 0 #fff,0 25px 75px #8276c330}
.card-profile.premium-card[data-template=prism] .identity-top{justify-content:center}.card-profile.premium-card[data-template=prism] .identity-copy{text-align:center}.card-profile.premium-card[data-template=prism] .profile-avatar{width:110px;height:110px;border:5px solid #ffffffb0;box-shadow:0 10px 25px #6860a323;border-radius:35px}.card-profile.premium-card[data-template=prism] .save-contact{background:linear-gradient(110deg,#7361c6,#4b69b4);color:white;border-radius:25px}
/* Terminal: a quiet instrument panel. */
.card-profile.premium-card[data-template=terminal]{--p-bg:#101d1b;--p-ink:#e9f4ed;--p-muted:#a3bab1;--p-accent:#84f0bc;--p-line:#84f0bc30;--p-tint:#84f0bc08}
[data-template=terminal] .premium-front,[data-template=terminal] .premium-back{border-radius:10px;background:linear-gradient(#84f0bc06 1px,transparent 1px),linear-gradient(90deg,#84f0bc06 1px,transparent 1px),#101d1b;background-size:24px 24px}
.card-profile.premium-card[data-template=terminal] .profile-avatar{border-radius:10px;width:76px;height:76px}.card-profile.premium-card[data-template=terminal] .profile-cover{border-bottom:1px solid var(--p-line);margin-bottom:22px}.card-profile.premium-card[data-template=terminal] .profile-name:before{content:'_ ';color:var(--p-accent);font-family:monospace}.card-profile.premium-card[data-template=terminal] .save-contact{border-radius:5px}
/* Folio: editorial ivory and vermilion, a portrait aligned with the headline. */
.card-profile.premium-card[data-template=folio]{--p-bg:#f7f2e9;--p-ink:#262724;--p-muted:#68645e;--p-accent:#992e35;--p-line:#992e3528;--p-tint:#992e3506}
[data-template=folio] .premium-edition{border-bottom:1px solid var(--p-ink);padding-bottom:17px;margin:0 24px;padding-inline:0}.card-profile.premium-card[data-template=folio] .profile-cover{display:grid;grid-template-columns:80px minmax(0,1fr);gap:18px;align-items:center;direction:ltr}.card-profile.premium-card[data-template=folio] .identity-copy{direction:rtl;margin:0}.card-profile.premium-card[data-template=folio] .profile-name{font-size:30px;line-height:1.5}.card-profile.premium-card[data-template=folio] .profile-avatar{width:80px;height:125px;border-radius:2px;padding:0;border:0}.card-profile.premium-card[data-template=folio] .save-contact{color:#fff;border-radius:2px}.card-profile.premium-card[data-template=folio] .profile-company{border:0;padding:0;background:none}.card-profile.premium-card[data-template=folio] .profile-bio{border-top:1px solid var(--p-line);padding-top:18px}
/* Riwaq: architectural arch with ink-blue tilework. */
.card-profile.premium-card[data-template=riwaq]{--p-bg:#f1eadf;--p-ink:#1b4258;--p-muted:#5e716e;--p-accent:#214e67;--p-line:#214e6730;--p-tint:#214e6706}
[data-template=riwaq] .premium-front:before{content:'';position:absolute;width:195px;height:300px;border:1px solid #b89d7045;border-radius:110px 110px 0 0;left:50%;transform:translateX(-50%);top:65px;z-index:-1;box-shadow:0 0 0 13px #b89d7008,0 0 0 14px #b89d7020}
.card-profile.premium-card[data-template=riwaq] .identity-top{justify-content:center}.card-profile.premium-card[data-template=riwaq] .profile-avatar{border-radius:70px 70px 9px 9px;width:100px;height:125px;padding:5px;border-color:#ad8d56}.card-profile.premium-card[data-template=riwaq] .identity-copy{text-align:center}.card-profile.premium-card[data-template=riwaq] .save-contact{color:#fff}.card-profile.premium-card[data-template=riwaq] .profile-bio{text-align:center}
/* Volt: electric blue, a lime corner and strong asymmetry. */
.card-profile.premium-card[data-template=volt]{--p-bg:#2948d8;--p-ink:#fff;--p-muted:#d4dcff;--p-accent:#dcff74;--p-line:#ffffff38;--p-tint:#ffffff0d}
[data-template=volt] .premium-front:before{content:'';position:absolute;z-index:-1;left:-45px;top:90px;width:155px;height:155px;background:#dcff74;border-radius:35px;transform:rotate(32deg)}
.card-profile.premium-card[data-template=volt] .profile-avatar{border-radius:15px;width:95px;height:95px;border:3px solid #fff;transform:rotate(-5deg);background:#2948d8}.card-profile.premium-card[data-template=volt] .identity-copy{margin-top:30px}.card-profile.premium-card[data-template=volt] .profile-name{font-size:38px;max-width:90%}.card-profile.premium-card[data-template=volt] .save-contact{color:#1531a3;border-radius:30px}.card-profile.premium-card[data-template=volt] .premium-tools button{border-radius:24px}
.mini-sovereign .mini-cover{background:radial-gradient(circle at 10% 30%,#82704c,#171918 70%)}.mini-prism .mini-cover{background:linear-gradient(120deg,#bde5f3,#e4c3ed)}.mini-prism .mini-avatar,.mini-riwaq .mini-avatar{margin:auto}.mini-prism .mini-title,.mini-prism .mini-subtitle,.mini-riwaq .mini-title,.mini-riwaq .mini-subtitle{margin-inline:auto}.mini-terminal .mini-cover{background:repeating-linear-gradient(90deg,transparent 0 12px,#84f0bc15 12px 13px),#101d1b}.mini-folio .mini-avatar{float:left;height:48px;border-radius:0}.mini-riwaq .mini-avatar{border-radius:20px 20px 0 0}.mini-volt .mini-cover{background:linear-gradient(135deg,#2948d8 70%,#dcff74 70%)}
@media(max-width:480px){.card-profile.premium-card[data-template] .profile-name{font-size:29px}.premium-edition{padding-inline:20px}.card-profile.premium-card[data-template] .profile-cover{padding-inline:20px}.card-profile.premium-card[data-template] .profile-body{padding-inline:20px}.premium-tools{padding-inline:14px}.premium-tools button{font-size:10px}.card-profile.premium-card[data-template=folio] .profile-cover{grid-template-columns:65px minmax(0,1fr);gap:14px}.card-profile.premium-card[data-template=folio] .profile-avatar{width:65px;height:105px}.card-profile.premium-card[data-template=folio] .profile-name{font-size:25px}}
@media(prefers-reduced-motion:reduce){.premium-rotor,.card-profile.premium-card{transition:none!important}.premium-status i{animation:none}.premium-rotor.turned{transform:none}.premium-back{transform:none}.premium-rotor:not(.turned) .premium-back,.premium-rotor.turned .premium-front{visibility:hidden}}
.card-profile.premium-card.geometric .premium-front,.card-profile.premium-card.geometric .premium-back{border-radius:8px}

.card-profile.premium-card[data-template] .profile-link{background:var(--p-tint);box-shadow:none;border:1px solid var(--p-line);border-radius:10px;margin-top:9px;padding:12px}.card-profile.premium-card[data-template] .profile-link strong{color:var(--p-ink)}
