/**
 * Graphotos Main Stylesheet
 */

/* Variables */
:root {
    --graphotos-primary: #2563eb;
    --graphotos-primary-dark: #1d4ed8;
    --graphotos-secondary: #64748b;
    --graphotos-success: #22c55e;
    --graphotos-warning: #f59e0b;
    --graphotos-danger: #ef4444;
    --graphotos-text: #1e293b;
    --graphotos-text-light: #64748b;
    --graphotos-border: #e2e8f0;
    --graphotos-bg: #f8fafc;
    --graphotos-white: #ffffff;
    --graphotos-radius: 8px;
    --graphotos-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --graphotos-shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
}

/* Reset */
.graphotos-shop *,
.graphotos-cart *,
.graphotos-checkout *,
.graphotos-account *,
.graphotos-single-image * {
    box-sizing: border-box;
}

/* Buttons */
.graphotos-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    border: none;
    border-radius: var(--graphotos-radius);
    cursor: pointer;
    transition: all 0.2s;
}

.graphotos-button-primary {
    background: var(--graphotos-primary);
    color: var(--graphotos-white);
}

.graphotos-button-primary:hover {
    background: var(--graphotos-primary-dark);
    color: var(--graphotos-white);
}

.graphotos-button-secondary {
    background: var(--graphotos-bg);
    color: var(--graphotos-text);
    border: 1px solid var(--graphotos-border);
}

.graphotos-button-secondary:hover {
    background: var(--graphotos-border);
}

.graphotos-button-danger {
    background: var(--graphotos-danger);
    color: var(--graphotos-white);
}

.graphotos-button-large {
    padding: 14px 28px;
    font-size: 16px;
}

.graphotos-button-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Forms */
.graphotos-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--graphotos-border);
}

.graphotos-form-section h3 {
    margin: 0 0 20px;
    font-size: 18px;
}

.graphotos-form-row {
    margin-bottom: 20px;
}

.graphotos-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.graphotos-form-row input[type="text"],
.graphotos-form-row input[type="email"],
.graphotos-form-row input[type="password"],
.graphotos-form-row input[type="number"],
.graphotos-form-row select,
.graphotos-form-row textarea {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid var(--graphotos-border);
    border-radius: var(--graphotos-radius);
    transition: border-color 0.2s;
}

.graphotos-form-row input:focus,
.graphotos-form-row select:focus,
.graphotos-form-row textarea:focus {
    outline: none;
    border-color: var(--graphotos-primary);
}

.graphotos-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Search */
.graphotos-search-filters {
    margin-bottom: 30px;
}

.graphotos-search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.graphotos-search-bar {
    display: flex;
    position: relative;
}

.graphotos-search-bar input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid var(--graphotos-border);
    border-radius: 50px;
    padding-right: 50px;
}

.graphotos-search-bar input:focus {
    outline: none;
    border-color: var(--graphotos-primary);
}

.graphotos-search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--graphotos-primary);
    color: var(--graphotos-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Live-search suggestions dropdown */
.graphotos-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 9999;
    max-height: 280px;
    overflow-y: auto;
}
.graphotos-suggestion-item {
    padding: 9px 18px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.graphotos-suggestion-item::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    opacity: .6;
}
.graphotos-suggestion-item:hover,
.graphotos-suggestion-item.is-active {
    background: #f5f5f5;
    color: #000;
}
.graphotos-suggestion-item:last-child {
    border-radius: 0 0 12px 12px;
}

.graphotos-filters select {
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid var(--graphotos-border);
    border-radius: var(--graphotos-radius);
    background: var(--graphotos-white);
}

/* Results */
.graphotos-results-info {
    margin-bottom: 20px;
    color: var(--graphotos-text-light);
    font-size: 14px;
}

/* Grid */
.graphotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.graphotos-grid-small {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Image Card */
.graphotos-image-card {
    position: relative;
    border-radius: var(--graphotos-radius);
    overflow: hidden;
    background: var(--graphotos-bg);
}

.image-card-inner {
    position: relative;
    aspect-ratio: 4/3;
}

.image-card-thumbnail {
    width: 100%;
    height: 100%;
}

.image-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.graphotos-image-card:hover .image-card-thumbnail img {
    transform: scale(1.05);
}

.image-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
    background: linear-gradient(transparent 60%, rgba(0,0,0,0.7));
    opacity: 0;
    transition: opacity 0.3s;
}

.graphotos-image-card:hover .image-card-overlay {
    opacity: 1;
}

/* AI Badge on image cards */
.graphotos-ai-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.graphotos-ai-badge svg {
    flex-shrink: 0;
}
.image-card-thumbnail {
    position: relative;
}

/* AI Content notice on single image page */
.ai-content-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border: 1px solid #c4b5fd;
    border-radius: 8px;
    color: #6d28d9;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}
.ai-content-notice svg {
    flex-shrink: 0;
    stroke: #7c3aed;
}

/* AI Source tag in File Details */
.ai-source-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    letter-spacing: 0.3px;
}

.overlay-top {
    display: flex;
    justify-content: flex-end;
}

.overlay-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.image-card-info {
    color: var(--graphotos-white);
}

.image-contributor {
    font-size: 12px;
}

.image-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-price {
    color: var(--graphotos-white);
    font-weight: 600;
}

.graphotos-quick-add-collection,
.graphotos-quick-add-cart,
.graphotos-card-action-btn {
    /* Remove forced width/height for flexibility */
    /* width: 40px; */
    /* height: 40px; */
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.graphotos-quick-add-collection svg,
.graphotos-quick-add-cart svg,
.graphotos-card-action-btn svg {
    display: block;
    margin: 0 auto;
    padding: 0;
    vertical-align: middle;
    width: 22px;
    height: 22px;
}

.graphotos-quick-add-collection:hover,
.graphotos-quick-add-cart:hover {
    background: var(--graphotos-primary);
    color: var(--graphotos-white);
}

.graphotos-quick-add-cart.is-owned,
.graphotos-card-action-btn.is-owned,
.graphotos-sr-card-action.is-owned,
.graphotos-quick-add-cart:disabled,
.graphotos-card-action-btn:disabled,
.graphotos-sr-card-action:disabled {
    cursor: not-allowed;
    opacity: .48;
    filter: saturate(.5);
}

/* No results */
.graphotos-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: var(--graphotos-text-light);
}

/* Pagination */
.graphotos-pagination {
    margin-top: 40px;
    text-align: center;
}

.graphotos-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    margin: 0 4px;
    border-radius: var(--graphotos-radius);
    text-decoration: none;
    background: var(--graphotos-white);
    border: 1px solid var(--graphotos-border);
    color: var(--graphotos-text);
}

.graphotos-pagination .page-numbers.current {
    background: var(--graphotos-primary);
    border-color: var(--graphotos-primary);
    color: var(--graphotos-white);
}

/* Cart */
.graphotos-cart-empty {
    text-align: center;
    padding: 60px;
}

.graphotos-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.graphotos-cart-table th,
.graphotos-cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--graphotos-border);
}

.graphotos-cart-table .cart-image img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.graphotos-cart-totals {
    background: var(--graphotos-bg);
    padding: 30px;
    border-radius: var(--graphotos-radius);
}

.graphotos-cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.graphotos-cart-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.graphotos-remove-from-cart {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    font-size: 20px;
    color: var(--graphotos-text-light);
    cursor: pointer;
}

