:root {
    --primary-color: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #DBEAFE;
    --primary-hover: #1D4ED8;
    --accent-color: #0284C7;
    --bg-color: #F8FAFC;
    --card-bg: #FFFFFF;
    --surface-variant: #F1F5F9;
    --text-main: #0F172A;
    --text-muted: #475569;
    --border-color: #E2E8F0;
    --on-primary: #FFFFFF;
    --gradient-start: #2563EB;
    --gradient-end: #1D4ED8;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
}

#app {
    width: 100%;
    max-width: 520px;
    min-height: 100vh;
    background-color: var(--card-bg);
    position: relative;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

/* State Containers (Loading, Error) */
.state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 32px 24px;
    text-align: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

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

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.state-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.state-text {
    font-size: 16px;
    color: var(--text-muted);
}

/* Cover Section */
.cover-section {
    width: 100%;
    height: 180px;
    position: relative;
    background-color: var(--primary-color);
    overflow: hidden;
}

.cover-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    position: absolute;
    top: 0;
    left: 0;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Profile Header */
.profile-header {
    padding: 0 24px 16px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -60px;
}

.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    border: 4px solid var(--card-bg);
    box-shadow: var(--shadow-md);
    background-color: var(--card-bg);
    margin-bottom: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
}

.profile-info {
    width: 100%;
    margin-bottom: 16px;
}

.profile-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 4px;
}

.profile-tagline {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.profile-role-company {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 14px;
    margin-top: 4px;
}

.role-badge {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 13px;
}

.separator {
    color: var(--text-muted);
}

.company-text {
    color: var(--text-main);
    font-weight: 600;
}

/* Action Buttons */
.primary-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    flex: 1;
    max-width: 220px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--on-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--surface-variant);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* Profile Body Sections */
.profile-body {
    padding: 0 24px 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 6px;
}

/* Contact Grid */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background-color: var(--surface-variant);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.contact-card:hover {
    border-color: var(--border-color);
    transform: translateX(4px);
}

html[dir="ltr"] .contact-card:hover {
    transform: translateX(4px);
}
html[dir="rtl"] .contact-card:hover {
    transform: translateX(-4px);
}

.contact-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background-color: var(--card-bg);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.contact-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.contact-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.contact-value {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Custom Links */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background-color: var(--surface-variant);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 15px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.link-button:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.link-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.link-icon svg, .chevron-icon svg {
    width: 18px;
    height: 18px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background-color: var(--surface-variant);
    position: relative;
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Footer Section */
.profile-footer {
    padding: 24px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    background-color: var(--surface-variant);
}

.save-vcard-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: var(--on-primary);
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.save-vcard-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 16px;
}

.brand-logo-img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.brand-tagline {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.lightbox-caption {
    color: #FFFFFF;
    margin-top: 12px;
    font-size: 15px;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

/* Hero Cards */
.template-hero-card {
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--on-primary);
}

.template-hero-card .hero-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--on-primary);
}

.template-hero-card .hero-subtitle {
    font-size: 12px;
    color: var(--on-primary);
    opacity: 0.9;
    max-width: 340px;
}

.template-hero-card .hero-stars {
    font-size: 22px;
    letter-spacing: 2px;
}

.template-hero-card .hero-badge-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    font-weight: 700;
    color: var(--on-primary);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    margin-top: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
}

.hero-btn-green {
    background-color: #16A34A;
    color: #FFFFFF;
}

.hero-btn-white {
    background-color: #FFFFFF;
    color: var(--text-main);
}

.hero-btn-gold {
    background-color: #FBBF24;
    color: #1E293B;
}

/* =============================================================================
   10 CORE HYBRID TEMPLATES (100% PARITY WITH ANDROID HYBRID COLOR SYSTEM)
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. CORPORATE EXECUTIVE (Executive Pro / Split-Screen Prestige)
   ----------------------------------------------------------------------------- */
.profile-container[data-template="corporate_executive"],
.profile-container[data-template="business_1"],
.profile-container[data-template="executive_1"] {
    background: var(--bg-color);
}
.profile-container[data-template="corporate_executive"] .cover-section,
.profile-container[data-template="business_1"] .cover-section,
.profile-container[data-template="executive_1"] .cover-section {
    height: 140px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gradient-end) 100%);
}
.profile-container[data-template="corporate_executive"] .avatar-wrapper,
.profile-container[data-template="business_1"] .avatar-wrapper,
.profile-container[data-template="executive_1"] .avatar-wrapper {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}
.profile-container[data-template="corporate_executive"] .section-title,
.profile-container[data-template="business_1"] .section-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.profile-container[data-template="corporate_executive"] .contact-card,
.profile-container[data-template="business_1"] .contact-card {
    border-radius: 10px;
    border-inline-start: 4px solid var(--primary-color);
    background-color: var(--surface-variant);
}

