/* PNG Drive - Main Stylesheet */

:root {
    --primary-color: #3895ff;
    --secondary-color: #333;
    --text-color: #333;
    --bg-color: #fff;
    --border-color: #e0e0e0;
    --gray-light: #f5f5f5;
    --gray-medium: #999;
}

/* Accessibility: hide from view, keep for screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo a {
    display: inline-block;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-color);
}

.nav .header-crown-icon {
    display: block;
    object-fit: contain;
    vertical-align: middle;
}

.btn-signup {
    background: #3895ff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
}

/* Login button in header (blue box, white text) for guests */
.nav-btn-login {
    background: #3895ff;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600;
}

.nav-btn-login:hover {
    background: #2d7ae6;
    color: #fff !important;
    opacity: 1;
}

/* Search Section */
.search-section {
    margin-top: 20px;
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 800px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.search-btn {
    background: #3895ff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #2d7ae6;
    opacity: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #3895ff 0%, #2d7ae6 100%);
    padding: 90px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* 5-petal flower: 1 center + 5 petals = 6 circles total */
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.12) 8px, transparent 8px),
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 8px, transparent 8px),
        radial-gradient(circle at 79% 30%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 8px, transparent 8px),
        radial-gradient(circle at 79% 70%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 8px, transparent 8px),
        radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 8px, transparent 8px),
        radial-gradient(circle at 21% 70%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 8px, transparent 8px);
    background-size: 80px 80px;
    background-position: 0 0;
    background-repeat: repeat;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

.hero-section > .container {
    position: relative;
    z-index: 2;
}

.hero-flower-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    z-index: 2;
    background-repeat: repeat-x;
    background-size: auto 80px;
    background-position: bottom center;
    opacity: 1;
    image-rendering: crisp-edges;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 45px;
    font-weight: 400;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 35px;
}

.tags-label {
    font-weight: 600;
    margin-right: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: default;
}

.tags-label:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tag-link {
    background: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-color);
    border: 2px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tag-link:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Latest Images Section */
.latest-images-section {
    padding: 60px 0 60px;
}

.latest-images-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: left;
    color: var(--secondary-color);
    letter-spacing: 0;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
}

.load-more-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(56, 149, 255, 0.3);
}

.load-more-btn:hover {
    background: #2d7ae6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 149, 255, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn:disabled {
    background: var(--gray-medium);
    color: #fff;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

/* Images Grid – simple stacked (no card) */
.page-title {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--secondary-color);
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    padding: 40px 0;
}

.list-item.img-list {
    background: transparent;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.img-list-pd {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.list-item.img-list:hover .img-list-pd {
    box-shadow: 6px 6px 0 0 var(--primary-color);
}

/* Square image area – solid only; checkerboard is in uploaded image */
.img-show {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background-color: #f0f0f0;
    overflow: hidden;
    min-width: 0;
}

/* Dark overlay on card hover */
.img-show::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.2s;
    pointer-events: none;
}

.list-item.img-list:hover .img-show::before {
    opacity: 1;
}

/* Download button – top-right, visible on card hover; links to detail page */
.img-card-download {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 8px 14px;
    background: #333;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.list-item.img-list:hover .img-card-download {
    opacity: 1;
    visibility: visible;
}

.img-card-download:hover {
    background: #222;
    color: #fff;
}

.img-part {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
}

.img-part .img-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    max-width: 100%;
    max-height: 100%;
}

/* Detail – title and metadata (card bottom: dimensions, views, downloads) */
.img-detail {
    padding: 10px 12px 12px;
}

.img-detail-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.img-title-link {
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.img-title-link:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

/* Views/downloads/dimensions: darker text for sufficient contrast (WCAG AA) */
.pic-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid #e5e5e5;
}

.pic-info .info-dimensions,
.pic-info .info-views,
.pic-info .info-downloads {
    margin: 0;
    color: inherit;
}

.pic-info-icon,
.pic-info-icons i {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
    font-size: 14px;
    line-height: 16px;
    color: #333;
}

.pic-info-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Image Detail Page */
.image-detail-page {
    padding: 40px 0;
}

