/**
 * TrendyProfile — Modern SaaS Design System & UI/UX Component Library
 * Version: 2.1.0 (Lnk.Bio Inspired Edition)
 * Compatible with Bootstrap 5.3.3+, Accessible WCAG 2.1 AA Compliant, Mobile-First
 */

@import url('design-tokens.css?v=2.2.0');
@import url('marketing.css?v=2.2.0');
@import url('auth.css?v=2.2.0');
@import url('dashboard.css?v=2.2.0');
@import url('editor.css?v=2.2.0');
@import url('public-profile.css?v=2.2.0');
@import url('admin.css?v=2.2.0');
@import url('responsive.css?v=2.2.0');

/* ==========================================================================
   1. DESIGN TOKENS & ROOT VARIABLES (V3 Premium Purple & Pink Identity)
   ========================================================================== */
:root {
    /* Bootstrap 5.3 Direct Variable Mapping */
    --bs-primary:               #7028F5;
    --bs-primary-rgb:           112, 40, 245;
    --bs-primary-bg-subtle:      #F0E7FF;
    --bs-primary-border-subtle:  #EADDFB;
    --bs-primary-text-emphasis:  #5D1DE0;
    --bs-link-color:             #7028F5;
    --bs-link-color-rgb:         112, 40, 245;
    --bs-link-hover-color:       #5D1DE0;
    --bs-link-hover-color-rgb:   93, 29, 224;
    --bs-body-bg:                #F7F0FF;
    --bs-body-color:             #19152B;
    --bs-border-color:           #EADDFB;

    /* Primary Brand Colors */
    --tp-primary:        #7028F5;
    --tp-primary-hover:  #5D1DE0;
    --tp-primary-active: #4F18C6;
    --tp-primary-soft:   #F0E7FF;
    --tp-primary-subtle: #F0E7FF;
    --tp-primary-rgb:    112, 40, 245;

    /* Tonal Primary Scale */
    --tp-primary-50:     #FAF5FF;
    --tp-primary-100:    #F0E7FF;
    --tp-primary-200:    #E2D0FE;
    --tp-primary-300:    #C8A6FD;
    --tp-primary-400:    #A871FA;
    --tp-primary-500:    #8B42F7;
    --tp-primary-600:    #7028F5;
    --tp-primary-700:    #5D1DE0;
    --tp-primary-800:    #4F18C6;
    --tp-primary-900:    #3E129E;

    /* Brand Accents & Vibrancy */
    --tp-violet:         #A43CF5;
    --tp-pink:           #EC83E8;
    --tp-lavender:       #C58BFA;

    /* Official Brand Gradients */
    --tp-gradient-brand:     linear-gradient(110deg, #7028F5 0%, #A43CF5 52%, #EC83E8 100%);
    --tp-gradient-btn:       linear-gradient(135deg, #7028F5 0%, #A43CF5 100%);
    --tp-gradient-btn-hover: linear-gradient(135deg, #5D1DE0 0%, #8E2BE2 100%);
    --tp-gradient-hero:      linear-gradient(135deg, rgba(112, 40, 245, 0.08) 0%, rgba(164, 60, 245, 0.04) 50%, rgba(236, 131, 232, 0.08) 100%);
    --tp-gradient-surface:   linear-gradient(180deg, #FFFFFF 0%, #FAF5FF 100%);
    --tp-gradient-badge:     linear-gradient(135deg, #F0E7FF 0%, #FCEBFA 100%);
    --tp-gradient-accent:    linear-gradient(135deg, #7028F5 0%, #EC83E8 100%);

    /* Secondary & Slate Palette */
    --tp-slate-50:  #FAF5FF;
    --tp-slate-100: #F0E7FF;
    --tp-slate-200: #EADDFB;
    --tp-slate-300: #D8C7F5;
    --tp-slate-400: #A59EB5;
    --tp-slate-500: #89819B;
    --tp-slate-600: #625A75;
    --tp-slate-700: #463E5A;
    --tp-slate-800: #2D2642;
    --tp-slate-900: #19152B;
    --tp-slate-950: #0E0C18;

    /* Functional Semantic Colors */
    --tp-success:        #16A579;
    --tp-success-subtle: #E8F8F1;
    --tp-success-border: #A3E7D0;
    --tp-warning:        #E6A23C;
    --tp-warning-subtle: #FFF6E7;
    --tp-warning-border: #F8D8A0;
    --tp-danger:         #E45668;
    --tp-danger-subtle:  #FDECEF;
    --tp-danger-border:  #F7BAC2;
    --tp-info:           #4285D4;
    --tp-info-subtle:    #EBF3FC;
    --tp-info-border:    #ADCFF5;

    /* Light Theme Surfaces & Backgrounds */
    --tp-page-bg:          #F7F0FF;
    --tp-bg-body:          #F7F0FF;
    --tp-surface:          #FFFFFF;
    --tp-bg-card:          #FFFFFF;
    --tp-surface-soft:     #FCEBFA;
    --tp-surface-lavender: #F0E7FF;
    --tp-bg-subtle:        #F7F0FF;
    --tp-border:           #EADDFB;
    --tp-border-color:     #EADDFB;
    --tp-border-color-subtle: #F3EBFC;
    --tp-border-subtle:    #F3EBFC;

    /* Typography Colors */
    --tp-text:            #19152B;
    --tp-text-main:       #19152B;
    --tp-text-primary:    #19152B;
    --tp-text-secondary:  #625A75;
    --tp-text-muted:      #89819B;
    --tp-text-subtle:     #A59EB5;
    --tp-text-on-primary: #FFFFFF;

    /* Elevation Shadows */
    --tp-shadow-xs:    0 1px 2px rgba(25, 21, 43, 0.04);
    --tp-shadow-sm:    0 2px 5px rgba(112, 40, 245, 0.05), 0 1px 2px rgba(25, 21, 43, 0.03);
    --tp-shadow-md:    0 6px 16px rgba(112, 40, 245, 0.07), 0 2px 4px rgba(25, 21, 43, 0.03);
    --tp-shadow-lg:    0 12px 28px rgba(112, 40, 245, 0.09), 0 4px 8px rgba(25, 21, 43, 0.04);
    --tp-shadow-xl:    0 20px 40px rgba(112, 40, 245, 0.13);
    --tp-shadow-hover: 0 8px 22px rgba(112, 40, 245, 0.18), 0 2px 6px rgba(25, 21, 43, 0.04);
    --tp-shadow-focus: 0 0 0 3px rgba(112, 40, 245, 0.22);

    /* Border Radii */
    --tp-radius-xs: 4px;
    --tp-radius-sm: 6px;
    --tp-radius-md: 8px;
    --tp-radius-lg: 12px;
    --tp-radius-xl: 14px;
    --tp-radius-2xl: 18px;
    --tp-radius-pill: 9999px;

    /* Typography */
    --tp-font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --tp-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

    /* Compact Layout Bounds */
    --tp-sidebar-width:     228px;
    --tp-topbar-height:     56px;
    --tp-width-marketing:   1160px;
    --tp-width-hero:        1050px;
    --tp-width-text:        760px;
    --tp-width-pricing:     1100px;
    --tp-width-dashboard:   1180px;
    --tp-width-editor:      1440px;
    --tp-width-profile:     500px;
    --tp-width-admin:       1240px;
    --tp-phone-width:       375px;

    /* Transitions */
    --tp-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --tp-transition-normal: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --tp-transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. GLOBAL RESET & BASE TYPOGRAPHY
   ========================================================================== */
html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--tp-font-sans);
    background-color: var(--tp-bg-body);
    color: var(--tp-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Prevent horizontal overflow on mobile viewports */
.container,
.container-fluid,
.row {
    max-width: 100%;
}

/* Standardized Typography Layout (Phase 1 Global Typography) */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--tp-text-primary);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

h1, .h1, .tp-heading-1 {
    font-size: var(--tp-font-size-h1, clamp(1.75rem, 3.2vw, 2.25rem)); /* Main page headings: 28–36px */
    margin-bottom: var(--tp-heading-gap, 0.75rem);
}

h2, .h2, .tp-heading-2 {
    font-size: var(--tp-font-size-h2, clamp(1.25rem, 2.2vw, 1.625rem)); /* Section headings: 20–26px */
    margin-bottom: var(--tp-heading-gap, 0.75rem);
}

h3, .h3, .tp-heading-3 {
    font-size: var(--tp-font-size-h3, clamp(0.95rem, 1.6vw, 1.125rem)); /* Card headings: 15–18px */
    margin-bottom: var(--tp-space-2, 0.5rem);
}

body, p, .tp-text-body {
    font-size: var(--tp-font-size-body, 0.9375rem); /* Body text: 14–16px */
    color: var(--tp-text-secondary);
}

.text-secondary, .text-muted, small, .small, .tp-text-secondary {
    font-size: var(--tp-font-size-secondary, 0.8125rem); /* Secondary text: 12–14px */
}

.form-label, label, .tp-label {
    font-size: var(--tp-font-size-label, 0.84375rem); /* Form labels: 13–14px */
    font-weight: 500;
    color: var(--tp-text-primary);
    margin-bottom: var(--tp-space-1, 4px);
}

a {
    color: var(--tp-primary-600);
    text-decoration: none;
    transition: color var(--tp-transition-fast);
}

a:hover {
    color: var(--tp-primary-700);
}

/* Accessible focus ring for all focusable elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--tp-shadow-focus) !important;
}

/* ==========================================================================
   3. REUSABLE BUTTON SYSTEM (.tp-btn, .btn-tp-*)
   ========================================================================== */
.tp-btn,
.btn-tp-primary,
.btn-primary {
    background: var(--tp-gradient-btn) !important;
    border: 1px solid transparent !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.45rem 1.15rem;
    border-radius: var(--tp-radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    box-shadow: 0 2px 8px rgba(112, 40, 245, 0.22);
    transition: all var(--tp-transition-normal);
    cursor: pointer;
    min-height: 38px;
    line-height: 1.4;
}

.tp-btn:hover,
.btn-tp-primary:hover,
.btn-primary:hover {
    background: var(--tp-gradient-btn-hover) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: var(--tp-shadow-hover);
}

.tp-btn:active,
.btn-tp-primary:active,
.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--tp-shadow-xs);
}

/* Secondary Button */
.btn-tp-secondary,
.btn-outline-primary {
    background-color: #ffffff !important;
    border: 1px solid var(--tp-border) !important;
    color: var(--tp-primary) !important;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.45rem 1.15rem;
    border-radius: var(--tp-radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    box-shadow: var(--tp-shadow-xs);
    transition: all var(--tp-transition-normal);
    min-height: 38px;
    line-height: 1.4;
}

.btn-tp-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: var(--tp-surface-lavender) !important;
    border-color: var(--tp-primary) !important;
    color: var(--tp-primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: var(--tp-shadow-sm);
}

/* Ghost Button */
.btn-tp-ghost {
    background: transparent !important;
    border: 1px solid transparent !important;
    color: var(--tp-primary) !important;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--tp-radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all var(--tp-transition-fast);
}

.btn-tp-ghost:hover {
    background-color: var(--tp-surface-lavender) !important;
    color: var(--tp-primary-hover) !important;
}

/* Subtle Action Button */
.btn-tp-subtle {
    background-color: var(--tp-surface-lavender);
    border: 1px solid var(--tp-border);
    color: var(--tp-primary) !important;
    font-weight: 600;
    border-radius: var(--tp-radius-md);
    padding: 0.35rem 0.8rem;
    font-size: 0.8125rem;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all var(--tp-transition-fast);
}

.btn-tp-subtle:hover {
    background-color: var(--tp-primary-200);
    color: var(--tp-primary-hover) !important;
}

/* Sizing variations */
.btn-tp-sm {
    padding: 0.28rem 0.75rem;
    font-size: 0.8125rem;
    min-height: 32px;
}

.btn-tp-lg {
    padding: 0.65rem 1.35rem;
    font-size: 0.95rem;
    min-height: 44px;
}

/* Bootstrap Button Refinements */
.btn {
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all var(--tp-transition-normal);
}

/* Bootstrap Color & Component Overrides */
.text-primary {
    color: var(--tp-primary) !important;
}

a.text-primary:hover,
a.text-primary:focus {
    color: var(--tp-primary-hover) !important;
}

.bg-primary {
    background: var(--tp-gradient-btn) !important;
    color: #ffffff !important;
}

.bg-light {
    background-color: var(--tp-page-bg, #F7F0FF) !important;
}

.bg-primary-subtle {
    background-color: var(--tp-surface-lavender) !important;
    color: var(--tp-primary) !important;
    border: 1px solid var(--tp-border) !important;
}

.border-primary {
    border-color: var(--tp-primary) !important;
}

.border-primary-subtle {
    border-color: var(--tp-border) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--tp-primary) !important;
    box-shadow: var(--tp-shadow-focus) !important;
}

.form-check-input:checked {
    background-color: var(--tp-primary) !important;
    border-color: var(--tp-primary) !important;
}

.nav-pills .nav-link.active {
    background: var(--tp-gradient-btn) !important;
    color: #ffffff !important;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--tp-primary) !important;
    color: #ffffff !important;
}

.pagination .page-item.active .page-link {
    background: var(--tp-gradient-btn) !important;
    border-color: var(--tp-primary) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   4. CARD ARCHITECTURE (.tp-card, .card)
   ========================================================================== */
.tp-card,
.card {
    background-color: var(--tp-bg-card);
    border: 1px solid var(--tp-border-color);
    border-radius: var(--tp-radius-lg);
    box-shadow: var(--tp-shadow-sm);
    transition: box-shadow var(--tp-transition-normal), transform var(--tp-transition-normal);
}

.tp-card-hover:hover,
.card-hover:hover {
    box-shadow: var(--tp-shadow-md);
    transform: translateY(-2px);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--tp-border-color);
    padding: 0.85rem 1.15rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.card-body {
    padding: 1.15rem 1.25rem;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid var(--tp-border-color);
    padding: 0.75rem 1.15rem;
}

/* ==========================================================================
   5. FORM CONTROLS & ACCESSIBLE INPUTS
   ========================================================================== */
.form-label {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--tp-slate-700);
    margin-bottom: 0.35rem;
}

.form-control,
.form-select {
    border: 1px solid var(--tp-slate-300);
    border-radius: var(--tp-radius-md);
    padding: 0.45rem 0.75rem;
    font-size: 0.875rem;
    min-height: 38px;
    color: var(--tp-slate-900);
    background-color: #ffffff;
    box-shadow: var(--tp-shadow-xs);
    transition: border-color var(--tp-transition-fast), box-shadow var(--tp-transition-fast);
}

.form-control-sm,
.form-select-sm {
    padding: 0.28rem 0.6rem;
    min-height: 32px;
    font-size: 0.8125rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--tp-primary-500);
    box-shadow: var(--tp-shadow-focus);
    background-color: #ffffff;
}

.form-control::placeholder {
    color: var(--tp-slate-400);
}

.input-group-text {
    background-color: var(--tp-slate-50);
    border: 1px solid var(--tp-slate-300);
    color: var(--tp-slate-500);
    border-radius: var(--tp-radius-md);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Form switch toggle */
.form-check-input:checked {
    background-color: var(--tp-primary-600);
    border-color: var(--tp-primary-600);
}

.form-check-input:focus {
    box-shadow: var(--tp-shadow-focus);
}

/* ==========================================================================
   6. TABLES & DATA CONTAINERS
   ========================================================================== */
.tp-table-responsive {
    overflow-x: auto;
    border-radius: var(--tp-radius-lg);
    border: 1px solid var(--tp-border-color);
    background: #ffffff;
    box-shadow: var(--tp-shadow-xs);
}

.table {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.table th {
    background-color: var(--tp-slate-50);
    color: var(--tp-slate-600);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--tp-border-color);
    white-space: nowrap;
}

.table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    color: var(--tp-slate-800);
    border-bottom: 1px solid var(--tp-border-color-subtle);
}

.table tbody tr:hover {
    background-color: var(--tp-slate-50);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   7. BADGES & STATUS PILLS
   ========================================================================== */
.badge {
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.4em 0.8em;
    border-radius: var(--tp-radius-pill);
}

.badge.bg-light,
.badge.bg-white,
.badge-light {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1;
}

.tp-badge-primary,
.badge.bg-primary-subtle {
    background-color: var(--tp-primary-50) !important;
    color: var(--tp-primary-700) !important;
    border: 1px solid var(--tp-primary-200);
}

.tp-badge-success,
.badge.bg-success-subtle {
    background-color: var(--tp-success-subtle) !important;
    color: #065f46 !important;
    border: 1px solid var(--tp-success-border);
}

.tp-badge-warning,
.badge.bg-warning-subtle {
    background-color: var(--tp-warning-subtle) !important;
    color: #92400e !important;
    border: 1px solid var(--tp-warning-border);
}

.tp-badge-danger,
.badge.bg-danger-subtle {
    background-color: var(--tp-danger-subtle) !important;
    color: #991b1b !important;
    border: 1px solid var(--tp-danger-border);
}

.tp-badge-neutral,
.badge.bg-secondary-subtle {
    background-color: var(--tp-slate-100) !important;
    color: var(--tp-slate-700) !important;
    border: 1px solid var(--tp-slate-200);
}

.badge.bg-light.text-muted,
.badge.bg-light.text-secondary {
    color: #475569 !important;
}

/* Font Awesome 6 Free Polyfill for Pro-only fa-sparkles */
.fa-sparkles::before,
i.fa-sparkles::before {
    content: "\e2ca" !important; /* fa-wand-magic-sparkles unicode */
}

/* ==========================================================================
   8. ALERTS & NOTIFICATIONS
   ========================================================================== */
.alert {
    border: 1px solid transparent;
    border-left-width: 4px;
    border-radius: var(--tp-radius-md);
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    box-shadow: var(--tp-shadow-sm);
}

.alert-info {
    background-color: var(--tp-info-subtle);
    border-color: var(--tp-info-border);
    border-left-color: var(--tp-info);
    color: #155e75;
}

.alert-success {
    background-color: var(--tp-success-subtle);
    border-color: var(--tp-success-border);
    border-left-color: var(--tp-success);
    color: #065f46;
}

.alert-warning {
    background-color: var(--tp-warning-subtle);
    border-color: var(--tp-warning-border);
    border-left-color: var(--tp-warning);
    color: #92400e;
}

.alert-danger {
    background-color: var(--tp-danger-subtle);
    border-color: var(--tp-danger-border);
    border-left-color: var(--tp-danger);
    color: #991b1b;
}

/* ==========================================================================
   9. MODALS & DIALOGS
   ========================================================================== */
.modal-backdrop.show {
    opacity: 0.6;
    backdrop-filter: blur(4px);
}

.modal-content {
    border: 1px solid var(--tp-border-color);
    border-radius: var(--tp-radius-xl);
    box-shadow: var(--tp-shadow-xl);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--tp-border-color);
    padding: 1.25rem 1.5rem;
    background-color: var(--tp-slate-50);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--tp-border-color);
    padding: 1rem 1.5rem;
    background-color: var(--tp-slate-50);
}

/* ==========================================================================
   10. METRIC STAT CARDS (.tp-metric-card)
   ========================================================================== */
.tp-metric-card {
    background-color: #ffffff;
    border: 1px solid var(--tp-border-color);
    border-radius: var(--tp-radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--tp-shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform var(--tp-transition-normal), box-shadow var(--tp-transition-normal);
}

.tp-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tp-shadow-md);
}

.tp-metric-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--tp-radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.tp-metric-val {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--tp-slate-900);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.tp-metric-label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tp-slate-500);
}

/* ==========================================================================
   11. REALISTIC PHONE MOCKUP FRAME (.tp-phone-mockup)
   ========================================================================== */
.tp-phone-mockup {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    background: #0f172a;
    border: 10px solid #1e293b;
    border-radius: 46px;
    padding: 12px 8px 16px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    box-sizing: border-box;
}

.tp-phone-notch {
    width: 80px;
    height: 18px;
    background: #1e293b;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    margin: -12px auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tp-phone-camera {
    width: 6px;
    height: 6px;
    background: #0f172a;
    border-radius: 50%;
}

.tp-phone-speaker {
    width: 32px;
    height: 3px;
    background: #334155;
    border-radius: 2px;
}

.tp-phone-screen {
    background: #ffffff;
    border-radius: 34px;
    min-height: 520px;
    max-height: 620px;
    overflow-y: auto;
    padding: 1.25rem 0.85rem;
    box-sizing: border-box;
    /* Custom thin scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}

.tp-phone-screen::-webkit-scrollbar {
    width: 4px;
}

.tp-phone-screen::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 4px;
}

/* ==========================================================================
   12. THEME PREVIEWS (.tp-theme-card)
   ========================================================================== */
.tp-theme-card {
    border: 2px solid var(--tp-border-color);
    border-radius: var(--tp-radius-lg);
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--tp-transition-normal);
    position: relative;
}

.tp-theme-card:hover {
    border-color: var(--tp-primary-400);
    transform: translateY(-2px);
    box-shadow: var(--tp-shadow-md);
}

.tp-theme-card.active {
    border-color: var(--tp-primary-600);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.22);
}