.graphotos-remove-from-cart:hover {
    color: var(--graphotos-danger);
}

/* Checkout */
.graphotos-checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.graphotos-order-summary {
    background: var(--graphotos-bg);
    padding: 25px;
    border-radius: var(--graphotos-radius);
    position: sticky;
    top: 30px;
}

.graphotos-order-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--graphotos-border);
}

.graphotos-order-item img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
}

.item-details {
    flex: 1;
}

.item-title {
    font-weight: 500;
    font-size: 14px;
}

.item-license {
    font-size: 12px;
    color: var(--graphotos-text-light);
}

.graphotos-order-totals {
    padding-top: 20px;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
}

/* Payment methods */
.graphotos-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.graphotos-payment-method {
    padding: 15px;
    border: 2px solid var(--graphotos-border);
    border-radius: var(--graphotos-radius);
    cursor: pointer;
}

.graphotos-payment-method:has(input:checked) {
    border-color: var(--graphotos-primary);
    background: rgba(37, 99, 235, 0.05);
}

.payment-method-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-method-label img {
    height: 20px;
}

/* Login Form */
html:has(.graphotos-login-wrapper),
body:has(.graphotos-login-wrapper) {
    background:
        radial-gradient(circle at 12% 14%, rgba(125, 211, 252, 0.18), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(59, 130, 246, 0.12), transparent 20%),
        radial-gradient(circle at 76% 72%, rgba(14, 165, 233, 0.10), transparent 22%),
        linear-gradient(180deg, #f7fafc 0%, #f3f7fb 48%, #eef4fb 100%);
    background-attachment: fixed;
}

body:has(.graphotos-login-wrapper) #page,
body:has(.graphotos-login-wrapper) .site,
body:has(.graphotos-login-wrapper) .site-main,
body:has(.graphotos-login-wrapper) .content-area,
body:has(.graphotos-login-wrapper) .site-content,
body:has(.graphotos-login-wrapper) .entry-content,
body:has(.graphotos-login-wrapper) .elementor-location-single,
body:has(.graphotos-login-wrapper) .elementor-location-archive,
body:has(.graphotos-login-wrapper) .elementor-widget-theme-post-content,
body:has(.graphotos-login-wrapper) .elementor-section-wrap {
    background: transparent !important;
}

.graphotos-login-wrapper {
    max-width: 1120px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    --graphotos-text: #e5edf8;
    --graphotos-text-light: #94a3b8;
    --graphotos-border: rgba(148, 163, 184, 0.18);
    --graphotos-bg: #0f172a;
    --graphotos-white: #0b1220;
    --graphotos-shadow-lg: 0 24px 60px rgba(2, 6, 23, 0.52);
}

.graphotos-login-box {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(8, 15, 29, 0.98) 100%);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--graphotos-shadow-lg);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.graphotos-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.graphotos-login-header h2 {
    margin: 0 0 8px;
    font-size: 24px;
    color: var(--graphotos-text);
}

.graphotos-login-header p {
    margin: 0;
    color: var(--graphotos-text-light);
    font-size: 14px;
}

.graphotos-login-error {
    background: #fef2f2;
    color: var(--graphotos-danger);
    padding: 12px 16px;
    border-radius: var(--graphotos-radius);
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #fecaca;
}

.graphotos-login-notice {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.graphotos-login-warning {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.graphotos-login-box .login-username,
.graphotos-login-box .login-password {
    margin-bottom: 16px;
}

.graphotos-login-box .login-username label,
.graphotos-login-box .login-password label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--graphotos-text);
}

.graphotos-login-box .login-username input,
.graphotos-login-box .login-password input {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid var(--graphotos-border);
    border-radius: var(--graphotos-radius);
    transition: border-color 0.2s;
    background: rgba(15, 23, 42, 0.88);
    color: #f8fbff;
}

.graphotos-login-box .login-username input:focus,
.graphotos-login-box .login-password input:focus {
    outline: none;
    border-color: var(--graphotos-primary);
}

.graphotos-login-box .login-remember {
    margin-bottom: 20px;
}

.graphotos-login-box .login-remember label {
    font-size: 14px;
    color: var(--graphotos-text-light);
    cursor: pointer;
}

.graphotos-login-box .login-submit input[type="submit"] {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    background: var(--graphotos-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--graphotos-radius);
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.graphotos-login-box .login-submit input[type="submit"]:hover {
    background: var(--graphotos-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(29, 78, 216, 0.28);
}

.graphotos-login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--graphotos-border);
}

.graphotos-login-links a {
    font-size: 14px;
    color: var(--graphotos-primary);
    text-decoration: none;
}

.graphotos-login-links a:hover {
    text-decoration: underline;
}

.graphotos-login-features {
    padding: 34px 34px 28px;
    color: #0f172a;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.10), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 28px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
}

.graphotos-login-features h3 {
    margin: 0 0 20px;
    font-size: 22px;
    color: #0f172a;
}

.graphotos-login-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.graphotos-login-features li {
    padding: 14px 0;
    font-size: 15px;
    color: #334155;
    border-bottom: 1px solid rgba(203, 213, 225, 0.8);
}

.graphotos-login-features li:last-child {
    border-bottom: none;
}

.graphotos-access-request-callout {
    margin-top: 28px;
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(17, 24, 39, 0.98) 100%);
    border: 1px solid rgba(59, 130, 246, 0.22);
}

.graphotos-access-request-callout h4 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--graphotos-text);
}

.graphotos-access-request-callout p {
    margin: 0 0 16px;
    color: var(--graphotos-text-light);
    font-size: 14px;
    line-height: 1.6;
}

.graphotos-access-request-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: var(--graphotos-radius);
    background: var(--graphotos-primary);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.graphotos-access-request-link:hover {
    background: var(--graphotos-primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(29, 78, 216, 0.28);
}

.graphotos-modal-open {
    overflow: hidden;
}

.graphotos-membership-card {
    max-width: none;
    margin: 0;
    padding: 30px;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(8, 15, 29, 1) 100%);
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.58);
    color: #e5edf8;
}

.graphotos-membership-header {
    margin-bottom: 24px;
}

.graphotos-membership-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.graphotos-membership-header h3,
.graphotos-membership-success h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #f8fbff;
}

.graphotos-membership-header p,
.graphotos-membership-success p {
    margin: 0;
    color: #a9b8cf;
    line-height: 1.7;
}

.graphotos-membership-errors {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #fecaca;
    border-radius: var(--graphotos-radius);
    background: #fef2f2;
    color: var(--graphotos-danger);
}

.graphotos-membership-errors p {
    margin: 0;
}

.graphotos-membership-errors p + p {
    margin-top: 8px;
}

.graphotos-membership-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.graphotos-membership-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.graphotos-membership-field.is-hidden {
    display: none;
}

.graphotos-membership-field-full {
    grid-column: 1 / -1;
}

.graphotos-membership-field label {
    font-size: 14px;
    font-weight: 600;
    color: #dbe7f6;
}

.graphotos-membership-field input,
.graphotos-membership-field select,
.graphotos-membership-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--graphotos-border);
    border-radius: var(--graphotos-radius);
    font-size: 14px;
    background: rgba(15, 23, 42, 0.9);
    color: #f8fbff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.graphotos-membership-field input:focus,