/* -----------------------------------------------------------------------------
   2. CORPORATE BENTO (Structured 2x2 Bento Box Grid)
   ----------------------------------------------------------------------------- */
.profile-container[data-template="corporate_bento"] .cover-section {
    height: 100px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}
.profile-container[data-template="corporate_bento"] .avatar-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    border: 3px solid var(--card-bg);
    box-shadow: var(--shadow-md);
}
.profile-container[data-template="corporate_bento"] .contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.profile-container[data-template="corporate_bento"] .contact-card {
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    padding: 12px;
}
.profile-container[data-template="corporate_bento"] .contact-icon-wrapper {
    color: var(--primary-color);
}

/* -----------------------------------------------------------------------------
   3. CORPORATE MINIMAL (Swiss Style Clean Typography)
   ----------------------------------------------------------------------------- */
.profile-container[data-template="corporate_minimal"],
.profile-container[data-template="minimal_1"] .cover-section {
    display: none;
}
.profile-container[data-template="corporate_minimal"] .profile-header,
.profile-container[data-template="minimal_1"] .profile-header {
    margin-top: 0;
    padding: 24px 20px 16px 20px;
    border-bottom: 2px solid var(--border-color);
    flex-direction: row;
    align-items: center;
    text-align: start;
    gap: 16px;
}
.profile-container[data-template="corporate_minimal"] .avatar-wrapper,
.profile-container[data-template="minimal_1"] .avatar-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    box-shadow: none;
    margin-bottom: 0;
}
.profile-container[data-template="corporate_minimal"] .profile-name,
.profile-container[data-template="minimal_1"] .profile-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.profile-container[data-template="corporate_minimal"] .section-title,
.profile-container[data-template="minimal_1"] .section-title {
    border-bottom: 2px solid var(--border-color);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.profile-container[data-template="corporate_minimal"] .contact-card,
.profile-container[data-template="minimal_1"] .contact-card {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--card-bg);
    box-shadow: none;
}

/* -----------------------------------------------------------------------------
   4. CORPORATE LUXE (Boutique Luxe / Prestige Emerald Midnight with Gold Accents)
   ----------------------------------------------------------------------------- */
.profile-container[data-template="corporate_luxe"],
.profile-container[data-template="business_3"] {
    background-color: #071318 !important;
    color: #F8FAFC !important;
    border: 2px solid var(--accent-color);
    border-radius: var(--radius-lg);
}
.profile-container[data-template="corporate_luxe"] .cover-section,
.profile-container[data-template="business_3"] .cover-section {
    height: 160px;
    background: linear-gradient(180deg, #0E1F26 0%, #071318 100%);
}
.profile-container[data-template="corporate_luxe"] .avatar-wrapper,
.profile-container[data-template="business_3"] .avatar-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    background-color: #162E38;
}
.profile-container[data-template="corporate_luxe"] .profile-name,
.profile-container[data-template="business_3"] .profile-name {
    font-size: 26px;
    font-weight: 700;
    color: #FFFFFF !important;
    letter-spacing: 1px;
}
.profile-container[data-template="corporate_luxe"] .profile-role,
.profile-container[data-template="business_3"] .profile-role {
    color: var(--accent-color) !important;
    font-weight: 700;
}
.profile-container[data-template="corporate_luxe"] .section-title,
.profile-container[data-template="business_3"] .section-title {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
    text-align: center;
}
.profile-container[data-template="corporate_luxe"] .contact-card,
.profile-container[data-template="business_3"] .contact-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0E1F26 !important;
    color: #F8FAFC !important;
}
.profile-container[data-template="corporate_luxe"] .contact-value,
.profile-container[data-template="business_3"] .contact-value {
    color: #F8FAFC !important;
}
.profile-container[data-template="corporate_luxe"] .save-vcard-btn,
.profile-container[data-template="business_3"] .save-vcard-btn {
    background-color: var(--accent-color) !important;
    color: #071318 !important;
}