.tp-theme-badge-active {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--tp-primary-600);
    color: #ffffff;
    border-radius: var(--tp-radius-pill);
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ==========================================================================
   13. PRICING CARDS (.tp-pricing-card)
   ========================================================================== */
.tp-pricing-card {
    background-color: #ffffff;
    border: 1px solid var(--tp-border-color, #EADDFB);
    border-radius: var(--tp-radius-xl, 16px);
    padding: 1.75rem 1.35rem;
    box-shadow: 0 2px 10px rgba(25, 21, 43, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tp-pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(112, 40, 245, 0.12);
    border-color: var(--tp-lavender, #C58BFA);
}

.tp-pricing-card.featured {
    border: 2px solid var(--tp-primary, #7028F5);
    background: linear-gradient(180deg, #FFFFFF 0%, #FAF5FF 100%);
    box-shadow: 0 10px 30px rgba(112, 40, 245, 0.14);
}

.tp-pricing-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tp-gradient-brand, linear-gradient(110deg, #7028F5 0%, #A43CF5 52%, #EC83E8 100%));
    color: #ffffff;
    font-weight: 800;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: var(--tp-radius-pill, 9999px);
    box-shadow: 0 4px 14px rgba(112, 40, 245, 0.35);
    white-space: nowrap;
    z-index: 2;
}

.tp-price-val {
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--tp-text-main, #19152B);
    line-height: 1;
}

.tp-price-currency {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--tp-text-main, #19152B);
    vertical-align: top;
    margin-right: 1px;
}

.tp-price-cycle {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--tp-text-muted, #89819B);
}

.tp-pricing-features {
    font-size: 0.8125rem;
    line-height: 1.55;
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

.tp-pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
    color: var(--tp-text-secondary, #625A75);
}

.tp-pricing-features li i {
    flex-shrink: 0;
    margin-top: 0.2rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   14. EMPTY STATES (.tp-empty-state)
   ========================================================================== */
.tp-empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    border: 2px dashed var(--tp-slate-200);
    border-radius: var(--tp-radius-lg);
    background-color: var(--tp-slate-50);
}

.tp-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--tp-primary-50);
    color: var(--tp-primary-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.tp-empty-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--tp-slate-800);
    margin-bottom: 0.35rem;
}

.tp-empty-text {
    font-size: 0.875rem;
    color: var(--tp-slate-500);
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

/* ==========================================================================
   15. LOADING STATES & SKELETON LOADERS
   ========================================================================== */
.tp-skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: tp-shimmer 1.5s infinite;
    border-radius: var(--tp-radius-sm);
    display: inline-block;
}

@keyframes tp-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   16. RESPONSIVE BREAKPOINT & MOBILE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 767.98px) {
    .tp-pricing-card {
        padding: 1.5rem;
    }
    .tp-metric-card {
        padding: 1rem;
    }
    .tp-metric-val {
        font-size: 1.5rem;
    }
    .btn-tp-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    .card-body {
        padding: 1.15rem;
    }
}

/* ==========================================================================
   17. SHARED APPLICATION & COMPONENT ADDITIONS (LNK.BIO / SAAS PROTO)
   ========================================================================== */

/* Brand Logo */
.tp-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    color: var(--tp-slate-900);
    text-decoration: none;
}

.tp-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--tp-gradient-brand);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(112, 40, 245, 0.28);
}