.graphotos-membership-field select:focus,
.graphotos-membership-field textarea:focus {
    outline: none;
    border-color: var(--graphotos-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.graphotos-membership-field input.is-locked,
.graphotos-membership-field input[readonly] {
    background: rgba(15, 23, 42, 0.72);
    color: #94a3b8;
    cursor: not-allowed;
}

.graphotos-membership-field textarea {
    min-height: 120px;
    resize: vertical;
}

.graphotos-membership-otp-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 12px;
    align-items: center;
}

.graphotos-membership-help {
    margin: 8px 0 0;
    color: #93a6c4;
    font-size: 13px;
    line-height: 1.5;
}

.graphotos-membership-email-actions {
    margin-top: 10px;
}

.graphotos-membership-inline-otp {
    margin-top: 14px;
}

.graphotos-membership-verification-panel {
    padding: 4px 0 2px;
    border: none;
    border-radius: 0;
    background: transparent;
}

.graphotos-membership-verification-panel.is-verified {
    background: transparent;
}

.graphotos-membership-verify-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 150px;
    gap: 14px;
    align-items: center;
}

.graphotos-membership-form .graphotos-membership-otp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: var(--graphotos-radius);
    background: rgba(20, 31, 54, 0.92);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.graphotos-membership-form .graphotos-membership-otp-button:hover {
    background: rgba(37, 99, 235, 0.22);
    border-color: rgba(96, 165, 250, 0.56);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    transform: translateY(-1px);
}

.graphotos-membership-form .graphotos-membership-otp-button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.graphotos-membership-otp-verify.is-hidden {
    display: none;
}

.graphotos-membership-otp-verify.is-verified {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.34);
    color: #bbf7d0;
    cursor: default;
}

.graphotos-membership-otp-status {
    min-height: 20px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
}

.graphotos-membership-otp-field input {
    width: 100%;
}

.graphotos-membership-otp-status.is-success {
    color: #15803d;
}

.graphotos-membership-otp-status.is-error {
    color: #b91c1c;
}

.graphotos-membership-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
}

.graphotos-membership-check input {
    margin-top: 3px;
}

.graphotos-membership-actions {
    margin-top: 24px;
}

.graphotos-membership-form .graphotos-membership-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: var(--graphotos-radius);
    background: var(--graphotos-primary);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.graphotos-membership-form .graphotos-membership-submit:hover {
    background: var(--graphotos-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(29, 78, 216, 0.28);
}

.graphotos-membership-form .graphotos-membership-submit:disabled,
.graphotos-membership-form .graphotos-membership-submit:disabled:hover {
    background: rgba(71, 85, 105, 0.72) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    color: rgba(226, 232, 240, 0.72) !important;
    -webkit-text-fill-color: rgba(226, 232, 240, 0.72);
    box-shadow: none !important;
    transform: none !important;
    cursor: not-allowed;
}

.graphotos-membership-success {
    padding: 4px 0;
}

.graphotos-membership-modal {
    padding: 24px;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(8px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
}

.graphotos-membership-modal .graphotos-membership-dialog {
    width: min(1080px, calc(100vw - 48px));
    max-width: 1080px;
    max-height: calc(100dvh - 48px);
    padding: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    margin: auto;
}

.graphotos-membership-modal .graphotos-modal-content {
    width: min(1080px, calc(100vw - 48px));
    max-width: 1080px;
    max-height: calc(100dvh - 48px);
    padding: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.graphotos-membership-card {
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
}

.graphotos-membership-close {
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.08);
    color: #a9b8cf;
    font-size: 28px;
    line-height: 1;
    z-index: 2;
}

.graphotos-membership-close:hover {
    background: rgba(148, 163, 184, 0.16);
    color: #f8fbff;
}

@media (max-width: 768px) {
    .graphotos-login-wrapper {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .graphotos-login-box {
        padding: 24px;
    }

    .graphotos-login-features {
        padding: 26px 24px 22px;
        border-radius: 24px;
    }

    .graphotos-membership-card {
        padding: 24px;
        border-radius: 22px;
    }

    .graphotos-membership-grid {
        grid-template-columns: 1fr;
    }

    .graphotos-membership-field-full {
        grid-column: auto;
    }

    .graphotos-membership-otp-row {
        grid-template-columns: 1fr;
    }

    .graphotos-membership-verify-layout {
        grid-template-columns: 1fr;
    }

    .graphotos-membership-otp-button,
    .graphotos-membership-submit {
        width: 100%;
    }

    .graphotos-membership-modal {
        padding: 14px;
    }

    .graphotos-membership-dialog {
        width: min(100%, calc(100vw - 28px));
        max-width: none;
        max-height: calc(100dvh - 28px);
    }

    .graphotos-membership-modal .graphotos-modal-content {
        width: min(100%, calc(100vw - 28px));
        max-width: none;
        max-height: calc(100dvh - 28px);
    }

    .graphotos-membership-card {
        max-height: calc(100dvh - 28px);
    }

    .graphotos-membership-close {
        top: 14px;
        right: 14px;
    }
}

.graphotos-coin-cart-widget {
    min-width: 240px;
    color: #e5edf8;
}

.graphotos-coin-cart-link {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(8, 15, 29, 1) 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.28);
}

.graphotos-coin-cart-link:hover {
    color: inherit;
    border-color: rgba(96, 165, 250, 0.38);
    transform: translateY(-1px);
}

.graphotos-coin-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.graphotos-coin-cart-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.graphotos-coin-cart-cell,
.graphotos-coin-cart-remaining {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.graphotos-coin-cart-cell small,
.graphotos-coin-cart-remaining small {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8da1bb;
}

.graphotos-coin-cart-cell strong,
.graphotos-coin-cart-remaining strong {
    font-size: 14px;
    font-weight: 700;
    color: #f8fbff;
}

.graphotos-coin-cart-remaining {
    min-width: 120px;
    padding-left: 14px;
    border-left: 1px solid rgba(148, 163, 184, 0.14);
}

.graphotos-coin-cart-remaining.is-short strong {
    color: #fda4af;
}

@media (max-width: 767px) {
    .graphotos-coin-cart-widget {
        min-width: 100%;
    }

    .graphotos-coin-cart-link {
        grid-template-columns: 1fr;
    }

    .graphotos-coin-cart-grid {
        grid-template-columns: 1fr;
    }

    .graphotos-coin-cart-remaining {
        min-width: 0;
        padding-left: 0;
        border-left: 0;
        padding-top: 10px;
        border-top: 1px solid rgba(148, 163, 184, 0.14);
    }
}

/* Contributor Terms Page */
.graphotos-contributor-terms-page {
    max-width: 800px;
}

.graphotos-contributor-terms-page h1 {
    margin: 0 0 24px;
    font-size: 28px;
}

.terms-summary {
    background: var(--graphotos-bg);
    border-radius: var(--graphotos-radius);
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid var(--graphotos-border);
}

.terms-summary h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
}

.terms-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.terms-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.terms-summary-item .summary-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.terms-summary-item strong {
    font-size: 15px;
    color: var(--graphotos-text);
}

.terms-summary-item span {
    font-size: 13px;
    color: var(--graphotos-text-light);
}

.terms-content h2 {
    margin: 28px 0 12px;
    font-size: 18px;
    color: var(--graphotos-text);
}

.terms-content ul {
    padding-left: 20px;
    margin: 0 0 16px;
}

.terms-content li {
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.6;
}

.terms-content p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 14px;
    color: var(--graphotos-text);
}

.terms-cta {
    margin-top: 40px;
    padding: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--graphotos-radius);
    text-align: center;
    color: #fff;
}

