/* ===================================
   Digital Visiting Card - Main Styles
   PWA Ready | Modern Design
   =================================== */

/* CSS Variables */
:root {
    /* Primary Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.3);
    
    /* Background Colors */
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --bg-surface: #1e293b;
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Accent Colors */
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #0ea5e9;
    
    /* Social Colors */
    --whatsapp: #25d366;
    --linkedin: #0a66c2;
    --twitter: #000000;
    --instagram: #e4405f;
    --facebook: #1877f2;
    --youtube: #ff0000;
    --github: #333333;
    --telegram: #0088cc;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--primary-glow);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Light Theme */
.light-theme {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-surface: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.12);
}

/* Light Theme - Cover and Background Adjustments */
.light-theme .bg-gradient {
    opacity: 0.25;
}

.light-theme .cover-overlay {
    background: linear-gradient(to bottom, transparent 0%, var(--bg-dark) 100%);
}

.light-theme .card-container {
    background: var(--bg-dark);
}

.light-theme .card-section {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
}

.light-theme .quick-action-btn {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    color: var(--text-primary);
}

.light-theme .quick-action-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.light-theme .contact-item {
    background: var(--bg-surface);
    border: 1px solid #e2e8f0;
}

.light-theme .social-item {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
}

.light-theme .social-item:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.light-theme .qr-container {
    background: #ffffff;
}

.light-theme .action-buttons .share-btn,
.light-theme .action-buttons .save-btn {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    color: var(--text-primary);
}

.light-theme .action-buttons .share-btn:hover,
.light-theme .action-buttons .save-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.light-theme .profile-image {
    border-color: var(--bg-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.light-theme .bio-text {
    color: var(--text-secondary);
}

.light-theme .info-card {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--bg-card);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.loader-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Card Not Found */
.card-not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-xl);
    text-align: center;
}

.not-found-icon {
    width: 100px;
    height: 100px;
    background: var(--bg-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.not-found-icon i {
    font-size: 48px;
    color: var(--text-muted);
}

.card-not-found h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.card-not-found p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-home:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Card Container */
.card-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: var(--bg-dark);
    padding-bottom: var(--space-xl);
}

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary-light) 100%);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Card Header */
.card-header {
    position: relative;
    padding-bottom: var(--space-lg);
}

.cover-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-dark) 100%);
}

.company-logo {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding: 0 var(--space-lg);
}

.profile-image-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto var(--space-md);
}

.profile-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark), var(--primary-light));
    animation: rotate 3s linear infinite;
}

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

.profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border: 4px solid var(--bg-dark);
}

.online-status {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--success);
    border: 3px solid var(--bg-dark);
    border-radius: 50%;
    z-index: 2;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.5px;
}

.profile-title {
    font-size: 16px;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.profile-company {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
}

.profile-company i {
    color: var(--primary);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-xl) var(--space-lg);
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    min-width: 70px;
}

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

.action-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    transition: all var(--transition-normal);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.action-btn:hover .action-icon {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.action-icon.whatsapp {
    color: var(--whatsapp);
}

.action-btn:hover .action-icon.whatsapp {
    background: var(--whatsapp);
    color: white;
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.3);
}

.action-icon.share {
    color: var(--info);
}

.action-btn:hover .action-icon.share {
    background: var(--info);
    color: white;
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.3);
}

.action-btn span {
    font-size: 12px;
    font-weight: 500;
}

/* Section Styles */
.section-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
    padding: 0 var(--space-lg);
}

.section-title i {
    color: var(--primary);
}

/* Contact Section */
.contact-section {
    padding: var(--space-lg) 0;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: 0 var(--space-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.contact-item:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateX(4px);
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-icon.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: var(--whatsapp);
}

.contact-icon.email {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.contact-icon.website {
    background: rgba(14, 165, 233, 0.1);
    color: var(--info);
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-value {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-arrow {
    color: var(--text-muted);
    font-size: 12px;
    transition: transform var(--transition-normal);
}

.contact-item:hover .contact-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

/* Social Section */
.social-section {
    padding: var(--space-lg) 0;
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    padding: 0 var(--space-lg);
    flex-wrap: wrap;
}

.social-item {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 20px;
    color: white;
    transition: all var(--transition-normal);
}

.social-item:hover {
    transform: translateY(-4px) scale(1.1);
}

.social-item.linkedin {
    background: var(--linkedin);
}

.social-item.twitter {
    background: var(--twitter);
}

.social-item.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-item.facebook {
    background: var(--facebook);
}

.social-item.youtube {
    background: var(--youtube);
}

.social-item.github {
    background: var(--github);
}

/* Location Section */
.location-section {
    padding: var(--space-lg) 0;
}

.location-card {
    margin: 0 var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.location-map {
    position: relative;
    height: 200px;
    background: var(--bg-surface);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(0.3) contrast(1.1);
}

.location-info {
    padding: var(--space-md);
}

.address {
    display: flex;
    gap: var(--space-sm);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.address i {
    color: var(--primary);
    margin-top: 4px;
}

.directions-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.directions-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Save Contact Button */
.save-contact-section {
    padding: var(--space-xl) var(--space-md);
}

.save-contact-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.save-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-xl);
}

.save-contact-btn:active {
    transform: translateY(0);
}

.save-contact-btn i {
    font-size: 20px;
}

/* QR Section */
.qr-section {
    padding: var(--space-lg) 0;
}

.qr-card {
    margin: 0 var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--space-md);
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code canvas,
.qr-code img {
    width: 100% !important;
    height: 100% !important;
}

.qr-hint {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.qr-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.qr-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    color: var(--text-primary);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-normal);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.qr-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* NFC Section */
.nfc-section {
    padding: var(--space-lg) var(--space-md);
}

.nfc-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.nfc-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    transform: rotate(45deg);
}

.nfc-icon i {
    transform: rotate(-45deg);
}

.nfc-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.nfc-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.nfc-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.nfc-btn:hover {
    background: var(--primary);
    color: white;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    background: var(--bg-card);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform var(--transition-slow);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--bg-surface);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.modal-close:hover {
    background: var(--error);
    color: white;
}

.modal-body {
    padding: var(--space-lg);
}

/* Share Options */
.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.share-option:hover {
    transform: translateY(-2px);
    background: var(--bg-card-hover);
}

.share-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    color: white;
}

.share-icon.whatsapp { background: var(--whatsapp); }
.share-icon.email { background: var(--error); }
.share-icon.sms { background: var(--info); }
.share-icon.telegram { background: var(--telegram); }
.share-icon.copy { background: var(--text-muted); }
.share-icon.native { background: var(--primary); }

.share-option span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Share Link Input */
.share-link-section {
    background: var(--bg-surface);
    padding: var(--space-md);
    border-radius: var(--radius-md);
}

.share-link-section label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.link-input-group {
    display: flex;
    gap: var(--space-sm);
}

.link-input-group input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--bg-card-hover);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
}

