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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    padding-top: 80px;
}

.container {
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.nav-logo i {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

/* Navigation Profile Image */
.nav-profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    border: 2px solid #fff;
    object-fit: cover;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: #667eea;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Features Section */
.features-section {
    /* padding: 80px 0; */
    margin-bottom: 80px;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: white;
    position: relative;
}

.features-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-card i {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Demo Section */
.demo-section {
    /* padding: 80px 0; */
    text-align: center;
    /* margin-bottom: 80px; */
}

.demo-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: white;
    position: relative;
}

.demo-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.demo-preview {
    position: relative;
    max-width: 350px;
    margin: 0 auto;
}

.phone-mockup {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 40px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.demo-profile {
    text-align: center;
    margin-bottom: 30px;
}

.demo-profile img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
}

.demo-profile h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.demo-profile p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.demo-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-link {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.demo-link:hover {
    transform: translateX(5px);
}

.demo-link i {
    color: #667eea;
    font-size: 1.5rem;
}

.demo-link span {
    font-weight: 600;
    color: #333;
}

/* Profile Section */
.profile {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-image {
    margin-bottom: 20px;
}

.profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-image img:hover {
    transform: scale(1.05);
}

.profile h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.profile p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Links Container */
.links-container {
    width: 100%;
    max-width: 500px;
    margin-bottom: 30px;
    position: relative;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
    padding: 20px 25px;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.link-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.link-item:hover:before {
    left: 100%;
}

.link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.link-item i:first-child {
    font-size: 1.5rem;
    width: 30px;
    color: #667eea;
}

.link-item span {
    flex: 1;
    text-align: center;
    font-weight: 500;
    font-size: 1.1rem;
}

.link-item i:last-child {
    font-size: 1rem;
    color: #999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.link-item:hover i:last-child {
    opacity: 1;
}

/* Drop zone styling */
.links-container.drag-over {
    border: 3px dashed rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
}

.links-container.drag-over::after {
    content: 'Drop here to add link';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 10;
}

/* Admin Toggle */
.admin-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

#adminBtn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    color: #667eea;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#adminBtn:hover {
    background: white;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Admin Panel */
.admin-panel {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-panel h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.admin-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-buttons button {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.admin-buttons button:first-child {
    background: #667eea;
    color: white;
}

.admin-buttons button:nth-child(2) {
    background: #28a745;
    color: white;
}

.admin-buttons button:last-child {
    background: #dc3545;
    color: white;
}

.admin-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    margin-top: auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Auth Pages */
.auth-container {
    max-width: 500px;
    margin: 50px auto;
}

.auth-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
}

.auth-form h2 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
}

.auth-switch p {
    color: rgba(255, 255, 255, 0.8);
}

.auth-switch a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.full-width {
    width: 100%;
    justify-content: center;
}

.demo-info {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-info h3 {
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.demo-credentials p {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-family: monospace;
}

/* Error message styling */
.error-message {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #fff;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

/* Success message styling */
.success-message {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #fff;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

/* Admin Dashboard */
.admin-dashboard h1 {
    color: white;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card i {
    font-size: 2.5rem;
    color: #667eea;
}

.stat-info h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 5px;
}

.stat-info p {
    color: rgba(255, 255, 255, 0.8);
}

.admin-section {
    margin-bottom: 50px;
}

.admin-section h2 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-info h4 {
    color: white;
    margin-bottom: 5px;
}

.user-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 8px;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.analytics-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.analytics-table {
    overflow-x: auto;
}

.analytics-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.analytics-table th,
.analytics-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.analytics-table th {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
}

.analytics-table td {
    color: rgba(255, 255, 255, 0.9);
}

.analytics-table a {
    color: #667eea;
    text-decoration: none;
}

.no-data {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.setting-item h4 {
    color: white;
    margin-bottom: 10px;
}

.setting-item input {
    width: 100%;
    padding: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.setting-item input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #667eea;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.settings-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Social Media Panel */
.social-media-panel {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 280px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 100;
}

.social-media-panel h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.social-button {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 10px;
    border-radius: 12px;
    text-align: center;
    cursor: grab;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: white;
}

.social-button:active {
    cursor: grabbing;
}

.social-button.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.social-button i {
    font-size: 1.5rem;
    color: #667eea;
}

.social-button span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

.drag-instruction {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}

/* Public Profile Styles */
.public-link {
    position: relative;
}

.public-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.no-links {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin: 20px 0;
}

/* Share Section */
.share-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.share-section h3 {
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-url {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.share-url input {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.share-url input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-twitter {
    background: #1da1f2;
    color: white;
}

.btn-twitter:hover {
    background: #0d8bd9;
}

.btn-facebook {
    background: #4267b2;
    color: white;
}

.btn-facebook:hover {
    background: #365899;
}

.btn-email {
    background: #6c757d;
    color: white;
}

.btn-email:hover {
    background: #545b62;
}

/* Profile Stats */
.profile-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
}

.stat-item i {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

.stat-item span {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.stat-item label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    display: block;
}

/* Login Required Message */
.login-required {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.login-message i {
    color: #667eea;
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.login-message h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.login-message p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* Profile Share Button */
.profile-share-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
}

.profile-share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* QR Code Styles */
.qr-code-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.qr-section h3 {
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.qr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: start;
}

.qr-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qr-info p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.qr-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
}

/* Floating shapes for visual interest */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation: float 8s infinite ease-in-out;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation: float 10s infinite ease-in-out;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation: float 7s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .profile {
        padding: 20px;
    }
    
    .profile h1 {
        font-size: 1.7rem;
    }
    
    .link-item {
        padding: 18px 20px;
    }
    
    .admin-buttons {
        flex-direction: column;
    }
    
    .admin-buttons button {
        min-width: auto;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .auth-form {
        padding: 30px;
    }
    
    .analytics-controls {
        flex-direction: column;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .social-media-panel {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-height: none;
        margin-bottom: 30px;
        order: -1;
    }
    
    .social-buttons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .features-section h2, .demo-section h2 {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .feature-card i {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .qr-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .qr-code-container img {
        width: 120px !important;
        height: 120px !important;
    }
}

@media (max-width: 480px) {
    .profile-image img {
        width: 100px;
        height: 100px;
    }
    
    .profile h1 {
        font-size: 1.5rem;
    }
    
    .link-item {
        padding: 15px 18px;
    }
    
    .link-item span {
        font-size: 1rem;
    }
    
    .nav-container {
        padding: 10px 15px;
    }
    
    .nav-links {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .social-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-button {
        padding: 12px 8px;
    }
    
    .social-button i {
        font-size: 1.3rem;
    }
    
    .social-button span {
        font-size: 0.8rem;
    }
}
 /* Additional styles for delete functionality */
        .link-wrapper {
            position: relative;
            margin-bottom: 15px;
        }
        
        .delete-link {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(220, 53, 69, 0.9);
            color: white;
            border: none;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 10;
        }
        
        .link-wrapper:hover .delete-link {
            opacity: 1;
        }
        
        .delete-link:hover {
            background: #dc3545;
            transform: scale(1.1);
        }
        
        /* Confirmation modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }
        
        .modal-content {
            background: white;
            border-radius: 15px;
            padding: 30px;
            max-width: 400px;
            width: 90%;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }
        
        .modal-content h3 {
            margin-bottom: 20px;
            color: #333;
        }
        
        .modal-content p {
            margin-bottom: 25px;
            color: #666;
        }
        
        .modal-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
        }
        
        .modal-buttons button {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
        }
        
        .btn-confirm {
            background: #dc3545;
            color: white;
        }
        
        .btn-cancel {
            background: #6c757d;
            color: white;
        }

        .link-item-container {
    position: relative;
    margin-bottom: 10px;
    transition: opacity 0.3s ease;
}
   /* Additional styles for link actions */
        .link-item-container {
            position: relative;
            margin-bottom: 10px;
        }
        .link-actions {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            display: none;
        }
        .link-item-container:hover .link-actions {
            display: flex;
        }
        .btn-edit, .btn-delete {
            background: none;
            border: none;
            cursor: pointer;
            margin-left: 5px;
            padding: 5px;
            border-radius: 4px;
        }
        .btn-edit {
            color: #007bff;
        }
        .btn-delete {
            color: #dc3545;
        }
        .btn-edit:hover, .btn-delete:hover {
            background-color: rgba(0,0,0,0.1);
        }
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.4);
        }
        .modal-content {
            background-color: #fefefe;
            margin: 15% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 50%;
            border-radius: 5px;
        }
        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }
        .close:hover {
            color: black;
        }
        /* Profile background styles */
        .profile-header {
            position: relative;
            height: 300px;
            background-image: url('<?= htmlspecialchars($background_image) ?>');
            background-size: cover;
            background-position: center;
            border-radius: 10px;
            margin-bottom: 20px;
            overflow: hidden;
        }
        .profile-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
        }
        .profile-content {
            position: relative;
            z-index: 2;
            padding: 20px;
            text-align: center;
            color: white;
        }
        .profile-image {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            border: 4px solid white;
            margin: 0 auto 15px;
            overflow: hidden;
            background-color: white;
        }
        .profile-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .profile-content h1 {
            margin: 0;
            font-size: 28px;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
        }
        .profile-content p {
            margin: 10px 0 0;
            font-size: 16px;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        }
        /* Admin panel styles */
        .admin-panel .form-group {
            margin-bottom: 15px;
        }
        .admin-panel label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        .admin-panel input[type="text"],
        .admin-panel textarea {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
        .admin-panel input[type="file"] {
            margin-bottom: 10px;
        }
        .admin-buttons {
            margin-top: 20px;
        }
        .admin-buttons button {
            padding: 10px 15px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
        }
        .btn-primary {
            background-color: #007bff;
            color: white;
        }
        .btn-danger {
            background-color: #dc3545;
            color: white;
            margin-left: 10px;
        }
        .image-preview {
            margin-top: 10px;
            max-width: 200px;
            border-radius: 5px;
        }
        .image-actions {
            display: flex;
            align-items: center;
            margin-top: 10px;
        }
        .btn-delete-bg {
            background-color: #dc3545;
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 4px;
            cursor: pointer;
            margin-left: 10px;
        }
        .custom-url-preview {
            margin-top: 5px;
            font-size: 14px;
            color: #666;
        }
        .custom-url-container {
            display: flex;
            align-items: center;
        }
        .url-prefix {
            background-color: #f8f9fa;
            border: 1px solid #ced4da;
            border-right: none;
            padding: 8px;
            border-radius: 4px 0 0 4px;
            color: #495057;
        }
        .custom-url-input {
            border-radius: 0 4px 4px 0;
        }
        .error-message {
            color: #dc3545;
            background-color: #f8d7da;
            border: 1px solid #f5c6cb;
            padding: 10px;
            border-radius: 4px;
            margin-bottom: 15px;
        }
        .custom-url-input.error {
            border-color: #dc3545;
            background-color: #f8d7da;
        }
        /* Analytics styles */
        .analytics-section {
            background: white;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .analytics-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        .analytics-title {
            font-size: 20px;
            font-weight: bold;
            color: #333;
        }
        .analytics-tabs {
            display: flex;
            border-bottom: 1px solid #eee;
            margin-bottom: 20px;
        }
        .analytics-tab {
            padding: 10px 20px;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            font-weight: 500;
            color: #666;
            transition: all 0.3s ease;
        }
        .analytics-tab.active {
            color: #007bff;
            border-bottom-color: #007bff;
        }
        .analytics-tab:hover {
            color: #007bff;
        }
        .analytics-content {
            display: none;
        }
        .analytics-content.active {
            display: block;
        }
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }
        .stat-card {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 15px;
            text-align: center;
            border-left: 4px solid #007bff;
        }
        .stat-value {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 5px;
            color: #333;
        }
        .stat-label {
            color: #666;
            font-size: 14px;
        }
        .chart-container {
            height: 250px;
            margin-bottom: 20px;
        }
        .table-container {
            overflow-x: auto;
        }
        .stats-table {
            width: 100%;
            border-collapse: collapse;
        }
        .stats-table th, .stats-table td {
            padding: 10px;
            text-align: left;
            border-bottom: 1px solid #eee;
        }
        .stats-table th {
            background-color: #f8f9fa;
            font-weight: 600;
        }
        .stats-table tr:hover {
            background-color: #f8f9fa;
        }
        .no-data {
            text-align: center;
            padding: 20px;
            color: #666;
        }
        /* Toggle buttons styles */
        .toggle-buttons {
            position: fixed;
            bottom: 20px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 100;
        }
        .toggle-button {
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 50px;
            padding: 12px 20px;
            cursor: pointer;
            font-weight: 500;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .toggle-button:hover {
            background-color: #0069d9;
            transform: translateY(-2px);
            box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
        }
        .toggle-button.analytics {
            background-color: #28a745;
        }
        .toggle-button.analytics:hover {
            background-color: #218838;
        }
        .analytics-panel {
            display: none;
            background: white;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .analytics-panel.active {
            display: block;
        }
        .admin-toggle {
            position: static;
            margin-top: 20px;
            text-align: center;
        }
        .admin-toggle button {
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 50px;
            padding: 12px 20px;
            cursor: pointer;
            font-weight: 500;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .admin-toggle button:hover {
            background-color: #0069d9;
            transform: translateY(-2px);
            box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
        }

    
    :root {
        --theme-color: <?= htmlspecialchars($user['theme_color'] ?? '#007bff') ?>;
    }

        :root {
            --theme-color: <?= htmlspecialchars($user['theme_color'] ?? '#007bff') ?>;
        }
        
        /* Profile image edit button styles */
        .profile-image {
            position: relative;
            display: inline-block;
            border-radius: 50%;
            overflow: hidden;
        }
        
        .edit-profile-btn {
            position: absolute;
            bottom: 10px;
            right: 10px;
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.3s ease, transform 0.2s ease;
            z-index: 2;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
        
        .profile-image:hover .edit-profile-btn {
            opacity: 0;
        }
        
        /* .edit-profile-btn:hover {
            transform: scale(1.1);
            background-color: rgba(0, 0, 0, 0.9);
        } */
        
        .edit-profile-btn i {
            font-size: 18px;
        }
        
        /* Modal styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            overflow: auto;
        }
        
        .modal-content {
            background-color: #fff;
            margin: 5% auto;
            padding: 20px;
            border-radius: 8px;
            width: 90%;
            max-width: 800px;
            position: relative;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        
        .close {
            position: absolute;
            right: 20px;
            top: 15px;
            font-size: 24px;
            font-weight: bold;
            color: #777;
            cursor: pointer;
            z-index: 1001;
        }
        
        .close:hover {
            color: #000;
        }
        
        /* Analytics modal specific styles */
        .analytics-modal .modal-content {
            max-width: 1000px;
        }
        
        .analytics-modal .analytics-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .analytics-modal .analytics-title {
            margin: 0;
        }
        
        .analytics-modal .analytics-tabs {
            display: flex;
            border-bottom: 1px solid #ddd;
            margin-bottom: 20px;
        }
        
        .analytics-modal .analytics-tab {
            padding: 10px 15px;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: all 0.3s ease;
        }
        
        .analytics-modal .analytics-tab.active {
            border-bottom-color: var(--theme-color);
            color: var(--theme-color);
            font-weight: bold;
        }
        
        .analytics-modal .analytics-content {
            display: none;
        }
        
        .analytics-modal .analytics-content.active {
            display: block;
        }
        
        .analytics-modal .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .analytics-modal .stat-card {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .analytics-modal .stat-value {
            font-size: 32px;
            font-weight: bold;
            color: var(--theme-color);
            margin-bottom: 5px;
        }
        
        .analytics-modal .stat-label {
            color: #666;
            font-size: 14px;
        }
        
        .analytics-modal .chart-container {
            height: 300px;
            margin-bottom: 30px;
        }
        
        .analytics-modal .table-container {
            overflow-x: auto;
        }
        
        .analytics-modal .stats-table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .analytics-modal .stats-table th,
        .analytics-modal .stats-table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }
        
        .analytics-modal .stats-table th {
            background-color: #f8f9fa;
            font-weight: 600;
        }
        
        .analytics-modal .no-data {
            text-align: center;
            padding: 30px;
            color: #666;
        }
        
        /* Edit profile modal specific styles */
        .edit-profile-modal .modal-content {
            max-width: 600px;
        }
        
        .edit-profile-modal h3 {
            margin-top: 0;
            margin-bottom: 20px;
            color: #333;
        }
        
        .edit-profile-modal .form-group {
            margin-bottom: 20px;
        }
        
        .edit-profile-modal label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #555;
        }
        
        .edit-profile-modal input[type="text"],
        .edit-profile-modal textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
        }
        
        .edit-profile-modal textarea {
            min-height: 100px;
            resize: vertical;
        }
        
        .edit-profile-modal .custom-url-container {
            display: flex;
            align-items: center;
            border: 1px solid #ddd;
            border-radius: 4px;
            overflow: hidden;
        }
        
        .edit-profile-modal .url-prefix {
            background-color: #f8f9fa;
            padding: 10px;
            border-right: 1px solid #ddd;
            color: #666;
        }
        
        .edit-profile-modal .custom-url-input {
            border: none;
            flex: 1;
        }
        
        .edit-profile-modal .custom-url-preview {
            margin-top: 8px;
            font-size: 14px;
            color: #666;
        }
        
        .edit-profile-modal .image-actions {
            display: flex;
            align-items: center;
            margin-top: 10px;
        }
        
        .edit-profile-modal .image-preview {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 4px;
            margin-right: 15px;
        }
        
        .edit-profile-modal .btn-delete-bg {
            background-color: #dc3545;
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 4px;
            cursor: pointer;
        }
        
        .edit-profile-modal .admin-buttons {
            display: flex;
            justify-content: flex-end;
            margin-top: 20px;
        }
        
        .edit-profile-modal .btn-primary {
            background-color: var(--theme-color);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
        }
        
        .edit-profile-modal .error-message {
            background-color: #f8d7da;
            color: #721c24;
            padding: 10px 15px;
            border-radius: 4px;
            margin-bottom: 20px;
        }
   .success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
}
.hero-buttons {
    margin-top: 20px;
}

.hero-buttons .btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}