.terms-cta p {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    margin: 0 0 16px;
}

.terms-cta .graphotos-button-primary {
    background: #fff;
    color: #667eea;
}

.terms-cta .graphotos-button-primary:hover {
    background: #f0f0f0;
    color: #667eea;
}

/* Contributor Application Form */
.graphotos-contributor-apply {
    max-width: 700px;
}

.graphotos-contributor-apply h1 {
    margin: 0 0 8px;
    font-size: 24px;
}

.graphotos-contributor-apply .apply-subtitle {
    color: var(--graphotos-text-light);
    margin: 0 0 30px;
    font-size: 15px;
}

.graphotos-apply-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--graphotos-danger);
    padding: 16px 20px;
    border-radius: var(--graphotos-radius);
    margin-bottom: 24px;
}

.graphotos-apply-errors p {
    margin: 4px 0;
    font-size: 14px;
}

.graphotos-apply-form .apply-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--graphotos-border);
}

.graphotos-apply-form .apply-section h3 {
    margin: 0 0 20px;
    font-size: 17px;
    font-weight: 600;
    color: var(--graphotos-text);
}

.graphotos-apply-form .graphotos-form-row {
    margin-bottom: 18px;
}

.graphotos-apply-form .graphotos-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
}

.graphotos-apply-form .graphotos-form-row .required {
    color: var(--graphotos-danger);
}

.graphotos-apply-form .graphotos-form-row input[type="text"],
.graphotos-apply-form .graphotos-form-row input[type="url"],
.graphotos-apply-form .graphotos-form-row input[type="email"],
.graphotos-apply-form .graphotos-form-row select,
.graphotos-apply-form .graphotos-form-row textarea {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid var(--graphotos-border);
    border-radius: var(--graphotos-radius);
    transition: border-color 0.2s;
    font-family: inherit;
}

.graphotos-apply-form .graphotos-form-row input:focus,
.graphotos-apply-form .graphotos-form-row select:focus,
.graphotos-apply-form .graphotos-form-row textarea:focus {
    outline: none;
    border-color: var(--graphotos-primary);
}

.graphotos-apply-form .graphotos-form-row input:disabled {
    background: var(--graphotos-bg);
    color: var(--graphotos-text-light);
}

.graphotos-apply-form .field-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--graphotos-text-light);
}

.graphotos-apply-form .checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.graphotos-apply-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    padding: 6px 0;
}

.graphotos-apply-form .checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.graphotos-apply-form .apply-terms {
    border-bottom: none;
    margin-bottom: 24px;
    padding-bottom: 0;
}

.graphotos-apply-form .apply-terms a {
    color: var(--graphotos-primary);
}

.graphotos-apply-form .apply-actions {
    display: flex;
    gap: 12px;
}

/* Application pending / success state */
.graphotos-apply-pending {
    text-align: center;
    padding: 60px 20px;
}

.graphotos-apply-pending .apply-pending-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.graphotos-apply-pending h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.graphotos-apply-pending p {
    color: var(--graphotos-text-light);
    max-width: 480px;
    margin: 0 auto 16px;
    font-size: 15px;
}

.graphotos-apply-pending .apply-pending-date {
    font-size: 13px;
    color: var(--graphotos-secondary);
    margin-bottom: 24px;
}

/* Account */
.graphotos-account {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.graphotos-account-user {
    text-align: center;
    padding: 20px;
    background: var(--graphotos-bg);
    border-radius: var(--graphotos-radius);
    margin-bottom: 20px;
}

.graphotos-account-user img {
    border-radius: 50%;
    margin-bottom: 10px;
}

.graphotos-account-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.graphotos-account-nav li a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--graphotos-text);
    border-radius: var(--graphotos-radius);
    transition: background 0.2s;
}

.graphotos-account-nav li a:hover {
    background: var(--graphotos-bg);
}

.graphotos-account-nav li.active a {
    background: var(--graphotos-primary);
    color: var(--graphotos-white);
}

/* Dashboard stats */
.graphotos-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.graphotos-stat-box {
    background: var(--graphotos-bg);
    padding: 25px;
    border-radius: var(--graphotos-radius);
    text-align: center;
}

.graphotos-stat-box.highlight {
    background: var(--graphotos-primary);
    color: var(--graphotos-white);
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: var(--graphotos-text-light);
}

.graphotos-stat-box.highlight .stat-label {
    color: rgba(255,255,255,0.8);
}

/* Single Image */
.graphotos-single-image {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.graphotos-image-preview {
    background: var(--graphotos-bg);
    border-radius: var(--graphotos-radius);
    overflow: hidden;
}

.graphotos-main-image {
    width: 100%;
    height: auto;
    display: block;
}

.graphotos-image-header h1 {
    font-size: 24px;
    margin: 0 0 15px;
}

.graphotos-contributor-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.graphotos-contributor-info img {
    border-radius: 50%;
}

.graphotos-purchase-box {
    background: var(--graphotos-bg);
    padding: 25px;
    border-radius: var(--graphotos-radius);
    margin-bottom: 20px;
}

.graphotos-price {
    text-align: center;
    margin-bottom: 20px;
}

.price-label {
    display: block;
    font-size: 13px;
    color: var(--graphotos-text-light);
}

.price-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--graphotos-primary);
}

.graphotos-license-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.license-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid var(--graphotos-border);
    border-radius: var(--graphotos-radius);
    cursor: pointer;
}

.license-option:has(input:checked) {
    border-color: var(--graphotos-primary);
    background: rgba(37, 99, 235, 0.05);
}

.license-info {
    flex: 1;
}

.license-info strong {
    display: block;
}

.license-info small {
    font-size: 12px;
    color: var(--graphotos-text-light);
}

.license-price {
    font-weight: 600;
}

.graphotos-details-table {
    width: 100%;
}

.graphotos-details-table th,
.graphotos-details-table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--graphotos-border);
}

.graphotos-details-table th {
    width: 40%;
    font-weight: 500;
    color: var(--graphotos-text-light);
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--graphotos-bg);
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    color: var(--graphotos-text);
}

.keyword-tag:hover {
    background: var(--graphotos-primary);
    color: var(--graphotos-white);
}

/* Upload */
.graphotos-upload-info {
    background: var(--graphotos-bg);
    padding: 20px;
    border-radius: var(--graphotos-radius);
    margin-bottom: 30px;
}

.graphotos-upload-info h4 {
    margin: 0 0 10px;
}

.graphotos-upload-info ul {
    margin: 0;
    padding-left: 20px;
}

.graphotos-upload-info li {
    margin-bottom: 5px;
}

.graphotos-dropzone {
    border: 3px dashed var(--graphotos-border);
    border-radius: var(--graphotos-radius);
    padding: 60px;
    text-align: center;
    transition: all 0.2s;
}

.graphotos-dropzone.dragover {
    border-color: var(--graphotos-primary);
    background: rgba(37, 99, 235, 0.05);
}

.dropzone-content svg {
    color: var(--graphotos-text-light);
    margin-bottom: 15px;
}

.dropzone-content .or {
    color: var(--graphotos-text-light);
    margin: 15px 0;
}

/* Modal */
.graphotos-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graphotos-modal-content {
    background: var(--graphotos-white);
    padding: 30px;
    border-radius: var(--graphotos-radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.graphotos-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--graphotos-text-light);
}