.detail-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.image-detail-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
    background: linear-gradient(135deg, #333 0%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}


.image-detail-content {
    display: grid;
    grid-template-columns: 2fr 500px;
    gap: 40px;
    margin-bottom: 40px;
}

.image-display {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.image-container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    text-align: center;
    margin-bottom: 30px;
}

.main-image-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-image-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.main-image {
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.image-description-section {
    margin-top: 30px;
    padding: 32px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    line-height: 1.8;
    color: #333;
    max-width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.image-description-section a {
    color: #0066cc;
}

.image-description-section a:hover {
    color: #004499;
}

.description-intro {
    font-size: 16px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.description-intro strong {
    font-weight: 700;
    color: #000;
}

.description-text {
    font-size: 15px;
    margin-bottom: 15px;
    color: #444;
}

.description-specs {
    font-size: 15px;
    margin-bottom: 15px;
    color: #444;
}

.description-specs strong {
    font-weight: 600;
    color: #1a1a1a;
}

.description-category {
    font-size: 15px;
    margin-bottom: 15px;
    color: #444;
}

.description-category a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}

.description-category a:hover {
    text-decoration: underline;
    color: #004499;
}

.description-brand {
    font-size: 15px;
    margin-bottom: 12px;
    color: #444;
}

.description-brand strong {
    font-weight: 700;
    color: #1a1a1a;
}

.description-cta {
    font-size: 15px;
    margin-bottom: 15px;
    color: #444;
}

.description-cta a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}

.description-cta a:hover {
    text-decoration: underline;
    color: #004499;
}

.description-links {
    font-size: 15px;
    margin-bottom: 15px;
    color: #444;
}

.description-links a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}

.description-links a:hover {
    text-decoration: underline;
    color: #004499;
}

.description-closing {
    font-size: 15px;
    margin-bottom: 0;
    color: #444;
    font-style: italic;
}

.description-closing strong {
    font-weight: 700;
    color: #1a1a1a;
    font-style: normal;
}

.image-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-meta-box {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.image-sidebar .meta-box-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.image-sidebar .meta-box-title i {
    color: var(--primary-color);
    font-size: 20px;
}

.image-sidebar .meta-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.image-sidebar .meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.image-sidebar .meta-item:hover {
    background: rgba(56, 149, 255, 0.05);
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 8px;
}

.image-sidebar .meta-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3895ff 0%, #2d7ae6 100%);
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.image-sidebar .meta-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.image-sidebar .meta-content strong {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    width: auto;
}

.image-sidebar .meta-content span {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.download-btn {
    background: linear-gradient(135deg, #3895ff 0%, #2d7ae6 100%);
    color: #fff;
    padding: 18px 24px;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(56, 149, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.download-btn::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 ease;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(56, 149, 255, 0.4);
}

.download-btn:hover {
    opacity: 0.9;
}

.download-btn.download-btn-disabled {
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

.download-btn.download-btn-ready {
    background: linear-gradient(135deg, #3895ff 0%, #2d7ae6 100%);
    box-shadow: 0 8px 24px rgba(56, 149, 255, 0.4);
    animation: pulse-ready 2s ease-in-out infinite;
}

@keyframes pulse-ready {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Download Page Header */
.download-header {
    text-align: center;
    margin-bottom: 48px;
    padding-top: 20px;
}

.download-header-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #3895ff 0%, #2d7ae6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(56, 149, 255, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.download-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #333 0%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 400;
}

.download-wait-page .download-wait-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
}

.download-wait-main {
    flex: 1;
}

.download-timer-card {
    background: linear-gradient(135deg, rgba(56, 149, 255, 0.1) 0%, rgba(45, 122, 230, 0.1) 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(56, 149, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-timer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.download-timer-content {
    display: flex;
    align-items: center;
    gap: 28px;
}

.download-timer-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.download-timer-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3895ff 0%, #2d7ae6 100%);
    color: #fff;
    font-size: 40px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(56, 149, 255, 0.3);
}

.timer-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    z-index: 1;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-circle-bg {
    fill: none;
    stroke: rgba(56, 149, 255, 0.1);
    stroke-width: 6;
}

.timer-circle-progress {
    fill: none;
    stroke: #3895ff;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s ease;
}

.download-timer-text {
    flex: 1;
    text-align: center;
}

.timer-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
    font-weight: 600;
    text-align: center;
}

.timer-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px 0;
    line-height: 1.3;
    text-align: center;
}

.timer-countdown {
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-content: center;
    width: 100%;
    transition: all 0.3s ease;
}

.timer-countdown.timer-zero {
    margin-top: 8px;
}

.timer-number {
    font-size: 48px;
    font-weight: 800;
    color: #3895ff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: font-size 0.3s ease;
}

.timer-countdown.timer-zero .timer-number {
    font-size: 72px;
    color: #ff6b00;
    text-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

.timer-unit {
    font-size: 18px;
    color: #666;
    font-weight: 500;
    transition: font-size 0.3s ease;
}

.timer-countdown.timer-zero .timer-unit {
    font-size: 28px;
    color: #ff6b00;
    font-weight: 600;
}

.download-button-wrapper {
    margin-bottom: 20px;
}

.download-wait-main .download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 36px;
    font-size: 18px;
    font-weight: 600;
    min-width: 100%;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-wait-main .download-btn::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 ease;
}

.download-wait-main .download-btn:hover::before {
    left: 100%;
}

.download-wait-main .download-btn .btn-icon-wrapper {
    display: flex;
    align-items: center;
    font-size: 20px;
}

.download-wait-main .download-btn .btn-text {
    flex: 1;
    text-align: center;
}


.download-helper-text {
    margin-top: 16px;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.6;
}

.download-helper-text i {
    color: #3895ff;
    font-size: 16px;
}

/* Sidebar Styles */
.download-wait-sidebar {
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-preview-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.preview-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.preview-image:hover {
    transform: scale(1.05);
}

.download-wait-sidebar .image-meta-box {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    margin-top: 0;
}

.meta-box-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.meta-box-title i {
    color: var(--primary-color);
    font-size: 20px;
}

.download-wait-sidebar .meta-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.download-wait-sidebar .meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.download-wait-sidebar .meta-item:hover {
    background: rgba(56, 149, 255, 0.05);
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 8px;
}

.meta-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3895ff 0%, #2d7ae6 100%);
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.meta-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-content strong {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.meta-content span {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.action-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.action-links a:hover {
    color: var(--primary-color);
}

.action-links a.download-problems-link:hover {
    color: #ff8c00;
}

.action-links a.dmca-report-link:hover {
    color: #dc3545;
}

/* Share Box - Simple Design */
.share-box {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.share-box-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-box-title::before {
    content: '\f1e0';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    font-size: 20px;
}

.social-share-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.social-share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 20px;
}

.social-share-btn:hover {
    transform: scale(1.1);
}

.social-share-btn i {
    color: inherit;
}

.social-share-btn.facebook {
    background: #fff;
    border: 2px solid #e0e0e0;
    color: #1877f2;
}

.social-share-btn.facebook:hover {
    border-color: #1877f2;
    background: #f0f4ff;
}

.social-share-btn.twitter {
    background: #1da1f2;
    color: #fff;
    border: none;
}

.social-share-btn.twitter:hover {
    background: #1a91da;
}

.social-share-btn.instagram {
    background: #fff;
    border: 2px solid #e91e63;
    color: #e91e63;
}

.social-share-btn.instagram:hover {
    background: #fff5f9;
    border-color: #c2185b;
}

.social-share-btn.whatsapp {
    background: #fff;
    border: 2px solid #25d366;
    color: #25d366;
}

.social-share-btn.whatsapp:hover {
    background: #f0fff4;
    border-color: #20ba5a;
}

.social-share-btn.copy-link-btn {
    background: #fff;
    border: 2px solid #e0e0e0;
    color: #666;
    cursor: pointer;
    padding: 0;
}

.social-share-btn.copy-link-btn:hover {
    border-color: #666;
    background: #f5f5f5;
    color: #333;
}

.share-link-input-hidden {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.image-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-badge {
    background: var(--gray-light);
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s;
}

.tag-badge:hover {
    background: var(--primary-color);
}

/* License and Use Section */
.license-use-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.license-use-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.license-use-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
    letter-spacing: -0.3px;
}

.license-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.license-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #2d2d2d;
    line-height: 1.6;
    flex-wrap: wrap;
    word-break: break-word;
}

.license-option span:not(.license-checkmark) {
    display: inline-block;
    vertical-align: middle;
    line-height: 1.6;
}

.license-option strong {
    font-weight: 700;
    color: #1a1a1a;
    display: inline;
    vertical-align: baseline;
    line-height: inherit;
}

.license-checkmark {
    color: #28a745;
    font-weight: bold;
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8f5e9;
    border-radius: 50%;
    flex-shrink: 0;
    vertical-align: middle;
    line-height: 24px;
    margin: 0;
}

.license-more-info {
    color: #dc3545;
    text-decoration: none;
    font-size: 13px;
    margin-left: auto;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.license-more-info:hover {
    text-decoration: underline;
    background: #fff5f5;
}

.license-premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3895ff 0%, #2d7ae6 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.buy-premium-cta {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.buy-premium-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FFC107;
    color: #1a1a1a;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
    border: none;
    cursor: pointer;
}

.buy-premium-btn .premium-btn-crown {
    width: 22px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
    flex-shrink: 0;
}

.buy-premium-btn:hover {
    color: #1a1a1a;
    background: #FF9800;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.5);
}

.buy-premium-btn:hover .premium-btn-crown {
    opacity: 1;
}

.buy-premium-hint {
    font-size: 12px;
    color: #666;
}

.attribution-section {
    margin-bottom: 24px;
}

.attribution-label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.attribution-code-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.attribution-code-input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
    color: #2d2d2d;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    cursor: text;
    transition: all 0.2s ease;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    width: 100%;
}

.attribution-code-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.copy-attribution-btn {
    padding: 12px 20px;
    background: #495057;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    height: auto;
    min-height: 44px;
    box-sizing: border-box;
}

.copy-attribution-btn:hover {
    background: #343a40;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.copy-attribution-btn:active {
    transform: translateY(0);
}

.copy-attribution-btn i {
    font-size: 13px;
}

.license-agreement {
    margin-bottom: 20px;
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.agreement-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    color: #2d2d2d;
    font-weight: 500;
}

.agreement-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.dmca-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid #28a745;
    border-radius: 8px;
    font-size: 13px;
    color: #155724;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.dmca-notice i {
    color: #28a745;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.dmca-notice a {
    color: #155724;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dmca-notice a:hover {
    text-decoration: underline;
    color: #0d4215;
}

/* Related Images */
.related-images {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.related-images h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

@media (max-width: 768px) {
    .download-wait-page .download-wait-layout {
        flex-direction: column;
        gap: 24px;
    }
    
    .download-header {
        margin-bottom: 32px;
    }
    
    .download-title {
        font-size: 28px;
    }
    
    .download-subtitle {
        font-size: 16px;
    }
    
    .download-header-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }
    
    .download-timer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .download-timer-icon-wrapper {
        margin: 0 auto;
    }
    
    .timer-title {
        font-size: 22px;
    }
    
    .timer-number {
        font-size: 40px;
    }
    
    .timer-countdown.timer-zero .timer-number {
        font-size: 56px;
    }
    
    .timer-countdown.timer-zero .timer-unit {
        font-size: 22px;
    }
    
    .download-wait-sidebar {
        min-width: 100%;
    }
    
    .image-detail-title {
        font-size: 32px;
    }
    
    .detail-page-header {
        margin-bottom: 30px;
    }
    
    .main-image-wrapper {
        padding: 20px;
    }
    
    .image-detail-content {
        grid-template-columns: 1fr;
    }
    
    .attribution-code-wrapper {
        flex-direction: column;
    }
    
    .copy-attribution-btn {
        width: 100%;
        justify-content: center;
    }
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.related-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.related-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: #f0f0f0;
}

.related-item p {
    padding: 10px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 40px 0;
}

.page-link {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.page-link:hover {
    opacity: 0.9;
}

.page-info {
    color: var(--gray-medium);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #3895ff 0%, #2d7ae6 100%);
    padding: 60px 0 40px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #fff;
}

/* Footer text: lighter color for contrast on blue background */
.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.8;
}

.tag-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tag-list a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.tag-list a:hover {
    color: #fff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fff;
}

/* Footer social icons – white solid */
.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    transition: background 0.3s ease, transform 0.2s ease;
}

.footer-social-icon:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #fff !important;
    transform: scale(1.08);
}

.footer-social-icon i {
    font-size: 22px;
    font-weight: 400;
}

.contributors-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contributors-box-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.contributors-box-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.contributors-box-content {
    flex: 1;
    min-width: 0;
}

.contributors-box h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.contributors-box p {
    color: #666;
}

.contributors-cta-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    transition: background 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
}

.contributors-cta-btn:hover {
    background: #2d7ae6;
    color: #fff;
    transform: translateY(-1px);
}

.contributors-cta-btn:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-medium);
}

.images-grid .no-results {
    grid-column: 1 / -1;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 100px 20px;
}

.error-page h1 {
    font-size: 72px;
    margin-bottom: 20px;
}

.error-page p {
    font-size: 24px;
    color: var(--gray-medium);
    margin-bottom: 40px;
}

/* Static Pages */
.page-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    line-height: 1.8;
    color: var(--text-color);
}

