:root {
    --instagram-purple: #833AB4;
    --instagram-pink: #C13584;
    --instagram-orange: #F77737;
    --instagram-yellow: #FCAF45;
    --instagram-gradient: linear-gradient(45deg, var(--instagram-purple), var(--instagram-pink), var(--instagram-orange), var(--instagram-yellow));
    --instagram-gradient-reverse: linear-gradient(45deg, var(--instagram-yellow), var(--instagram-orange), var(--instagram-pink), var(--instagram-purple));
    --instagram-gradient-simple: linear-gradient(45deg, var(--instagram-purple), var(--instagram-pink));
}

body {
    background-color: #FFFFFF;
}

.navbar {
    padding: 10px 0;
}

.btn-nav {
    color: white;
    background: var(--instagram-gradient-simple);
    border: 1px solid white;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.btn-nav .bi {
    margin-right: 4px;
}

.btn-nav:hover, .btn-nav.active {
    background: white;
    color: var(--instagram-pink);
}

@media (max-width: 768px) {
    .btn-nav {
        padding: 8px 3px;
        font-size: 12px;
        margin: 0 0px;
    }
}

@media (max-width: 480px) {
    .navbar .btn-group {
        flex-wrap: nowrap;
        gap: 2px;
        justify-content: center;
        width: 100%;
    }

    .btn-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0px;
        padding: 3px 1px;
        margin: 0;
        font-size: 11px;
        border-radius: 6px !important;
        flex: 1 1 0;
        min-width: 0;
    }

    .btn-nav .bi {
        font-size: 12px;
        margin-right: 0;
        line-height: 1;
    }

    .btn-nav span {
        white-space: normal;
        word-break: keep-all;
        text-align: center;
        line-height: 1.2;
    }

    h1 {
        font-size: clamp(1.2rem, 4.5vw, 2rem);
    }

    h1 + p {
        font-size: clamp(0.75rem, 2.5vw, 1rem);
    }
}

.text-instagram {
    background: var(--instagram-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn-instagram {
    background: var(--instagram-gradient);
    border: none;
    color: white;
}

.btn-instagram:hover {
    background: var(--instagram-gradient-reverse);
    color: white;
}

.btn-instagram-light {
    background: linear-gradient(45deg, rgba(131, 58, 180, 0.2), rgba(193, 53, 132, 0.2));
    border: 1px solid rgba(131, 58, 180, 0.3);
    color: #833AB4;
}

.btn-instagram-light:hover {
    background: linear-gradient(45deg, rgba(131, 58, 180, 0.35), rgba(193, 53, 132, 0.35));
    color: #6a2d91;
}

.progress {
    width: 100%;
    margin-bottom: 0;
}

.progress-bar {
    width: 0%;
    transition: width 0.3s ease;
    background: var(--instagram-gradient);
}

/* Responsive input container */
@media (max-width: 768px) {
    .input-container {
        gap: 4px;
        padding: 5px;
    }

    .input-container input {
        padding: 8px 4px 8px 10px !important;
        font-size: 14px;
        min-width: 0;
    }

    .input-container .btn-action {
        padding: 6px 8px !important;
        font-size: 11px !important;
    }

    .input-container .btn-main {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .input-container {
        gap: 3px;
        padding: 4px;
    }

    .input-container input {
        padding: 6px 2px 6px 8px !important;
        font-size: 13px;
        min-width: 0;
    }

    .input-container .btn-action {
        padding: 5px 6px !important;
        font-size: 10px !important;
    }

    .input-container .btn-main {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
}

/* Captcha Modal Styles */
.captcha-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15vh;
}

.captcha-modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.captcha-modal-header h5 {
    color: #000000;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.captcha-modal-header p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.captcha-modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 480px) {
    .captcha-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* Profile/Highlight Card Styles */
.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid;
    border-image: var(--instagram-gradient) 1;
}

.highlight-cover {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid;
    border-image: var(--instagram-gradient) 1;
}

.profile-card {
    max-width: 500px;
    margin: 0 auto;
}

/* Highlight Item Card Styles */
.highlight-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    height: 100%;
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.highlight-thumbnail {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    background-color: #f0f0f0;
}

.highlight-thumbnail-skeleton {
    position: relative;
    overflow: hidden;
}

.highlight-thumbnail-skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

.highlight-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.highlight-duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.highlight-time {
    font-size: 12px;
    color: #8e8e8e;
}

.verified-badge {
    color: #3897f0;
    font-size: 14px;
}

.no-items-message {
    padding: 40px 20px;
    text-align: center;
    color: #8e8e8e;
}

/* Highlight List Card Styles (Step 1) */
.highlight-list-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    padding-bottom: 8px;
}

.highlight-list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(131, 58, 180, 0.25);
}

.highlight-list-thumbnail {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    background-color: #f0f0f0;
    display: block;
}

.highlight-list-title {
    font-size: 13px;
    font-weight: 500;
    margin: 8px 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #262626;
}

/* Cover Photo Download Button */
.btn-cover-download {
    display: block;
    margin-top: 6px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    color: var(--instagram-purple);
    background: transparent;
    border: 1.5px solid var(--instagram-purple);
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-cover-download:hover {
    background: var(--instagram-gradient-simple);
    color: white;
    border-color: transparent;
}

@media (max-width: 575.98px) {
    .btn-cover-download {
        font-size: 9px;
        padding: 3px 6px;
        margin-top: 4px;
    }
}

/* Media Loading Spinner */
.highlight-media-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

/* Back Button */
.btn-back {
    background: #f0f0f0;
    border: 1px solid #dbdbdb;
    color: #262626;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.btn-back:hover {
    background: #e0e0e0;
    color: #262626;
}

@media (max-width: 575.98px) {
    .highlight-list-title {
        font-size: 11px;
        margin: 6px 4px 0;
    }

    .highlight-list-card {
        border-radius: 8px;
        padding-bottom: 6px;
    }
}

@media (max-width: 575.98px) {
    .highlight-card .card-body {
        padding: 12px !important;
    }

    .highlight-card .btn-sm {
        padding: 8px 12px;
        font-size: 13px;
    }

    .highlight-thumbnail {
        aspect-ratio: 9/14;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .highlight-thumbnail {
        aspect-ratio: 9/15;
    }
}

/* Show More / Show All Buttons */
.show-more-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-show-more {
    background: var(--instagram-gradient-simple);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-show-more:hover {
    background: var(--instagram-gradient-reverse);
    color: white;
    transform: translateY(-2px);
}

.btn-show-all {
    background: transparent;
    color: var(--instagram-purple);
    border: 2px solid var(--instagram-purple);
    border-radius: 20px;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-show-all:hover {
    background: var(--instagram-gradient-simple);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Instagram-style Toast Notification */
.ig-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: #262626;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 90vw;
    text-align: center;
}

.ig-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.ig-toast-hide {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

/* Input container styles */
.input-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.input-container input {
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 16px;
    flex: 1;
    outline: none;
    box-shadow: none;
}

.input-container .btn-action {
    background: var(--instagram-gradient-simple);
    border: 1px solid #000000;
    color: white;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
    white-space: nowrap;
}

.input-container .btn-main {
    background: var(--instagram-gradient-simple);
    color: white;
    border: 1px solid #000000;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}