/* -----------------------------------------------------------------------------
   5. CORPORATE BADGE (Vertical Security Lanyard Pass)
   ----------------------------------------------------------------------------- */
.profile-container[data-template="corporate_badge"] .cover-section {
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}
.profile-container[data-template="corporate_badge"] .avatar-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}
.profile-container[data-template="corporate_badge"] .section-title {
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.profile-container[data-template="corporate_badge"] .contact-card {
    border-radius: 14px;
    border: 1.5px solid var(--border-color);
    background: var(--card-bg);
}

/* -----------------------------------------------------------------------------
   6. CREATOR SPOTLIGHT (Hero Banner + Glowing Dynamic Ring)
   ----------------------------------------------------------------------------- */
.profile-container[data-template="creator_spotlight"],
.profile-container[data-template="personal_1"] .cover-section {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gradient-end) 100%);
}
.profile-container[data-template="creator_spotlight"] .avatar-wrapper,
.profile-container[data-template="personal_1"] .avatar-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 0 6px var(--primary-light), 0 8px 24px rgba(0,0,0,0.18);
}
.profile-container[data-template="creator_spotlight"] .section-title,
.profile-container[data-template="personal_1"] .section-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid var(--primary-color);
    color: var(--primary-color);
    text-align: center;
}
.profile-container[data-template="creator_spotlight"] .link-button,
.profile-container[data-template="personal_1"] .link-button {
    border-radius: 9999px;
    background-color: var(--primary-color);
    color: var(--on-primary);
}

/* -----------------------------------------------------------------------------
   7. CREATOR MASONRY (Artisan Masonry / Gallery-First Grid)
   ----------------------------------------------------------------------------- */
.profile-container[data-template="creator_masonry"],
.profile-container[data-template="creative_1"] .cover-section {
    height: 140px;
    background: radial-gradient(circle at top right, var(--primary-color), var(--accent-color), var(--primary-dark));
}
.profile-container[data-template="creator_masonry"] .avatar-wrapper,
.profile-container[data-template="creative_1"] .avatar-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 24px 8px 24px 8px;
    border: 3px solid var(--card-bg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: rotate(6deg);
}
.profile-container[data-template="creator_masonry"] .section-title,
.profile-container[data-template="creative_1"] .section-title {
    border-bottom: 3px dashed var(--primary-color);
    font-size: 15px;
    color: var(--primary-color);
}

/* -----------------------------------------------------------------------------
   8. CREATOR TERMINAL (Dev Console / Hacker Shell with Phosphor Highlights)
   ----------------------------------------------------------------------------- */
.profile-container[data-template="creator_terminal"] {
    background-color: #050505 !important;
    color: #E6EDF3 !important;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace !important;
}
.profile-container[data-template="creator_terminal"] .cover-section {
    height: 100px;
    background: #161B22 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.profile-container[data-template="creator_terminal"] .avatar-wrapper {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    background-color: #0D1117;
    box-shadow: 0 0 16px rgba(0, 255, 128, 0.2);
}
.profile-container[data-template="creator_terminal"] .profile-name {
    color: #FFFFFF !important;
    font-family: inherit !important;
}
.profile-container[data-template="creator_terminal"] .profile-role {
    color: var(--primary-color) !important;
    font-family: inherit !important;
}
.profile-container[data-template="creator_terminal"] .section-title {
    color: var(--primary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: inherit;
    font-size: 13px;
    letter-spacing: 1px;
}
.profile-container[data-template="creator_terminal"] .contact-card {
    background-color: #0D1117 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #E6EDF3 !important;
}
.profile-container[data-template="creator_terminal"] .contact-value {
    color: var(--primary-color) !important;
    font-family: inherit !important;
}
.profile-container[data-template="creator_terminal"] .link-button {
    background-color: #0D1117 !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #E6EDF3 !important;
    font-family: inherit !important;
}
.profile-container[data-template="creator_terminal"] .save-vcard-btn {
    background-color: var(--primary-color) !important;
    color: #050505 !important;
    font-family: inherit !important;
    border-radius: 8px;
}

/* -----------------------------------------------------------------------------
   9. CREATOR MAGAZINE (Editorial Lookbook / High Fashion Paper Canvas)
   ----------------------------------------------------------------------------- */
.profile-container[data-template="creator_magazine"] {
    background-color: #FAFAF9 !important;
    color: #1C1917 !important;
}
.profile-container[data-template="creator_magazine"] .cover-section {
    height: 200px;
    background: #FFFFFF;
    border-bottom: 1px solid #E7E5E4;
}
.profile-container[data-template="creator_magazine"] .avatar-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 4px;
    border: 2px solid #E7E5E4;
    box-shadow: var(--shadow-sm);
}
.profile-container[data-template="creator_magazine"] .profile-name {
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 28px;
    font-weight: 700;
    color: #1C1917 !important;
}
.profile-container[data-template="creator_magazine"] .profile-role {
    color: var(--primary-color) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    font-size: 11px;
}
.profile-container[data-template="creator_magazine"] .section-title {
    border-bottom: 1px solid #E7E5E4;
    color: #1C1917;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.profile-container[data-template="creator_magazine"] .contact-card {
    border-radius: 4px;
    border: 1px solid #E7E5E4;
    background: #FFFFFF !important;
    color: #1C1917 !important;
}
.profile-container[data-template="creator_magazine"] .link-button {
    border-radius: 4px;
    border: 1px solid #E7E5E4;
    background: #FFFFFF !important;
    color: #1C1917 !important;
}