.page-content h1 {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}

.page-content h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.page-content h3 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-content p {
    margin-bottom: 20px;
}

.page-content ul,
.page-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.page-content li {
    margin-bottom: 10px;
}

.page-content strong {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Pricing page */
.pricing-page {
    max-width: 920px;
    margin: 0 auto;
}

.pricing-lead {
    font-size: 17px;
    color: #444;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Premium Forever - redesigned card */
.pricing-forever-card {
    margin-bottom: 36px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(255, 193, 7, 0.25);
    border: 2px solid rgba(255, 193, 7, 0.5);
}

.forever-card-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 36px 40px;
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e1 50%, #ffecb3 100%);
}

.forever-card-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #FFC107;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.5);
}

.forever-crown-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: brightness(0);
}

.forever-card-body {
    flex: 1;
    min-width: 0;
}

.forever-card-badge {
    display: inline-block;
    background: #FFC107;
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.forever-card-title {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: #1a1a1a;
    font-weight: 800;
}

.forever-card-desc {
    margin: 0 0 16px 0;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

.forever-card-price {
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
}

.forever-card-price .currency {
    font-size: 22px;
    vertical-align: top;
}

.forever-card-price .period {
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

.forever-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFC107;
    color: #1a1a1a;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 3px 12px rgba(255, 193, 7, 0.4);
}

.forever-card-cta:hover {
    background: #FF9800;
    color: #1a1a1a;
    transform: translateY(-1px);
}

.pricing-forever-card.preview-forever {
    padding: 24px 28px;
    background: linear-gradient(135deg, #fffbf0 0%, #ffecb3 100%);
    border-radius: 16px;
    border: 2px solid rgba(255, 193, 7, 0.4);
}

.pricing-forever-card.preview-forever .plan-price-preview {
    margin: 0;
    font-size: 18px;
    color: #1a1a1a;
    font-weight: 700;
}

/* Section title above bottom plans */
.pricing-section-title {
    font-size: 18px;
    color: #555;
    margin: 0 0 20px 0;
    text-align: center;
    font-weight: 600;
}

/* Billing switch: Monthly / Yearly */
.pricing-billing-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
}

.pricing-billing-switch .billing-option {
    font-size: 15px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.pricing-billing-switch .billing-option.active {
    color: #1a1a1a;
    font-weight: 600;
}

.save-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 600;
}

.pricing-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    background: #e0e0e0;
    border: none;
    border-radius: 26px;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s;
}

.pricing-toggle:hover {
    background: #d0d0d0;
}

.pricing-toggle.yearly {
    background: #FFC107;
}

.pricing-toggle.yearly:hover {
    background: #ffb300;
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.25s;
}

.pricing-toggle.yearly .toggle-slider {
    transform: translateX(22px);
}

/* Bottom plans: 3 columns (1 mo, 6 mo, 1 year) */
.pricing-plans-grid.pricing-plans-three {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

/* Bottom plans: 4 columns (legacy) */
.pricing-plans-grid.pricing-plans-four {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.plan-price-wrap {
    margin-bottom: 12px;
}

.plan-price-wrap.hidden {
    display: none;
}

.plan-price-wrap .currency {
    font-size: 18px;
    vertical-align: top;
}

.plan-price-wrap .amount {
    font-size: 24px;
    font-weight: 800;
}

.plan-price-wrap .period {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.plan-price-wrap .yearly-note {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.plan-price-wrap .plan-per-month {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #666;
}

/* Bottom plans: 3 columns (legacy) */
.pricing-plans-grid.pricing-plans-bottom {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

/* ----- Pricing plan cards (1 Month, 6 Months, 1 Year) - redesigned ----- */
.pricing-plans-grid.pricing-plans-three {
    gap: 28px;
    margin-bottom: 40px;
}

.pricing-plan-card.plan-short {
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 24%);
    border: 1px solid #e8eaed;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

.pricing-plan-card.plan-short:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    border-color: #d0d5dc;
}

.pricing-plan-card.plan-short .plan-header {
    padding: 24px 24px 16px;
    text-align: center;
    border-bottom: 1px solid #f0f1f3;
}

.pricing-plan-card.plan-short .plan-name {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 10px;
}

.pricing-plan-card.plan-short .plan-price {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 2px;
    letter-spacing: -0.02em;
}

.pricing-plan-card.plan-short .plan-price .currency {
    font-size: 18px;
    font-weight: 700;
    vertical-align: top;
    opacity: 0.9;
}

.pricing-plan-card.plan-short .plan-price .period {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.pricing-plan-card.plan-short .plan-per-month {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
    padding: 0 24px 20px;
    text-align: center;
}

.pricing-plan-card.plan-short .plan-body {
    padding: 20px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-plan-card.plan-short .plan-features {
    flex: 1;
    margin: 0 0 24px 0;
    padding: 0;
    list-style: none;
}

.pricing-plan-card.plan-short .plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    justify-content: flex-start;
}

.pricing-plan-card.plan-short .plan-features li:last-child {
    margin-bottom: 0;
}

.pricing-plan-card.plan-short .plan-features li i {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d1fae5;
    color: #059669;
    border-radius: 50%;
    font-size: 10px;
}

.pricing-plan-card.plan-short .plan-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    box-sizing: border-box;
}

.plan-cta-secondary {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    background: #111827;
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    box-sizing: border-box;
}

.plan-cta-secondary:hover {
    background: #1f2937;
    color: #fff;
    transform: translateY(-1px);
}

.save-badge-inline {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.pricing-plan-card.plan-annual {
    border-color: #f59e0b;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

.pricing-plan-card.plan-annual:hover {
    border-color: #d97706;
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.2);
}

.pricing-plan-card.plan-annual .plan-cta-secondary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

.pricing-plan-card.plan-annual .plan-cta-secondary:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #fff;
}

.pricing-plan-card.plan-disabled {
    opacity: 0.7;
}

.plan-cta-disabled {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    background: #e0e0e0;
    color: #666;
    cursor: default;
    text-decoration: none;
    box-sizing: border-box;
}

/* Plans grid (default 2-col for other uses) */
.pricing-plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.pricing-plans-grid.three-cols {
    grid-template-columns: repeat(3, 1fr);
}

.pricing-plans-grid.four-cols {
    grid-template-columns: repeat(4, 1fr);
}

.pricing-plan-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 28px 24px;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pricing-plan-card:hover {
    border-color: #FFC107;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.2);
}

.plan-name {
    margin: 0 0 16px 0;
    font-size: 20px;
    color: #1a1a1a;
    font-weight: 700;
}

.plan-price {
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
}

.plan-price .currency {
    font-size: 20px;
    vertical-align: top;
}

.plan-price .period {
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

.plan-price.hidden {
    display: none;
}

.yearly-note {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-top: 4px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
}

.plan-features li i {
    color: #28a745;
    font-size: 14px;
}

.plan-cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

/* Logged-out preview – same blue card style as logged-in */
.pricing-plans-preview {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.pricing-plans-preview .pricing-plans-grid.preview {
    gap: 24px;
    margin-bottom: 0;
}

.pricing-plans-preview .pricing-plans-grid.preview.three-cols {
    grid-template-columns: repeat(3, 1fr);
}

.pricing-plan-card.preview-card {
    padding: 22px 20px;
    text-align: center;
    background: #3895ff;
    border: 2px solid #2d7ae6;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(56, 149, 255, 0.3);
}

.pricing-plan-card.preview-card .plan-name {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.plan-price-preview {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.pricing-forever-card.preview-forever {
    padding: 24px 28px;
    background: linear-gradient(135deg, #3895ff 0%, #2563eb 100%);
    border-radius: 16px;
    border: 2px solid #2d7ae6;
    box-shadow: 0 4px 12px rgba(56, 149, 255, 0.3);
}

.pricing-forever-card.preview-forever .plan-name {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-forever-card.preview-forever .plan-price-preview {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

@media (max-width: 900px) {
    .pricing-plans-grid.pricing-plans-four,
    .pricing-plans-grid.four-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-plans-grid.pricing-plans-three {
        grid-template-columns: 1fr;
    }
    .forever-card-inner {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }
}

@media (max-width: 768px) {
    .pricing-plans-grid.pricing-plans-bottom,
    .pricing-plans-grid.pricing-plans-four,
    .pricing-plans-grid.pricing-plans-three,
    .pricing-plans-grid.three-cols,
    .pricing-plans-grid.four-cols {
        grid-template-columns: 1fr;
    }
    .forever-card-inner {
        padding: 24px 20px;
    }
    .forever-card-title {
        font-size: 24px;
    }
    .forever-card-price {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .pricing-plans-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card,
.pricing-status {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.pricing-status.premium-active {
    border-color: rgba(56, 149, 255, 0.3);
    background: linear-gradient(135deg, rgba(56, 149, 255, 0.06) 0%, rgba(45, 122, 230, 0.04) 100%);
}

.pricing-status.login-required {
    border-color: rgba(56, 149, 255, 0.4);
    background: linear-gradient(135deg, rgba(56, 149, 255, 0.08) 0%, rgba(45, 122, 230, 0.06) 100%);
}

.pricing-status-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3895ff 0%, #2d7ae6 100%);
    color: #fff;
    font-size: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.pricing-card h2,
.pricing-status h2 {
    margin: 0 0 12px 0;
    font-size: 22px;
    color: #1a1a1a;
}

.pricing-card p,
.pricing-status p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.pricing-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}

.pricing-status-actions .download-btn {
    display: inline-flex;
    text-decoration: none;
    white-space: nowrap;
}

.pricing-status-actions .pricing-btn-primary {
    background: linear-gradient(135deg, #3895ff 0%, #2d7ae6 100%);
    color: #fff;
}

.pricing-status-actions .pricing-btn-secondary {
    background: #fff;
    color: #3895ff;
    border: 2px solid #3895ff;
}

.pricing-status-actions .pricing-btn-secondary:hover {
    background: rgba(56, 149, 255, 0.06);
    color: #2563eb;
    border-color: #2563eb;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #333;
}

.pricing-features li i {
    color: #28a745;
    font-size: 16px;
}

.pricing-cta-text {
    margin-bottom: 20px !important;
    font-size: 15px;
}

.buy-premium-btn-large {
    padding: 14px 24px;
    font-size: 16px;
    background: #FFC107;
    color: #1a1a1a;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.45);
}

.buy-premium-btn-large .premium-btn-crown,
.buy-premium-btn-large .premium-btn-crown-large {
    width: 26px;
    height: 26px;
    object-fit: contain;
    vertical-align: middle;
    flex-shrink: 0;
}

.pricing-status-icon .premium-status-crown {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

.buy-premium-btn-large:hover {
    background: #FF9800;
    color: #1a1a1a;
    box-shadow: 0 5px 14px rgba(255, 152, 0, 0.55);
}

.pricing-footer-note {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1200px) {
    .images-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .logo-img {
        height: 35px;
        max-width: 150px;
    }
    
    .hero-section {
        padding: 60px 0 50px;
    }
    
    .hero-title {
        font-size: 32px;
        letter-spacing: -0.5px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 35px;
    }
    
    .tag-link {
        padding: 8px 18px;
        font-size: 14px;
    }
    
    .latest-images-section {
        padding: 40px 0 30px;
    }
    
    .latest-images-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .load-more-btn {
        padding: 12px 30px;
        font-size: 15px;
    }
    
    .image-detail-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .images-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    /* Hide dimensions on mobile, show only views and downloads */
    .pic-info .info-dimensions {
        display: none;
    }
}

@media (max-width: 480px) {
    .images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Authentication Pages */
.auth-page {
    max-width: 500px;
    margin: 60px auto;
    padding: 20px;
}

.auth-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-box h1 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--secondary-color);
}

.auth-form {
    margin-bottom: 20px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.auth-form small {
    display: block;
    margin-top: 5px;
    color: var(--gray-medium);
    font-size: 13px;
}

.btn-block {
    width: 100%;
    display: block;
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: #fff;
    padding: 0 15px;
    position: relative;
    color: var(--gray-medium);
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* User Profile Page - modern layout */
.user-profile-page {
    max-width: 720px;
    margin: 48px auto;
    padding: 0 20px;
}

.user-profile-page h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.user-profile-page .success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: none;
    font-weight: 500;
}

.user-profile-page .error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: none;
    font-weight: 500;
}

.user-profile-page .profile-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.user-profile-page .profile-section {
    background: #fff;
    padding: 28px 32px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    margin-bottom: 0;
    padding-bottom: 28px;
    border-bottom: none;
}

.user-profile-page .profile-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.profile-license-section {
    border-radius: 16px;
    padding: 28px 32px;
}

.profile-license-section.profile-license-premium {
    background: linear-gradient(135deg, rgba(56, 149, 255, 0.1) 0%, rgba(45, 122, 230, 0.06) 100%);
    border: 1px solid rgba(56, 149, 255, 0.35);
    box-shadow: 0 4px 20px rgba(56, 149, 255, 0.1);
}

.profile-license-section.profile-license-premium h2 {
    color: #1e40af;
}

.profile-license-section.profile-license-free {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    border: 1px solid #e8eaed;
}

.profile-license-section.profile-license-free h2 {
    color: #5f6368;
}

.license-badge-active {
    display: inline-block;
    background: #d1fae5;
    color: #059669;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.license-badge-free {
    display: inline-block;
    background: #6b7280;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

.profile-info p {
    margin-bottom: 12px;
    font-size: 15px;
    color: #374151;
    line-height: 1.5;
}

.profile-info .btn-primary {
    margin-top: 8px;
}

.user-profile-page .profile-section > p {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* User profile buttons */
.user-profile-page .btn-primary,
.user-profile-page a.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #3895ff 0%, #2563eb 100%);
    color: #fff !important;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(56, 149, 255, 0.35);
}

.user-profile-page .btn-primary:hover,
.user-profile-page a.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(56, 149, 255, 0.4);
}

.user-profile-page button.btn-primary {
    width: auto;
}

.user-profile-page .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f3f4f6;
    color: #374151;
    padding: 12px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.user-profile-page .btn-secondary:hover {
    background: #e5e7eb;
}

.profile-form {
    max-width: 100%;
}

.profile-form .form-group {
    margin-bottom: 24px;
}

.profile-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.profile-form input {
    width: 100%;
    max-width: 400px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-form input:focus {
    outline: none;
    border-color: #3895ff;
    box-shadow: 0 0 0 3px rgba(56, 149, 255, 0.15);
}

.profile-actions {
    margin-top: 24px;
}

/* Global success/error (fallback for other pages) */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
}

.upload-notice {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #ffc107;
}

.btn-approve {
    background: #28a745;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    margin-right: 5px;
}

.btn-approve:hover {
    background: #218838;
}

.btn-reject {
    background: #dc3545;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

.btn-reject:hover {
    background: #c82333;
}
