/* ===================================
   GLOBAL VARIABLES & RESET
   =================================== */
:root {
    /* Colors */
    --primary-orange: #f87b27;
    --primary-orange-rgb: 248, 123, 39;
    --primary-orange-light: #ff9f5a;
    --primary-orange-dark: #e66a1d;
    --gray-dark: #828282;
    --gray-light: #CACACA;
    --gray-lighter: #f0f0f0;
    --white: #ffffff;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(248, 123, 39, 0.1);
    --shadow-md: 0 4px 16px rgba(248, 123, 39, 0.15);
    --shadow-lg: 0 8px 32px rgba(248, 123, 39, 0.2);
    --shadow-glow: 0 0 20px rgba(248, 123, 39, 0.3);
}

/* AlpineJS x-cloak - hides elements until Alpine is loaded */
[x-cloak] {
    display: none !important;
}

* {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ===================================
   BODY STYLES
   =================================== */
body {
    color: #333;
    min-height: 100vh;
}

/* Homepage specific body */
body.homepage {
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

/* Manage page specific body */
body.manage {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #fff5f0 100%);
    padding-bottom: 4rem;
}

/* ===================================
   NAVBAR STYLES
   =================================== */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.navbar.manage-nav {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 20px rgba(248, 123, 39, 0.1);
    padding: 1.5rem 0;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #333;
    transition: color 0.3s ease;
}

.navbar-brand.manage-brand {
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(248, 123, 39, 0.1);
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    color: var(--primary-orange);
}

.navbar-brand.manage-brand:hover {
    transform: scale(1.02);
}

.navbar-text {
    font-weight: 500;
    color: var(--gray-dark) !important;
    letter-spacing: 0.5px;
}

/* ===================================
   LANGUAGE SELECTOR (Homepage)
   =================================== */
.lang-selector {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-light);
    background: #fff;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray-dark);
}

.lang-btn:hover {
    background-color: #f8f9fa;
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.lang-btn.active {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: #fff;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    background-color: #fff;
    padding: 5rem 0 4rem 0;
}

.hero-section.manage-hero {
    padding: 3rem 0 2rem 0;
    text-align: center;
}

.hero-title {
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: #333;
}

.hero-title.manage-title {
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #333 0%, var(--primary-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-dark);
    margin-bottom: 0;
    line-height: 1.6;
    font-weight: 400;
}

/* ===================================
   STATS SECTION
   =================================== */
.stats-section {
    background-color: #f8f9fa;
    padding: 3rem 0;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-orange);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* ===================================
   STATS CARDS (Manage Page - Super Cool)
   =================================== */
.stats-container {
    margin-bottom: 3rem;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--gray-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-orange);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(248, 123, 39, 0.1) 0%, rgba(248, 123, 39, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.4s ease;
}

.stat-card:hover .stat-icon {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    transform: rotate(10deg) scale(1.1);
    box-shadow: var(--shadow-glow);
}

.stat-icon i {
    font-size: 1.75rem;
    color: var(--primary-orange);
    transition: color 0.4s ease;
}

.stat-card:hover .stat-icon i {
    color: #fff;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    transition: all 0.4s ease;
}

.stat-card:hover .stat-number {
    color: var(--primary-orange);
    transform: scale(1.1);
}

/* ===================================
   SECTION TITLES
   =================================== */
.section-title {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.section-subtitle {
    color: var(--gray-dark);
    font-size: 1rem;
    margin-bottom: 3rem;
}

/* ===================================
   LINKS SECTION (Homepage)
   =================================== */
.links-section {
    padding: 5rem 0;
}

/* ===================================
   LINK CARDS (Homepage)
   =================================== */
.link-card {
    background: #fff;
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-orange);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-orange);
}

.link-card:hover::before {
    transform: scaleY(1);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff9f5a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-icon i {
    color: #fff;
    font-size: 1.5rem;
}

.link-title {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.link-url {
    color: var(--primary-orange);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    word-break: break-all;
}

.link-destination {
    color: var(--gray-dark);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-destination span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--gray-light);
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
}

.link-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.link-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-action {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* ===================================
   LINK CARDS (Manage Page - Super Cool)
   =================================== */
.links-container {
    display: grid;
    gap: 1.5rem;
}

.manage-page .link-card {
    background: #ffffff;
    border: 1px solid var(--gray-light);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.manage-page .link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.manage-page .link-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-orange);
}

.manage-page .link-card:hover::before {
    transform: scaleY(1);
}

.manage-page .link-card.table-danger {
    background: #fff5f5;
    border-color: #fecaca;
}

.manage-page .link-card.table-danger::before {
    background: linear-gradient(180deg, #ef4444 0%, #f87171 100%);
}

.manage-page .link-card.table-warning {
    background: #fffbf0;
    border-color: #fde68a;
}

.manage-page .link-card.table-warning::before {
    background: linear-gradient(180deg, #f59e0b 0%, #fbbf24 100%);
}

.link-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.link-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(248, 123, 39, 0.1) 0%, rgba(248, 123, 39, 0.05) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.manage-page .link-card:hover .link-card-icon {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    transform: rotate(-5deg) scale(1.1);
    box-shadow: var(--shadow-glow);
}

.link-card-icon i {
    font-size: 1.5rem;
    color: var(--primary-orange);
    transition: color 0.4s ease;
}

.manage-page .link-card:hover .link-card-icon i {
    color: #fff;
}

.link-card-content {
    flex: 1;
}

.link-slug {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.link-suffix {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.manage-page .link-url {
    color: var(--primary-orange);
    font-weight: 500;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    word-break: break-all;
}

.manage-page .link-url a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: all 0.3s ease;
}

.manage-page .link-url a:hover {
    text-decoration: underline;
    color: var(--primary-orange-dark);
}

.link-description {
    color: #333;
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.manage-page .link-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray-dark);
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
}

.manage-page .link-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.manage-page .link-meta-item i {
    color: var(--primary-orange);
}

/* ===================================
   BADGES (Manage Page - Super Cool)
   =================================== */
.link-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.badge-custom {
    padding: 0.375rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: var(--shadow-sm);
}

.badge-active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-disabled {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-private {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ===================================
   ACTION BUTTONS (Manage Page)
   =================================== */
.manage-page .link-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.manage-page .btn-action {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-edit {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    border: none;
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-orange-dark) 0%, var(--primary-orange) 100%);
}

.btn-delete {
    background: #fff;
    border: 2px solid #fecaca;
    color: #dc2626;
}

.btn-delete:hover {
    background: #fef2f2;
    border-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

/* ===================================
   ADD BUTTON (Manage Page - Super Cool)
   =================================== */
.btn-add-link {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-add-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-orange-dark) 0%, var(--primary-orange) 100%);
}

.btn-add-link:active {
    transform: translateY(0);
}

/* ===================================
   SECTION HEADER (Manage Page)
   =================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.manage-page .section-title {
    font-weight: 700;
    font-size: 2rem;
    color: #333;
    margin: 0;
}

/* ===================================
   STACK SECTION (Homepage)
   =================================== */
.stack-section {
    background-color: #f8f9fa;
    padding: 5rem 0;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}

.stack-card {
    background: #fff;
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stack-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-orange);
    text-decoration: none;
    color: inherit;
}

.stack-icon {
    width: 64px;
    height: 64px;
    background: rgba(248, 123, 39, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.stack-icon i {
    font-size: 1.75rem;
    color: var(--primary-orange);
}

.stack-title {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.stack-description {
    color: var(--gray-dark);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.stack-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.stack-link:hover {
    color: #e66a1d;
    text-decoration: underline;
}

/* ===================================
   FOOTER (Homepage)
   =================================== */
.footer {
    background-color: #fff;
    color: #333;
    padding: 3rem 0 1rem 0;
    border-top: 1px solid var(--gray-light);
    margin-top: auto;
}

.footer.manage-footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--gray-light);
    margin-top: 4rem;
    color: var(--gray-dark);
}

.footer-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

.footer-link {
    color: var(--gray-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--primary-orange);
    text-decoration: underline;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--gray-light);
    border-radius: 50%;
    color: var(--gray-dark);
    transition: all 0.3s ease;
    font-size: 1.25rem;
    text-decoration: none;
}

.footer-social-link:hover {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: #fff;
    text-decoration: none;
}

.footer-copyright {
    color: var(--gray-dark);
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
    margin-top: 2rem;
}

.footer-admin-link {
    color: var(--gray-dark);
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-admin-link:hover {
    color: var(--primary-orange);
    text-decoration: underline;
}

.footer.manage-footer a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer.manage-footer a:hover {
    color: var(--primary-orange-dark);
    text-decoration: underline;
}

/* ===================================
   MAIN CONTENT (Manage Page)
   =================================== */
.main-content {
    margin-bottom: 3rem;
}

/* ===================================
   MODALS (Homepage & Manage Page)
   =================================== */
.modal-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1050;
    animation: fadeIn 0.2s ease-out;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.manage-page .modal-backdrop {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

.modal-dialog-centered {
    margin: 0;
    width: 100%;
    max-width: 540px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-light);
    animation: scaleIn 0.3s ease-out;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--gray-light);
    position: relative;
}

.manage-page .modal-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
}

.modal-title {
    font-weight: 700;
    font-size: 1.5rem;
    color: #333;
}

.btn-close {
    background: var(--gray-light);
    border: none;
    opacity: 1;
}

.manage-page .btn-close {
    background: linear-gradient(135deg, var(--gray-light) 0%, #e0e0e0 100%);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.manage-page .btn-close:hover {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* ===================================
   FORM CONTROLS (Manage Page)
   =================================== */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(248, 123, 39, 0.1);
}

.form-control:disabled {
    background-color: var(--gray-lighter);
}

.form-text {
    color: var(--gray-dark);
    font-size: 0.875rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--gray-light);
    border-radius: 6px;
    transition: all 0.3s ease;
}

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

.form-check-label {
    font-weight: 500;
    color: #333;
}

/* ===================================
   MODAL BUTTONS (Manage Page)
   =================================== */
.btn-modal-cancel {
    background: #fff;
    border: 2px solid var(--gray-light);
    color: #333;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-modal-cancel:hover {
    background: var(--gray-lighter);
    border-color: var(--gray-dark);
}

.btn-modal-primary {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    border: none;
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.btn-modal-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-orange-dark) 0%, var(--primary-orange) 100%);
}

.btn-modal-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border: none;
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
}