/* Live Status Badge with blinking dot */
.tp-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: var(--tp-radius-pill);
    background-color: var(--tp-success-subtle);
    color: #065f46;
    border: 1px solid var(--tp-success-border);
}

.tp-badge-live::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--tp-success);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
    animation: tp-live-blink 1.8s infinite;
}

@keyframes tp-live-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* KPI / Metric Cards (Compatible with both .tp-metric-card and .tp-kpi-card) */
.tp-kpi-card,
.tp-metric-card {
    background-color: #ffffff;
    border: 1px solid var(--tp-border-color);
    border-radius: var(--tp-radius-lg);
    padding: 20px;
    box-shadow: var(--tp-shadow-xs);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform var(--tp-transition-normal), box-shadow var(--tp-transition-normal);
}

.tp-kpi-card:hover,
.tp-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tp-shadow-sm);
}

.tp-kpi-icon,
.tp-metric-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--tp-radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.tp-kpi-val,
.tp-metric-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--tp-slate-900);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.tp-kpi-label,
.tp-metric-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tp-slate-500);
}

.tp-kpi-trend {
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Link Cards & Management Elements */
.tp-link-card {
    background-color: #ffffff;
    border: 1px solid var(--tp-border-color);
    border-radius: var(--tp-radius-md);
    padding: 0.85rem 1.1rem;
    margin-bottom: 0.65rem;
    transition: all var(--tp-transition-fast);
    box-shadow: var(--tp-shadow-xs);
    position: relative;
}

.tp-link-card:hover {
    border-color: var(--tp-primary-300);
    box-shadow: var(--tp-shadow-sm);
}

.tp-drag-handle {
    cursor: grab;
    color: var(--tp-slate-400);
    padding: 0.25rem;
    touch-action: none;
    transition: color 0.15s ease;
}

.tp-drag-handle:hover,
.tp-drag-handle:active {
    color: var(--tp-primary-600);
    cursor: grabbing;
}

/* Attention Grabber Animations */
@keyframes tp-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes tp-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

@keyframes tp-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.tp-animate-pulse {
    animation: tp-pulse 2s infinite ease-in-out;
}

.tp-animate-shake {
    animation: tp-shake 2.5s infinite ease-in-out;
}

.tp-animate-bounce {
    animation: tp-bounce 2.5s infinite ease-in-out;
}

/* ==========================================================================
   18. CENTRALIZED CONTAINER SYSTEM (Phase 1 Official Architecture)
   ========================================================================== */

/* Universal Container Base Properties */
.tp-container,
.tp-container-marketing,
.tp-container-hero,
.tp-container-pricing,
.tp-container-narrow,
.tp-container-dashboard,
.tp-container-admin,
.tp-container-editor,
.tp-container-auth,
.tp-container-profile,
.tp-container-article,
.tp-container-reading,
.tp-container-footer,
/* Legacy & Compatibility Aliases */
.tp-marketing-container,
.tp-hero-container,
.tp-pricing-container,
.tp-dashboard-container,
.tp-admin-container,
.tp-editor-container,
.tp-profile-container,
.tp-text-container,
.auth-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding-left: var(--tp-container-pad, 16px);
    padding-right: var(--tp-container-pad, 16px);
}