/* Notices */
.graphotos-notice {
    padding: 15px 20px;
    border-radius: var(--graphotos-radius);
    margin-bottom: 20px;
}

.graphotos-notice-success {
    background: #dcfce7;
    color: #166534;
}

.graphotos-notice-error {
    background: #fef2f2;
    color: #991b1b;
}

/* Status badges */
.order-status, .earning-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed, .status-paid {
    background: #dcfce7;
    color: #166534;
}

.status-failed, .status-rejected {
    background: #fef2f2;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 1024px) {
    .graphotos-checkout-content {
        grid-template-columns: 1fr;
    }
    
    .graphotos-single-image {
        grid-template-columns: 1fr;
    }
    
    .graphotos-order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .graphotos-account {
        grid-template-columns: 1fr;
    }
    
    .graphotos-form-row-2 {
        grid-template-columns: 1fr;
    }
    
    .graphotos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .graphotos-cart-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .graphotos-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   CONTRIBUTOR DASHBOARD
   =========================================== */

.graphotos-contributor-area {
    display: grid !important;
    grid-template-columns: 22% 78% !important;
    gap: 0 !important;
    min-height: 80vh !important;
    width: 95% !important;
    max-width: 1400px !important;
    margin: 20px auto !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.graphotos-contributor-area * {
    box-sizing: border-box;
}

/* Sidebar */
.graphotos-contributor-sidebar {
    background: #1e2024 !important;
    border-right: 1px solid #34383f !important;
    padding: 25px 20px !important;
    color: #e6e8eb !important;
}
.graphotos-contributor-sidebar h1,
.graphotos-contributor-sidebar h2,
.graphotos-contributor-sidebar h3,
.graphotos-contributor-sidebar h4,
.graphotos-contributor-sidebar p,
.graphotos-contributor-sidebar span,
.graphotos-contributor-sidebar li { color: #e6e8eb !important; }
.graphotos-contributor-sidebar a:not(.profile-links a):not(.button) { color: #d6d9de !important; }

.contributor-profile {
    text-align: center !important;
    padding-bottom: 20px !important;
    border-bottom: 1px dashed #3a3f46 !important;
    margin-bottom: 20px !important;
}

.profile-avatar {
    margin-bottom: 12px !important;
}

.profile-avatar img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 4px !important;
    border: 3px solid #ddd !important;
    object-fit: cover !important;
}

.profile-links {
    margin-top: 12px !important;
}

.profile-links a {
    color: #c9302c !important;
    text-decoration: none !important;
    margin: 0 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.profile-links a:hover {
    text-decoration: underline !important;
}

.contributor-admin-btn {
    display: block !important;
    background: #c9302c !important;
    color: #fff !important;
    text-align: center !important;
    padding: 14px 15px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 25px !important;
    text-transform: uppercase !important;
}

.contributor-admin-btn:hover {
    background: #a02622 !important;
    color: #fff !important;
}

/* Navigation */
.contributor-nav ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.contributor-nav > ul > li {
    margin-bottom: 3px !important;
}

.contributor-nav > ul > li > a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    transition: all 0.15s ease !important;
    background: transparent !important;
}

.contributor-nav > ul > li > a:hover {
    background: #e8e9eb !important;
    color: #111 !important;
}

.contributor-nav > ul > li.active > a {
    background: #e0e2e5 !important;
    font-weight: 600 !important;
    color: #111 !important;
}

.nav-icon {
    font-size: 16px !important;
    width: 22px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.nav-divider {
    height: 1px !important;
    background: #d0d2d5 !important;
    margin: 18px 0 !important;
    border: none !important;
}

/* Submenu */
.contributor-nav .submenu {
    list-style: none !important;
    padding: 8px 0 8px 42px !important;
    margin: 0 !important;
    display: none !important;
    background: transparent !important;
}

.contributor-nav .has-submenu.open .submenu,
.contributor-nav .has-submenu.active .submenu {
    display: block !important;
}

.contributor-nav .submenu li {
    margin-bottom: 2px !important;
}

.contributor-nav .submenu a {
    display: block !important;
    padding: 8px 12px !important;
    color: #555 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    border-radius: 3px !important;
}

.contributor-nav .submenu a:hover {
    background: #e8e9eb !important;
    color: #222 !important;
}

/* Main Content */
.graphotos-contributor-main {
    padding: 35px 40px !important;
    min-height: 500px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    background: #fff !important;
}

.graphotos-contributor-main h1 {
    font-size: 26px !important;
    font-weight: 400 !important;
    color: #333 !important;
    margin: 0 0 25px !important;
    padding: 0 !important;
    border: none !important;
    line-height: 1.3 !important;
}

/* Dashboard Stats */
.dashboard-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
}

.stat-card {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 22px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    border: 1px solid #e9ecef !important;
}

.stat-icon {
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    border-radius: 8px !important;
}

.stat-icon.blue { background: #e3f2fd !important; }
.stat-icon.orange { background: #fff3e0 !important; }
.stat-icon.green { background: #e8f5e9 !important; }
.stat-icon.purple { background: #f3e5f5 !important; }

.stat-content .stat-value {
    display: block !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.2 !important;
}

.stat-content .stat-label {
    font-size: 13px !important;
    color: #666 !important;
    margin-top: 3px !important;
}

/* Balance Cards */
.dashboard-balance-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
}

.balance-card {
    padding: 25px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 10px !important;
    color: #fff !important;
}

.balance-card h3 {
    font-size: 14px !important;
    font-weight: 500 !important;
    margin: 0 0 10px !important;
    opacity: 0.9 !important;
}

.balance-card .balance-amount {
    font-size: 32px !important;
    font-weight: 700 !important;
}

.balance-card .balance-info {
    font-size: 12px !important;
    opacity: 0.8 !important;
    margin: 5px 0 0 !important;
}

/* Tables */
.contributor-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 14px !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}

.contributor-table thead {
    background: #c9302c !important;
}

.contributor-table thead tr {
    background: #c9302c !important;
}

.contributor-table th {
    padding: 14px 16px !important;
    text-align: left !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #fff !important;
    background: #c9302c !important;
    border: none !important;
}

.contributor-table td {
    padding: 14px 16px !important;
    border-bottom: 1px solid #eee !important;
    vertical-align: middle !important;
    color: #333 !important;
    background: #fff !important;
}

.contributor-table tbody tr:hover td {
    background: #f9f9f9 !important;
}

.contributor-table tbody tr:last-child td {
    border-bottom: none !important;
}

.contributor-table a {
    color: #c9302c !important;
    text-decoration: none !important;
}

.contributor-table a:hover {
    text-decoration: underline !important;
}

/* Status Badges */
.status-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 5px 12px !important;
    font-size: 11px !important;
    border-radius: 3px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.status-badge.status-pending,
.status-badge.status-pending_review {
    background: #fff3cd !important;
    color: #856404 !important;
}

.status-badge.status-publish,
.status-badge.status-approved,
.status-badge.status-completed,
.status-badge.status-paid {
    background: #d4edda !important;
    color: #155724 !important;
}

.status-badge.status-rejected,
.status-badge.status-failed {
    background: #f8d7da !important;
    color: #721c24 !important;
}

/* View Toggle */
.view-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 25px !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

.view-header h1 {
    margin-bottom: 0 !important;
}

.view-toggle {
    display: flex !important;
    gap: 0 !important;
}

.toggle-btn {
    padding: 10px 18px !important;
    border: none !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    transition: opacity 0.15s !important;
}

.toggle-btn .icon {
    font-size: 13px !important;
}

.toggle-btn:first-child {
    background: #337ab7 !important;
    color: #fff !important;
    border-radius: 4px 0 0 4px !important;
}

.toggle-btn:last-child {
    background: #c9302c !important;
    color: #fff !important;
    border-radius: 0 4px 4px 0 !important;
}

.toggle-btn.active {
    opacity: 1 !important;
}

.toggle-btn:not(.active) {
    opacity: 0.75 !important;
}

.toggle-btn:hover {
    opacity: 1 !important;
}

/* Filter Tabs */
.publication-filters {
    display: flex !important;
    gap: 6px !important;
    margin-bottom: 25px !important;
    flex-wrap: wrap !important;
}

.filter-tab {
    padding: 8px 16px !important;
    background: #e9ecef !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    transition: all 0.15s !important;
}

.filter-tab:hover {
    background: #dee2e6 !important;
    color: #111 !important;
}

.filter-tab.active {
    background: #337ab7 !important;
    color: #fff !important;
}

/* Thumbnail in table */
.preview-cell {
    width: 85px !important;
}

.pub-thumbnail {
    width: 75px !important;
    height: 52px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    border: 1px solid #ddd !important;
}

/* Buttons */
.btn-primary {
    display: inline-block !important;
    background: #337ab7 !important;
    color: #fff !important;
    padding: 14px 32px !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: background 0.15s !important;
}

.btn-primary:hover {
    background: #286090 !important;
    color: #fff !important;
}

/* Forms */
.form-group {
    margin-bottom: 22px !important;
}

.form-group label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 14px !important;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    background: #fff !important;
    color: #333 !important;
    transition: border-color 0.15s !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #337ab7 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(51, 122, 183, 0.15) !important;
}

/* Upload Dropzone */
.upload-dropzone {
    border: 2px dashed #ccc !important;
    border-radius: 8px !important;
    padding: 60px 30px !important;
    text-align: center !important;
    background: #fafbfc !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.upload-dropzone:hover {
    border-color: #337ab7 !important;
    background: #f0f7ff !important;
}

.dropzone-icon {
    font-size: 52px !important;
    display: block !important;
    margin-bottom: 18px !important;
}

.upload-options {
    margin-bottom: 30px !important;
}

.upload-option {
    padding: 10px 0 !important;
    border-bottom: 1px dotted #ddd !important;
}

.upload-option a {
    color: #337ab7 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.upload-option a:hover {
    text-decoration: underline !important;
}

/* Empty Messages */
.empty-message {
    color: #888 !important;
    font-style: italic !important;
    text-align: center !important;
    padding: 40px 20px !important;
    font-size: 14px !important;
}

/* Summary Table */
.summary-table td.amount {
    font-size: 18px !important;
    font-weight: 600 !important;
}

.commission-info {
    margin-top: 30px !important;
    padding: 22px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    border: 1px solid #e9ecef !important;
}

.commission-info p {
    margin: 6px 0 !important;
    color: #555 !important;
}

/* Per Credit Info */
.per-credit {
    font-size: 12px !important;
    color: #777 !important;
    margin-left: 5px !important;
}

/* Results Count */
.results-count {
    margin-top: 18px !important;
    font-size: 13px !important;
    color: #666 !important;
}

/* Balance Display */
.balance-display {
    font-size: 17px !important;
    margin-bottom: 25px !important;
    color: #333 !important;
}

.balance-display strong {
    color: #337ab7 !important;
    font-weight: 700 !important;
}

/* Edit Link */
.edit-link {
    color: #337ab7 !important;
}

/* Responsive */
@media (max-width: 992px) {
    .graphotos-contributor-area {
        grid-template-columns: 1fr !important;
    }
    
    .graphotos-contributor-sidebar {
        border-right: none !important;
        border-bottom: 1px solid #ddd !important;
    }
    
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .dashboard-balance-row {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .graphotos-contributor-main {
        padding: 25px 20px !important;
    }
    
    .contributor-table {
        display: block !important;
        overflow-x: auto !important;
    }
    
    .view-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    
    .dashboard-stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== Document Preview (Frontend) ===== */
.graphotos-document-preview-container {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}
.doc-preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}
.doc-format-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    background: #c9302c;
    color: #fff;
}
.doc-page-count, .doc-file-size {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
}
.doc-preview-carousel {
    padding: 20px;
}
.doc-preview-main {
    position: relative;
    text-align: center;
    margin-bottom: 15px;
}
.doc-main-preview-img {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.doc-preview-watermark-notice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 14px;
    background: rgba(0,0,0,0.05);
    border-radius: 20px;
    font-size: 12px;
    color: #666;
}
.doc-preview-thumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.doc-thumb {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    width: 120px;
    transition: border-color 0.2s, transform 0.2s;
    text-align: center;
    background: #fff;
}
.doc-thumb:hover {
    transform: translateY(-2px);
    border-color: #aaa;
}
.doc-thumb.active {
    border-color: #c9302c;
}
.doc-thumb img {
    width: 100%;
    height: auto;
    display: block;
}
.doc-thumb .thumb-label {
    display: block;
    padding: 4px;
    font-size: 11px;
    color: #666;
    background: #f5f5f5;
}
.doc-no-preview {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.doc-no-preview p {
    margin-top: 15px;
    font-size: 14px;
}
/* Google Docs Viewer Iframe */
.doc-viewer-wrapper {
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}
.doc-google-viewer-iframe {
    width: 100%;
    height: 600px;
    display: block;
    border: none;
}
.doc-viewer-loading {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    z-index: 2;
    color: #666;
    font-size: 14px;
}
.doc-spinner {
    animation: doc-spin 1s linear infinite;
    margin-bottom: 12px;
}
@keyframes doc-spin {
    100% { transform: rotate(360deg); }
}
.doc-preview-thumbs-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
    overflow-x: auto;
}
.doc-preview-thumbs-strip .thumbs-label {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}
.doc-thumb-mini {
    flex-shrink: 0;
    width: 48px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
}
.doc-thumb-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 768px) {
    .doc-google-viewer-iframe {
        height: 400px;
    }
}
/* Office document info card (non-PDF) */
.doc-office-preview {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}
.doc-office-icon {
    margin-bottom: 20px;
    opacity: 0.8;
}
.doc-office-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px;
}
.doc-office-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}
.doc-office-sep {
    color: #ccc;
}
.doc-office-format {
    font-weight: 600;
    color: #c9302c;
}
.doc-office-notice {
    color: #888;
    font-size: 13px;
    margin: 0;
    padding: 12px 20px;
    background: rgba(201, 48, 44, 0.05);
    border-radius: 6px;
    display: inline-block;
}

/* ═══════════════════════════════════════════════════
   CUSTOM DOCUMENT VIEWER
   ═══════════════════════════════════════════════════ */
.graphotos-doc-viewer {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

/* Toolbar */
.gd-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #2d2d2d;
    color: #e0e0e0;
    font-size: 13px;
    gap: 12px;
    min-height: 44px;
}
.gd-toolbar-left,
.gd-toolbar-center,
.gd-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.gd-toolbar-center {
    flex-shrink: 0;
}
.gd-toolbar-info {
    color: #aaa;
    font-size: 12px;
}
.gd-toolbar .doc-format-badge {
    font-size: 10px;
    padding: 2px 8px;
}
.gd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
    padding: 0;
}
.gd-btn:hover {
    background: rgba(255,255,255,0.1);
}
.gd-btn:disabled {
    opacity: 0.3;
    cursor: default;
}
.gd-btn:disabled:hover {
    background: transparent;
}
.gd-page-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}
.gd-page-input {
    width: 40px;
    height: 26px;
    text-align: center;
    border: 1px solid #555;
    border-radius: 3px;
    background: #3d3d3d;
    color: #fff;
    font-size: 13px;
    -moz-appearance: textfield;
}
.gd-page-input::-webkit-inner-spin-button,
.gd-page-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.gd-page-sep {
    color: #888;
}