/* -----------------------------------------------------------------------------
   10. CREATOR NEUMORPHIC (Soft Horizon 3D UI Slate)
   ----------------------------------------------------------------------------- */
.profile-container[data-template="creator_neumorphic"] {
    background-color: #E2E8F0 !important;
    color: #1E293B !important;
}
.profile-container[data-template="creator_neumorphic"] .cover-section {
    height: 120px;
    background: #E2E8F0;
    box-shadow: inset 0 -4px 10px rgba(0, 0, 0, 0.05);
}
.profile-container[data-template="creator_neumorphic"] .avatar-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #E2E8F0;
    border: 3px solid #CBD5E1;
    box-shadow: 6px 6px 12px #CBD5E1, -6px -6px 12px #FFFFFF;
}
.profile-container[data-template="creator_neumorphic"] .section-title {
    color: var(--primary-color);
    border-bottom: 2px solid #CBD5E1;
    font-size: 14px;
    text-transform: uppercase;
}
.profile-container[data-template="creator_neumorphic"] .contact-card {
    border-radius: 18px;
    border: 1px solid #CBD5E1;
    background-color: #F1F5F9 !important;
    box-shadow: 4px 4px 10px #CBD5E1, -4px -4px 10px #FFFFFF;
}
.profile-container[data-template="creator_neumorphic"] .link-button {
    border-radius: 18px;
    border: 1px solid #CBD5E1;
    background-color: #F1F5F9 !important;
    box-shadow: 4px 4px 8px #CBD5E1, -4px -4px 8px #FFFFFF;
    color: #1E293B !important;
}
.profile-container[data-template="creator_neumorphic"] .save-vcard-btn {
    border-radius: 20px;
    background-color: var(--primary-color) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* -----------------------------------------------------------------------------
   CATEGORY 3: STORES, HOSPITALITY & REVIEWS (5 TEMPLATES)
   ----------------------------------------------------------------------------- */

/* 11. REVIEWS 1: 5-STAR TAP MASTER (Hero Golden Review Banner) */
.profile-container[data-template="reviews_1"] .cover-section {
    height: 140px;
    background: linear-gradient(135deg, #78350F 0%, #D97706 50%, #F59E0B 100%);
}
.profile-container[data-template="reviews_1"] .avatar-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #F59E0B;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.25), 0 8px 24px rgba(0,0,0,0.18);
}
.template-hero-card.review-5star-master {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 2px solid #F59E0B;
    border-radius: 20px;
    padding: 20px;
    margin: 16px 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.18);
}
.hero-stars-gold {
    font-size: 28px;
    color: #F59E0B;
    letter-spacing: 4px;
    margin-bottom: 6px;
}
.hero-btn-gold {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    color: #FFFFFF !important;
    font-weight: 800;
    font-size: 15px;
    padding: 14px 20px;
    border-radius: 14px;
    display: inline-block;
    width: 100%;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-btn-gold:active {
    transform: scale(0.98);
}

/* 12. REVIEWS SHOWCASE: BOUTIQUE CAFE & BENTO MENU */
.profile-container[data-template="reviews_showcase"] .cover-section {
    height: 150px;
    background: linear-gradient(135deg, #292524 0%, #44403C 100%);
}
.template-hero-card.review-showcase-bento {
    background: transparent;
    padding: 0 20px;
    margin: 12px 0 16px 0;
}
.open-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}
.live-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}
.bento-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.bento-hero-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease;
    cursor: pointer;
}
.bento-hero-card:active {
    transform: scale(0.97);
}
.bento-icon {
    font-size: 22px;
    margin-bottom: 6px;
}
.bento-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
}
.bento-sub {
    font-size: 11px;
    color: var(--text-muted);
}
.bento-rating {
    background: linear-gradient(135deg, #FEF3C7, #FFFBEB);
    border-color: #FCD34D;
}

/* 13. REVIEWS CLINIC TRUST: CLINIC CARE & APPOINTMENTS */
.profile-container[data-template="reviews_clinic_trust"] .cover-section {
    height: 120px;
    background: linear-gradient(135deg, #065F46 0%, #0D9488 100%);
}
.template-hero-card.review-clinic-trust {
    background: #F0FDF4;
    border: 1.5px solid #86EFAC;
    border-radius: 18px;
    padding: 18px;
    margin: 16px 20px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12);
}
.clinic-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #DCFCE7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 10px;
}
.hero-btn-clinic {
    background: #059669 !important;
    color: #FFFFFF !important;
    font-weight: 800;
    font-size: 14px;
    padding: 12px 18px;
    border-radius: 12px;
    display: block;
    text-align: center;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}