/* 1. Default / Marketing: 1200px */
.tp-container,
.tp-container-marketing,
.tp-marketing-container {
    max-width: var(--tp-container-marketing, 1200px);
}

/* 2. Hero Section: 1150px */
.tp-container-hero,
.tp-hero-container {
    max-width: var(--tp-container-hero, 1150px);
}

/* 3. Pricing Matrix: 1100px */
.tp-container-pricing,
.tp-pricing-container {
    max-width: var(--tp-container-pricing, 1100px);
}

/* 3.1 Narrow Content (FAQ, About, Contact): 1000px */
.tp-container-narrow {
    max-width: var(--tp-container-narrow, 1000px);
}

/* 4. Authenticated User Dashboard: 1280px */
.tp-container-dashboard,
.tp-dashboard-container {
    max-width: var(--tp-container-dashboard, 1280px);
}

/* 5. Administration Console: 1360px */
.tp-container-admin,
.tp-admin-container {
    max-width: var(--tp-container-admin, 1360px);
}

/* 6. Theme Designer / Editor Studio: 1440px */
.tp-container-editor,
.tp-editor-container,
.tp-theme-customizer,
.tp-theme-designer {
    max-width: var(--tp-container-editor, 1440px);
    width: 100%;
}

.tp-container-dashboard:has(.tp-theme-customizer),
.tp-container-dashboard:has(.tp-container-editor),
.tp-dashboard-container:has(.tp-theme-customizer),
.tp-dashboard-container:has(.tp-container-editor),
.tp-container-admin:has(.tp-container-editor),
.tp-container-admin:has(.tp-theme-designer),
.tp-admin-container:has(.tp-container-editor),
.tp-admin-container:has(.tp-theme-designer) {
    max-width: var(--tp-container-editor, 1440px) !important;
}