/* Viewer Body */
.gd-viewer-body {
    position: relative;
    min-height: 500px;
    max-height: 700px;
    overflow: auto;
    background: #e8e8e8;
}
.gd-loading {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    z-index: 5;
    color: #666;
    font-size: 14px;
}
.gd-canvas-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    min-height: 500px;
    position: relative;
}
.gd-canvas-container canvas {
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    background: #fff;
}
/* PDF watermark overlay */
.gd-pdf-watermark {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 5;
    background-repeat: repeat;
}
.gd-wm-logo {
    position: absolute;
    pointer-events: none;
}
.gd-wm-logo img {
    display: block;
}
.gd-wm-center {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.gd-wm-center img { max-width: 200px; max-height: 200px; opacity: 0.15; }
.gd-wm-tr {
    top: 30px; right: 30px;
}
.gd-wm-tr img { max-width: 100px; opacity: 0.5; }
.gd-wm-bl {
    bottom: 30px; left: 30px;
}
.gd-wm-bl img { max-width: 80px; opacity: 0.35; }
.gd-html-frame {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
    background: #f5f5f5;
}

/* Viewer Footer */
.gd-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .gd-toolbar {
        flex-wrap: wrap;
        padding: 8px 10px;
        gap: 6px;
    }
    .gd-toolbar-left { order: 1; }
    .gd-toolbar-center { order: 3; width: 100%; justify-content: center; }
    .gd-toolbar-right { order: 2; margin-left: auto; }
    .gd-viewer-body {
        min-height: 350px;
        max-height: 500px;
    }
    .gd-html-frame {
        height: 400px;
    }
}