.btn-modal-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
}

/* ===================================
   QR MODAL (Homepage)
   =================================== */
.qr-container {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.qr-url {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-dark);
    word-break: break-all;
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* ===================================
   QR ICON PROMINENT (Manage Page)
   =================================== */
.qr-icon-prominent {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    color: #fff;
    font-size: 1.5rem;
}

.qr-icon-prominent:hover {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: var(--shadow-glow);
    background: linear-gradient(135deg, var(--primary-orange-dark) 0%, var(--primary-orange) 100%);
}

.qr-icon-prominent:active {
    transform: scale(1.05);
}

/* ===================================
   QR MODAL HUGE (Manage Page)
   =================================== */
.qr-modal-huge {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: scaleIn 0.3s ease-out;
}

.qr-backdrop-huge {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(20px);
}

.qr-modal-content-huge {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 4px solid var(--gray-light);
    padding: 2.5rem;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.qr-container-huge {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    max-height: 600px;
}

.qr-container-huge canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.qr-url-huge {
    margin-top: 1.5rem;
    color: #333;
    font-weight: 500;
    font-size: 1.125rem;
    word-break: break-all;
    text-align: center;
}

.qr-close-btn-huge {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    border: 4px solid #ffffff;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.qr-close-btn-huge:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* ===================================
   LOADING STATE
   =================================== */
.loading-spinner {
    text-align: center;
    padding: 3rem 4rem 3rem 2rem;
}

.spinner-border {
    width: 3rem 4rem;
    height: 3rem 4rem;
    color: var(--primary-orange);
}

/* ===================================
   EMPTY STATE (Homepage)
   =================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-dark);
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-light);
    margin-bottom: 1.5rem;
}

/* ===================================
   EMPTY STATE (Manage Page - Super Cool)
   =================================== */
.manage-page .empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 2px dashed var(--gray-light);
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(248, 123, 39, 0.1) 0%, rgba(248, 123, 39, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: pulse 2s infinite;
}

.empty-state-icon i {
    font-size: 3rem;
    color: var(--primary-orange);
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
}

.empty-state-description {
    color: var(--gray-dark);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* ===================================
   ERROR ALERT (Manage Page)
   =================================== */
.alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fecaca;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}

/* ===================================
   TOAST (Manage Page)
   =================================== */
.toast-container {
    z-index: 9999;
}

.toast {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: none;
}

.toast.text-bg-success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
    color: #16a34a !important;
    border: 1px solid #86efac;
}

.toast.text-bg-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
    color: #dc2626 !important;
    border: 1px solid #fca5a5;
}

/* ===================================
   BACK TO HOME LINK (Manage Page)
   =================================== */
.back-home-link {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.back-home-link:hover {
    color: var(--primary-orange);
    background: rgba(248, 123, 39, 0.05);
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes scaleOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Staggered Animation for Link Cards */
.manage-page .link-card:nth-child(1) { animation-delay: 0.1s; }
.manage-page .link-card:nth-child(2) { animation-delay: 0.2s; }
.manage-page .link-card:nth-child(3) { animation-delay: 0.3s; }
.manage-page .link-card:nth-child(4) { animation-delay: 0.4s; }
.manage-page .link-card:nth-child(5) { animation-delay: 0.5s; }
.manage-page .link-card:nth-child(6) { animation-delay: 0.6s; }
.manage-page .link-card:nth-child(n+7) { animation-delay: 0.7s; }

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */
@media (max-width: 991.98px) {
    .hero-title,
    .manage-hero .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .manage-page .section-title {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
    }

    .manage-hero {
        padding: 2rem 0 1.5rem 0;
    }

    .hero-title,
    .manage-hero .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .links-section,
    .stack-section {
        padding: 3rem 0;
    }

    .link-actions {
        flex-wrap: wrap;
    }

    .btn-action {
        flex: 1;
        text-align: center;
    }

    /* Manage Page specific */
    .stats-container {
        margin-bottom: 2rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-icon {
        width: 56px;
        height: 56px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .manage-page .link-card {
        padding: 1.5rem;
    }

    .link-card-header {
        flex-direction: column;
        gap: 1rem;
    }

    .link-card-icon {
        width: 48px;
        height: 48px;
    }

    .link-card-icon i {
        font-size: 1.25rem;
    }

    .manage-page .link-actions {
        width: 100%;
    }

    .manage-page .btn-action {
        flex: 1;
        justify-content: center;
    }

    .modal-dialog {
        max-width: 100%;
    }

    .modal-content {
        border-radius: 16px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.25rem;
    }
}