.clinic-hotline-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 10px;
    font-size: 12px;
    color: #991B1B;
    text-decoration: none;
    font-weight: 600;
}
.hotline-pill {
    background: #DC2626;
    color: #FFFFFF;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
}

/* 14. REVIEWS COUPON REWARD: PERFORATED COUPON TICKET */
.profile-container[data-template="reviews_coupon_reward"] .cover-section {
    height: 130px;
    background: linear-gradient(135deg, #B45309 0%, #F59E0B 100%);
}
.template-hero-card.review-coupon-ticket {
    background: #FFFBEB;
    border: 2px solid #F59E0B;
    border-radius: 18px;
    margin: 16px 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.16);
}
.coupon-ticket-header {
    background: #FEF3C7;
    padding: 14px 16px;
    text-align: center;
}
.coupon-tag {
    font-size: 11px;
    font-weight: 800;
    color: #92400E;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.coupon-title {
    font-size: 20px;
    font-weight: 900;
    color: #78350F;
    margin-top: 2px;
}
.coupon-perforation {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #FFFBEB;
}
.scissor-icon {
    font-size: 14px;
}
.perforation-line {
    flex: 1;
    height: 1px;
    border-bottom: 2px dashed #D97706;
}
.perforation-text {
    font-size: 10px;
    font-weight: 800;
    color: #92400E;
    letter-spacing: 1px;
}
.coupon-ticket-body {
    padding: 14px 16px;
    text-align: center;
}
.coupon-instructions {
    font-size: 12px;
    color: #78350F;
    margin-bottom: 10px;
    font-weight: 600;
}
.revealed-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    border-radius: 10px;
    padding: 8px 12px;
    margin-top: 10px;
    font-size: 13px;
    color: #92400E;
}
.promo-code {
    font-family: monospace;
    font-size: 16px;
    letter-spacing: 2px;
    color: #B45309;
}
.code-validity {
    background: #F59E0B;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

/* 15. REVIEWS SOCIAL DINING: DINING & DELIVERY HUB */
.profile-container[data-template="reviews_social_dining"] .cover-section {
    height: 140px;
    background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
}
.template-hero-card.review-social-dining {
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 18px;
    padding: 16px;
    margin: 16px 20px;
    box-shadow: var(--shadow-sm);
}
.delivery-hub-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
}
.delivery-apps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.delivery-app-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-variant);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.15s ease;
}
.delivery-app-card:active {
    transform: scale(0.97);
}
.delivery-icon {
    font-size: 18px;
}
.delivery-name {
    font-size: 12px;
    font-weight: 700;
    flex: 1;
    margin: 0 6px;
}
.delivery-cta {
    background: var(--primary-color);
    color: var(--on-primary);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-main);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    transition: opacity 0.3s ease;
}

@media (min-width: 640px) {
    body {
        padding: 40px 0;
    }
    #app {
        border-radius: var(--radius-lg);
        min-height: auto;
    }
}