/* Document license options */
.doc-license-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.doc-license-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.doc-license-option:hover {
    border-color: #c9302c;
    background: rgba(201, 48, 44, 0.03);
}
.doc-license-option.selected {
    border-color: #c9302c;
    background: rgba(201, 48, 44, 0.05);
}
/* Document badge on image cards */
.graphotos-doc-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: #c9302c;
    color: #fff;
    z-index: 2;
}
.graphotos-doc-pages-badge {
    position: absolute;
    top: 8px;
    left: auto;
    right: 8px;
    display: inline-block;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(0,0,0,0.6);
    color: #fff;
    z-index: 2;
}

/* ══════════════════════════════════════
 *  PRICING PAGE
 * ══════════════════════════════════════ */

.gp-pricing-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header */
.gp-pricing-header {
    text-align: center;
    margin-bottom: 48px;
}
.gp-pricing-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--graphotos-text);
    margin: 0 0 12px;
}
.gp-pricing-header p {
    font-size: 18px;
    color: var(--graphotos-text-light);
    margin: 0 0 28px;
}

/* Billing toggle */
.gp-billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--graphotos-bg);
    padding: 8px 20px;
    border-radius: 40px;
}
.gp-toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--graphotos-text-light);
    cursor: pointer;
    transition: color .2s;
}
.gp-toggle-label.gp-toggle-active {
    color: var(--graphotos-primary);
}
.gp-save-badge {
    display: inline-block;
    background: #dcfce7;
    color: #16a34a;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
}
.gp-toggle {
    position: relative;
    width: 44px;
    height: 24px;
}
.gp-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.gp-toggle-slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 24px;
    cursor: pointer;
    transition: background .3s;
}
.gp-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .3s;
}
.gp-toggle input:checked + .gp-toggle-slider {
    background: var(--graphotos-primary);
}
.gp-toggle input:checked + .gp-toggle-slider::before {
    transform: translateX(20px);
}

/* Plan grid */
.gp-plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.gp-plan-card {
    position: relative;
    background: #fff;
    border: 2px solid var(--graphotos-border);
    border-radius: 16px;
    padding: 32px 24px 28px;
    text-align: center;
    transition: transform .25s, box-shadow .25s;
}
.gp-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* Popular */
.gp-plan-popular {
    border-color: var(--plan-color);
    box-shadow: 0 0 0 2px var(--plan-color), 0 8px 30px rgba(0,0,0,0.12);
}
.gp-popular-ribbon {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--plan-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 16px;
    border-radius: 0 0 8px 8px;
}

/* Current plan */
.gp-plan-current {
    opacity: 0.85;
}

/* Plan header */
.gp-plan-badge {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}
.gp-plan-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--plan-color);
    margin: 0 0 6px;
}
.gp-plan-tagline {
    font-size: 13px;
    color: var(--graphotos-text-light);
    margin: 0 0 20px;
    min-height: 36px;
}

/* Price */
.gp-plan-price {
    margin-bottom: 24px;
}
.gp-currency {
    font-size: 20px;
    font-weight: 600;
    vertical-align: top;
    margin-top: 4px;
    display: inline-block;
}
.gp-amount {
    font-size: 42px;
    font-weight: 800;
    color: var(--graphotos-text);
    line-height: 1;
}
.gp-period {
    font-size: 14px;
    color: var(--graphotos-text-light);
}
.gp-billed-yearly {
    display: block;
    font-size: 12px;
    color: var(--graphotos-text-light);
    margin-top: 4px;
}

/* Feature list */
.gp-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}
.gp-plan-features li {
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    color: var(--graphotos-text);
}
.gp-plan-features li:last-child {
    border-bottom: none;
}
.gp-feature-highlight {
    font-weight: 600;
}
.gp-check {
    color: #22c55e;
    font-weight: 700;
    margin-right: 8px;
}
.gp-cross {
    color: #cbd5e1;
    margin-right: 8px;
}
.gp-plan-features s {
    color: #cbd5e1;
    text-decoration: line-through;
}

/* Action button */
.gp-plan-action {
    margin-top: auto;
}
.gp-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background .2s, transform .15s;
}
.gp-btn:hover {
    transform: scale(1.02);
}
.gp-btn-subscribe {
    background: var(--plan-color);
    color: #fff;
}
.gp-btn-subscribe:hover {
    filter: brightness(1.1);
    color: #fff;
}
.gp-btn-current {
    background: #f1f5f9;
    color: var(--graphotos-text-light);
    cursor: default;
}