/* 7. Authentication Cards: 440px */
.tp-container-auth,
.auth-container {
    max-width: var(--tp-container-auth, 440px);
    padding-left: var(--tp-space-3, 12px);
    padding-right: var(--tp-space-3, 12px);
}

/* 8. Public Creator Profile Container: 460px */
.tp-container-profile,
.tp-profile-container,
.tp-public-card {
    max-width: var(--tp-container-profile, 460px);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    min-height: 100vh;
}

@media (max-width: 575.98px) {
    .tp-container-profile,
    .tp-profile-container,
    .tp-public-card {
        max-width: 100%;
        border-radius: 0;
        min-height: 100vh;
        padding-left: var(--tp-container-pad, 16px);
        padding-right: var(--tp-container-pad, 16px);
    }
}

/* 9. Editorial, Legal & Article Container: 760px */
.tp-container-article,
.tp-text-container {
    max-width: var(--tp-container-article, 760px);
}

/* 10. Longform Reading Container: 800px */
.tp-container-reading {
    max-width: var(--tp-container-reading, 800px);
}

/* 11. Master Global Footer: 1200px */
.tp-container-footer {
    max-width: var(--tp-container-footer, 1200px);
}

/* Verified Badge Utility */
.tp-verified-badge {
    color: var(--tp-primary, #7028F5);
    font-size: 1rem;
    vertical-align: middle;
    margin-left: 0.35rem;
}

/* Nested Container Protection (Prevents double padding compounding) */
.tp-container .tp-container,
.tp-container [class*="tp-container-"],
[class*="tp-container-"] .tp-container,
[class*="tp-container-"] [class*="tp-container-"],
.tp-marketing-container .tp-marketing-container,
.tp-marketing-container [class*="tp-container-"],
.tp-dashboard-container [class*="tp-container-"],
.tp-admin-container [class*="tp-container-"] {
    padding-left: 0;
    padding-right: 0;
}

/* Dashboard & Admin Main Area Integration */
main.p-3 > .tp-container-dashboard,
main.p-md-4 > .tp-container-dashboard,
main.tp-dashboard-main-area > .tp-container-dashboard,
.tp-dashboard-main-area > .tp-container-dashboard,
main.p-3 > .tp-dashboard-container,
main.p-md-4 > .tp-dashboard-container,
main.tp-dashboard-main-area > .tp-dashboard-container,
.tp-dashboard-main-area > .tp-dashboard-container,
main.p-3 > .tp-container-admin,
main.p-md-4 > .tp-container-admin,
main.tp-admin-main-area > .tp-container-admin,
.tp-admin-main-area > .tp-container-admin,
main.p-3 > .tp-admin-container,
main.p-md-4 > .tp-admin-container,
main.tp-admin-main-area > .tp-admin-container,
.tp-admin-main-area > .tp-admin-container {
    padding-left: 0;
    padding-right: 0;
}