.link-input-group button {
    padding: var(--space-sm) var(--space-md);
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.link-input-group button:hover {
    background: var(--primary-dark);
}

/* Footer */
.card-footer {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    color: var(--text-muted);
    font-size: 13px;
}

.card-footer strong {
    color: var(--primary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.footer-links a {
    color: var(--text-secondary);
    transition: color var(--transition-normal);
}

.footer-links a:hover {
    color: var(--primary);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast i {
    color: var(--success);
    font-size: 18px;
}

.toast span {
    font-size: 14px;
    font-weight: 500;
}

/* PWA Install Prompt */
.pwa-prompt {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    background: var(--bg-card);
    border-top: 1px solid var(--bg-surface);
    transform: translateY(100%);
    transition: transform var(--transition-slow);
    z-index: 1000;
}

.pwa-prompt.show {
    transform: translateY(0);
}

.pwa-prompt-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    max-width: 480px;
    margin: 0 auto;
}

.pwa-prompt-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.pwa-prompt-text {
    flex: 1;
}

.pwa-prompt-text h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.pwa-prompt-text p {
    font-size: 12px;
    color: var(--text-secondary);
}

.pwa-prompt-actions {
    display: flex;
    gap: var(--space-sm);
}

.pwa-prompt-actions button {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
}

.pwa-install-btn {
    background: var(--primary);
    color: white;
}

.pwa-dismiss-btn {
    color: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive */
@media (max-width: 380px) {
    .quick-actions {
        gap: var(--space-sm);
    }
    
    .action-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    .social-item {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Print Styles */
@media print {
    .quick-actions,
    .qr-section,
    .nfc-section,
    .save-contact-section,
    .card-footer {
        display: none;
    }
    
    .card-container {
        max-width: 100%;
        background: white;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   Bio Section
   =================================== */
.bio-section {
    padding: 0 var(--space-md) var(--space-md);
}

.bio-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    padding: var(--space-md);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
}

/* ===================================
   Profile Cards Section
   =================================== */
.profile-cards-section {
    padding: var(--space-md);
}

.profile-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.profile-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.profile-card:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.profile-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}

.profile-card-content {
    flex: 1;
    min-width: 0;
}

.profile-card-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.profile-card-value {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-card-arrow {
    color: var(--text-muted);
    font-size: 12px;
}

/* ===================================
   Languages Section
   =================================== */
.languages-section {
    padding: var(--space-md);
}

.languages-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.language-item {
    background: var(--bg-surface);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* ===================================
   Profile Detail Modal
   =================================== */
.profile-modal-content {
    max-height: 80vh;
    overflow-y: auto;
}

.modal-section {
    margin-bottom: var(--space-lg);
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.modal-section-title i {
    color: var(--primary);
}

.modal-experience-item,
.modal-education-item {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    position: relative;
}

.experience-header h4,
.education-header h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.experience-company,
.education-school {
    font-size: 13px;
    color: var(--primary-light);
}

.experience-period,
.education-period {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.experience-description,
.education-field {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: var(--space-sm);
    line-height: 1.5;
}

.current-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--success);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.skill-tag {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
}

.certifications-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.certification-tag {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-surface);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
}

.certification-tag i {
    color: #f59e0b;
}

.location-detail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    background: var(--bg-surface);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.location-detail i {
    color: var(--primary);
    font-size: 20px;
    margin-top: 2px;
}

.location-text {
    flex: 1;
}

.location-address {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.location-city {
    font-size: 13px;
    color: var(--text-secondary);
}

.location-country {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.directions-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-md);
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: background var(--transition-normal);
}

.directions-btn:hover {
    background: var(--primary-dark);
}

.modal-empty {
    text-align: center;
    color: var(--text-muted);
    padding: var(--space-xl);
    font-size: 14px;
}