/* ── Pay as you go ── */
.gp-payg-section {
    text-align: center;
    margin-bottom: 60px;
}
.gp-payg-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
}
.gp-payg-section > p {
    color: var(--graphotos-text-light);
    margin: 0 0 28px;
    font-size: 15px;
}
.gp-credit-packs {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.gp-credit-pack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 2px solid var(--graphotos-border);
    border-radius: 12px;
    padding: 20px 28px;
    min-width: 140px;
    transition: border-color .2s, box-shadow .2s;
}
.gp-credit-pack:hover {
    border-color: var(--graphotos-primary);
    box-shadow: 0 4px 16px rgba(37,99,235,0.12);
}
.gp-pack-credits {
    font-size: 32px;
    font-weight: 800;
    color: var(--graphotos-primary);
}
.gp-pack-label {
    font-size: 13px;
    color: var(--graphotos-text-light);
}
.gp-pack-save {
    background: #dcfce7;
    color: #16a34a;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
}
.gp-pack-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--graphotos-text);
}
.gp-btn-credit {
    background: var(--graphotos-primary);
    color: #fff !important;
    padding: 8px 24px;
    font-size: 13px;
    border-radius: 8px;
    text-decoration: none;
    width: auto;
}
.gp-btn-credit:hover {
    background: var(--graphotos-primary-dark);
    color: #fff !important;
}

/* ── Comparison table ── */
.gp-compare-section {
    margin-bottom: 40px;
}
.gp-compare-section h3 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px;
}
.gp-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.gp-compare-table th,
.gp-compare-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid var(--graphotos-border);
}
.gp-compare-table th:first-child,
.gp-compare-table td:first-child {
    text-align: left;
    font-weight: 600;
}
.gp-compare-table thead th {
    font-size: 15px;
    font-weight: 700;
    background: var(--graphotos-bg);
    border-bottom: 2px solid var(--graphotos-border);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .gp-plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .gp-plans-grid {
        grid-template-columns: 1fr;
    }
    .gp-pricing-header h2 {
        font-size: 28px;
    }
    .gp-compare-table {
        font-size: 12px;
    }
    .gp-compare-table th,
    .gp-compare-table td {
        padding: 8px;
    }
}

/* ===========================================
   GRAPHOTOS STREAMING THEME REFRESH
   =========================================== */

.graphotos-contributor-area {
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: calc(100vh - 32px) !important;
    grid-template-columns: 280px minmax(0, 1fr) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(220, 38, 38, 0.16), transparent 30%),
        linear-gradient(180deg, #07111f 0%, #0b1220 38%, #0f172a 100%) !important;
    color: #e5edf7 !important;
}

.graphotos-contributor-sidebar {
    background: rgba(3, 7, 18, 0.86) !important;
    border-right: 1px solid rgba(148, 163, 184, 0.14) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    padding: 28px 22px !important;
}

.profile-avatar img {
    border-radius: 18px !important;
    border: 2px solid rgba(59, 130, 246, 0.35) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.36) !important;
}

.profile-links a {
    color: #93c5fd !important;
}

.contributor-admin-btn {
    background: linear-gradient(135deg, #dc2626 0%, #f97316 100%) !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.24) !important;
}

.contributor-nav > ul > li > a {
    color: #dbe7f5 !important;
    border-radius: 14px !important;
    padding: 13px 14px !important;
}

.contributor-nav > ul > li > a:hover,
.contributor-nav .submenu a:hover {
    background: rgba(148, 163, 184, 0.12) !important;
    color: #fff !important;
}

.contributor-nav > ul > li.active > a,
.filter-tab.active,
.toggle-btn:first-child,
.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
    color: #fff !important;
}

.contributor-nav .submenu a {
    color: #93a4bb !important;
}

.nav-divider {
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.28), transparent) !important;
}

.graphotos-contributor-main {
    background: transparent !important;
    padding: clamp(24px, 3vw, 42px) !important;
    color: #e5edf7 !important;
}

.graphotos-contributor-main h1,
.graphotos-contributor-main h2,
.graphotos-contributor-main h3,
.graphotos-contributor-main h4,
.graphotos-contributor-main label,
.graphotos-contributor-main strong,
.graphotos-contributor-main th,
.graphotos-contributor-main td,
.graphotos-contributor-main p,
.graphotos-contributor-main li,
.graphotos-contributor-main span,
.graphotos-contributor-main a {
    color: inherit;
}

.dashboard-stats-grid,
.dashboard-balance-row {
    gap: 22px !important;
}

.stat-card,
.dashboard-recent-section,
.balance-card,
.commission-info,
.graphotos-upload-info,
.graphotos-dropzone,
.graphotos-notice,
.graphotos-document-preview-container,
.contributor-table,
.graphotos-contributor-main .graphotos-library-empty,
.graphotos-contributor-main .graphotos-playlist-panel,
.graphotos-contributor-main .graphotos-playlist-card,
.graphotos-contributor-main .graphotos-audio-card,
.graphotos-contributor-main .graphotos-dl-card,
.graphotos-contributor-main .graphotos-dl-empty {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(9, 15, 28, 0.98) 100%) !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.34) !important;
}

.stat-content .stat-value,
.balance-card .balance-amount,
.graphotos-contributor-main .stat-value,
.graphotos-contributor-main .price-value {
    color: #f8fbff !important;
}

.stat-content .stat-label,
.balance-card .balance-info,
.balance-card h3,
.graphotos-contributor-main .graphotos-library-sub,
.graphotos-contributor-main .graphotos-meta-line,
.graphotos-contributor-main .dl-card-date,
.graphotos-contributor-main .dl-card-key,
.graphotos-contributor-main .results-count,
.graphotos-contributor-main .empty-message,
.graphotos-contributor-main .price-label,
.graphotos-contributor-main .license-info small,
.graphotos-contributor-main .graphotos-notice {
    color: #9fb0c6 !important;
}

.stat-icon.blue,
.stat-icon.orange,
.stat-icon.green,
.stat-icon.purple {
    background: rgba(59, 130, 246, 0.12) !important;
}

.contributor-table thead,
.contributor-table thead tr,
.contributor-table th {
    background: rgba(30, 41, 59, 0.92) !important;
    color: #dbe7f5 !important;
}

.contributor-table td {
    background: transparent !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1) !important;
    color: #dbe7f5 !important;
}

.contributor-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03) !important;
}

.form-group input,
.form-group select,
.form-group textarea,
.graphotos-contributor-main .graphotos-playlist-select,
.graphotos-contributor-main .graphotos-field input,
.graphotos-contributor-main .graphotos-field select,
.graphotos-contributor-main .graphotos-field textarea {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    color: #eff6ff !important;
    border-radius: 14px !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.graphotos-contributor-main .graphotos-field input:focus,
.graphotos-contributor-main .graphotos-field select:focus,
.graphotos-contributor-main .graphotos-field textarea:focus {
    border-color: rgba(96, 165, 250, 0.7) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18) !important;
}

.graphotos-contributor-main .status-badge.status-publish,
.graphotos-contributor-main .status-badge.status-approved,
.graphotos-contributor-main .status-badge.status-completed,
.graphotos-contributor-main .status-badge.status-paid,
.graphotos-contributor-main .status-completed,
.graphotos-contributor-main .status-paid {
    background: rgba(22, 163, 74, 0.18) !important;
    color: #86efac !important;
}

.graphotos-contributor-main .status-badge.status-pending,
.graphotos-contributor-main .status-badge.status-pending_review,
.graphotos-contributor-main .status-pending,
.graphotos-contributor-main .status-processing {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #fcd34d !important;
}

.graphotos-contributor-main .status-badge.status-rejected,
.graphotos-contributor-main .status-badge.status-failed,
.graphotos-contributor-main .status-failed,
.graphotos-contributor-main .status-rejected {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #fca5a5 !important;
}

@media (max-width: 1100px) {
    .graphotos-contributor-area {
        grid-template-columns: 1fr !important;
    }

    .graphotos-contributor-sidebar {
        border-right: 0 !important;
        border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
    }
}
