:root {
    --social-primary: #FF8359;
    --social-secondary: #FF6B35;
    --social-accent: #FF9F7F;
    --social-message-sent: #FFE4D1;
    --social-bg: #FFFEFE;
    --social-surface: #FFFFFF;
    --social-text: #262626;
    --social-text-secondary: #737373;
    --social-border: #DBDBDB;
    --social-like: #FF8359;
    --social-comment: #8E8E93;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--social-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Social Header */
.social-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--social-surface);
    border-bottom: 1px solid var(--social-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.social-header .logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--social-primary);
    text-decoration: none;
}

.social-header .nav {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.social-header .nav-item {
    color: var(--social-text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.social-header .nav-item:hover,
.social-header .nav-item.active {
    background: var(--social-primary);
    color: white;
}

.social-header .user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-header .notification-btn {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--social-text);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 8px;
}

.social-header .notification-btn:hover {
    background: var(--social-bg);
    color: var(--social-primary);
}

.social-header .notification-btn i {
    font-size: 18px;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--social-primary);
    color: white;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--social-surface);
}

.social-header .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--social-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

/* Main Content */
.social-main {
    margin-top: 60px;
    min-height: calc(100vh - 60px - 80px);
    padding: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Social Post Card */
.social-post {
    background: var(--social-surface);
    border: 1px solid var(--social-border);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.social-post-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
}

.social-post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--social-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.social-post-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.social-post-user {
    flex: 1;
}

.social-post-username {
    font-weight: 600;
    color: var(--social-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-post-username:hover {
    color: var(--social-primary);
}

.social-post-location {
    font-size: 12px;
    color: var(--social-text-secondary);
}

.social-post-pet-name {
    font-size: 14.3px;
    color: #FF8359;
    font-weight: 500;
    margin-top: 1px;
}

.social-post-image {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-post-image.loaded {
    opacity: 1;
    transform: scale(1);
}

.profile-post-image {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.profile-post-image.loaded {
    opacity: 1;
    transform: scale(1);
}

.explore-image {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.explore-image.loaded {
    opacity: 1;
    transform: scale(1);
}

.social-post-actions {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.like-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.like-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--social-text);
}

.comment-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--social-text);
}

.share-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--social-text);
}

.social-post-action {
    background: none;
    font-size: 24px;
    color: #FF8359;
    cursor: pointer;
    padding: 0;
    border: none;
    outline: none;
    border-radius: 0;
    transition: all 0.2s ease;
}

.social-post-action:hover {
    background: rgba(255, 131, 89, 0.1);
}

.social-post-action.liked {
    background: none;
    color: #FF8359;
}

.social-post-likes {
    padding: 0 16px;
    font-weight: 600;
    color: var(--social-text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-post-likes .like-count {
    font-size: 14px;
}

.social-post-caption {
    padding: 0 16px;
    color: var(--social-text);
    margin-bottom: 4px;
}

.social-post-caption .username {
    font-weight: 600;
    margin-right: 8px;
}

.social-post-comments {
    padding: 0 16px 16px;
    color: var(--social-text-secondary);
    font-size: 14px;
    cursor: pointer;
}

.social-post-time {
    padding: 0 16px 16px;
    color: var(--social-text-secondary);
    font-size: 12px;
}

/* Comment Section */
.social-comments {
    border-top: 1px solid var(--social-border);
    padding: 16px;
}

.social-comment {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.social-comment-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--social-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.social-comment-content {
    flex: 1;
}

.social-comment-username {
    font-weight: 600;
    color: var(--social-text);
    text-decoration: none;
    margin-right: 8px;
}

.social-comment-text {
    color: var(--social-text);
}

.social-comment-time {
    font-size: 12px;
    color: var(--social-text-secondary);
    margin-top: 4px;
}

/* Comment Input */
.social-comment-input {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid var(--social-border);
}

.social-comment-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 0;
    font-size: 14px;
}

.social-comment-input button {
    background: none;
    border: none;
    color: var(--social-primary);
    font-weight: 600;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.social-comment-input button:enabled {
    opacity: 1;
}

/* Create Post Modal */
.create-post-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.create-post-modal.show {
    display: flex;
}

.create-post-content {
    background: var(--social-surface);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.create-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--social-border);
}

.create-post-title {
    font-weight: 600;
    color: var(--social-text);
}

.create-post-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--social-text);
    cursor: pointer;
}

.create-post-body {
    padding: 20px;
}

.create-post-image-upload {
    border: 2px dashed var(--social-border);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-post-image-upload:hover {
    border-color: var(--social-primary);
}

.create-post-image-preview {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.create-post-caption {
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    padding: 12px;
    border-radius: 8px;
    background: var(--social-bg);
    font-family: inherit;
    font-size: 14px;
    min-height: 100px;
}

.create-post-submit {
    width: 100%;
    background: var(--social-primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.create-post-submit:hover {
    background: var(--social-secondary);
}

.create-post-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Bottom Navigation */
.social-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55px;
    background: var(--social-surface);
    border-top: 1px solid var(--social-border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,.1);
    width: 100%;
    box-sizing: border-box;
    min-height: 55px;
}

.social-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: var(--social-text-secondary);
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 8px;
    flex: 1;
    min-height: 49px;
    max-width: 56px;
}

.social-bottom-nav-item:hover,
.social-bottom-nav-item.active {
    color: var(--social-primary);
    background: rgba(255,131,89,.1);
}

.mobile-notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--social-primary);
    color: white;
    border-radius: 50%;
    width: 6px;
    height: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--social-surface);
}

.social-bottom-nav-icon {
    font-size: 1.35rem;
}

/* Responsive */
@media (max-width: 768px) {
    .social-header .nav {
        display: none;
    }

    .social-header .user-menu {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .social-header .user-menu .user-avatar {
        display: none;
    }

    .social-header .notification-btn {
        display: flex;
        margin-right: 0;
    }

    .social-header {
        justify-content: space-between;
        padding: 0 16px;
    }

    .social-header .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 20px;
    }

    .social-back-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--social-text);
        font-size: 12px;
        gap: 2px;
    }

    .social-back-btn i {
        font-size: 18px;
        color: var(--social-primary);
    }

    .social-main {
        padding: 10px;
        margin-bottom: 55px;
    }

    .social-post {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--social-text-secondary);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--social-border);
    border-top: 2px solid var(--social-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--social-text-secondary);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--social-border);
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--social-text);
}

.empty-state-text {
    font-size: 14px;
    line-height: 1.5;
}

/* Camera Modal */
.camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 3000;
    display: none;
}

.camera-modal.show {
    display: block;
}

.camera-content {
    background: #000;
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.camera-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.camera-title {
    font-weight: 600;
    color: white;
    font-size: 18px;
}

.camera-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.camera-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.camera-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

#cameraVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

#cameraCanvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#capturedImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

#capturedVideo {
    width: 100%;
    height: calc(100% - 120px);
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.camera-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    z-index: 10;
}

.camera-capture-btn, .camera-retake-btn, .camera-use-btn, .camera-record-btn, .camera-stop-btn {
    background: var(--social-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    text-align: center;
}

.capture-button-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.capture-progress-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.1s ease;
    pointer-events: none;
    width: 110px;
    height: 110px;
}

.capture-progress-ring.visible {
    opacity: 1;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.1s ease;
}

.progress-ring-progress {
    transition: stroke-dashoffset 0.05s ease;
    stroke-linecap: round;
    filter: drop-shadow(0 0 3px rgba(255, 131, 89, 0.5));
}

.camera-capture-btn {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    padding: 0;
    font-size: 36px;
    min-width: auto;
    position: relative;
    z-index: 2;
    transition: all 0.2s ease;
    border: 4px solid #fff;
    background: var(--social-primary);
}

.camera-capture-btn:active {
    transform: scale(0.95);
}

.camera-capture-btn.recording {
    background: var(--social-primary);
    animation: pulse 0.5s infinite;
}

.recording {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.camera-capture-btn:hover, .camera-retake-btn:hover, .camera-use-btn:hover {
    background: var(--social-secondary);
}

.camera-capture-btn:disabled, .camera-retake-btn:disabled, .camera-use-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.camera-retake-btn, .camera-use-btn {
    background: #fff;
    color: #495057;
    border: 1px solid #FF8359;
    border-radius: 16px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: none;
}

.camera-retake-btn:hover, .camera-use-btn:hover {
    background: #fff8f5;
    color: #495057;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 131, 89, 0.15);
}

/* Prevent iOS Zoom on Input Focus */
input, textarea, select {
    font-size: 16px !important;
    transform: scale(1);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent zoom on focus for mobile devices */
@media screen and (max-width: 768px) {
    input, textarea, select {
        font-size: 16px !important;
    }
    .social-comment-input input,
    .comment-input {
        font-size: 16px !important;
        -webkit-user-select: text;
        user-select: text;
    }
}

/* Instagram-style Create Options Modal */
.create-options-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 3000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.create-options-modal.show {
    display: flex;
}

.create-options-content {
    background: var(--social-surface);
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 500px;
    animation: slideUpModal 0.3s ease;
}

.create-options-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--social-border);
}

.create-options-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--social-text);
    margin: 0;
}

.create-options-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--social-text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.create-options-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.create-options-body {
    padding: 20px;
}

.create-option-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px;
    background: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.create-option-btn:hover {
    background: var(--social-bg);
}

.option-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--social-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.option-text {
    flex: 1;
    text-align: left;
}

.option-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--social-text);
    margin-bottom: 4px;
}

.option-subtitle {
    font-size: 14px;
    color: var(--social-text-secondary);
}

/* Instagram-style Post Edit Modal */
.post-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--social-surface);
    z-index: 4000;
    display: none;
    flex-direction: column;
}

.post-edit-modal.show {
    display: flex;
}

.post-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--social-border);
    background: var(--social-surface);
}

.post-edit-back {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--social-text);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.post-edit-back:hover {
    background: rgba(0, 0, 0, 0.05);
}

.post-edit-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--social-text);
    margin: 0;
}

.post-edit-share {
    background: var(--social-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.5;
}

.post-edit-share:enabled {
    opacity: 1;
}

.post-edit-share:enabled:hover {
    background: var(--social-secondary);
}

.post-edit-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.post-edit-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    min-height: 300px;
    position: relative;
}

.post-edit-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.post-edit-video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.post-edit-form {
    background: var(--social-surface);
    padding: 16px;
    border-top: 1px solid var(--social-border);
}

.post-edit-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.post-edit-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--social-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.post-edit-username {
    font-weight: 600;
    color: var(--social-text);
}

.post-edit-caption {
    width: 100%;
    border: none;
    outline: none;
    padding: 12px 0;
    font-size: 16px;
    font-family: inherit;
    color: var(--social-text);
    background: transparent;
    resize: none;
    min-height: 80px;
    max-height: 120px;
}

.post-edit-caption::placeholder {
    color: var(--social-text-secondary);
}

.post-edit-location {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--social-border);
}

.post-edit-location i {
    color: var(--social-text-secondary);
}

.post-edit-location-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 0;
    font-size: 14px;
    color: var(--social-text);
    background: transparent;
}

.post-edit-location-input::placeholder {
    color: var(--social-text-secondary);
}

/* Pet Selection Styles */
.post-edit-pet-selection {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--social-border);
}

.pet-selection-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--social-text);
}

.pet-selection-header i {
    color: var(--social-primary);
}

.pet-selection-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pet-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    background: none;
    border: 1px solid var(--social-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.pet-option:hover {
    background: var(--social-bg);
    border-color: var(--social-primary);
}

.pet-option.selected {
    background: var(--social-primary);
    border-color: var(--social-primary);
    color: white;
}

.pet-option-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--social-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.pet-option.selected .pet-option-avatar {
    background: white;
    color: var(--social-primary);
}

.pet-option-info {
    flex: 1;
}

.pet-option-name {
    font-weight: 600;
    font-size: 14px;
}

.pet-option-breed {
    font-size: 12px;
    color: var(--social-text-secondary);
    margin-top: 2px;
}

.pet-option.selected .pet-option-breed {
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile Responsive Pet Selection */
@media (max-width: 768px) {
    .post-edit-pet-selection {
        margin-top: 12px;
        padding-top: 12px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--social-surface);
        border-top: 1px solid var(--social-border);
        border-bottom: none;
        z-index: 1001;
        max-height: 40vh;
        overflow-y: auto;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    .pet-selection-header {
        padding: 16px 20px 12px 20px;
        background: var(--social-surface);
        border-bottom: 1px solid var(--social-border);
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .pet-selection-options {
        max-height: calc(40vh - 80px);
        overflow-y: auto;
        padding: 0 20px 20px 20px;
    }

    .pet-option {
        padding: 10px;
    }

    .pet-option-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .pet-option-name {
        font-size: 13px;
    }

    .pet-option-breed {
        font-size: 11px;
    }
}

/* Animations */
@keyframes slideUpModal {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-dialog {
        padding: 0;
        display: flex;
        align-items: center;
        min-height: 100vh;
        width: 100%;
        max-width: 100%;
    }

    .modal-content {
        max-height: 85vh;
        margin: 0;
        width: 100%;
        border-radius: 0;
    }

    .social-login-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .social-login-buttons .form-group {
        width: 100%;
    }

    .create-options-content {
        border-radius: 16px 16px 0 0;
    }

    .camera-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .camera-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    #cameraVideo, #capturedImage {
        height: 100% !important;
        min-height: auto;
    }
    
    #capturedVideo {
        height: calc(100% - 120px) !important;
        min-height: auto;
    }

    .post-edit-modal {
        z-index: 4000;
        background: var(--social-surface);
    }

    .post-edit-body {
        flex-direction: column;
        height: 100vh;
        overflow: hidden;
    }

    .post-edit-image-container {
        min-height: 50vh;
        flex: 1;
        background: #000;
    }

    .post-edit-form {
        flex-shrink: 0;
        padding: 20px;
        padding-bottom: calc(40vh + 20px);
        overflow-y: auto;
        max-height: calc(100vh - 50vh);
    }

    .post-edit-caption {
        font-size: 16px !important;
        min-height: 100px;
    }

    .post-edit-location-input {
        font-size: 16px !important;
    }

    .camera-controls {
        flex-direction: row;
        gap: 20px;
        padding: 30px 20px;
        justify-content: center;
        align-items: center;
    }

    .camera-retake-btn, .camera-use-btn {
        width: auto;
        max-width: none;
        min-width: 120px;
        margin: 0 10px;
    }

    .camera-capture-btn {
        width: 90px;
        height: 90px;
        font-size: 36px;
    }

    .capture-progress-ring {
        width: 110px;
        height: 110px;
    }
}

/* Login Modal Styles */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.custom-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-title {
    font-weight: 600;
    color: #262626;
}

.theme-btn-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #737373;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.theme-btn-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.modal-body {
    padding: 20px;
}

.theme-form .form-group {
    margin-bottom: 16px;
}

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

.form-control {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #FF8359;
    box-shadow: 0 0 0 3px rgba(255, 131, 89, 0.1);
}

.form-control.has-error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-control.has-success {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.field-error.show {
    display: block;
}

.field-error.hide {
    display: none;
}

.formMessage {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.terms-notice {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.4;
}

.terms-text a {
    color: #FF8359;
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

.theme-btn {
    background: var(--social-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.theme-btn:hover {
    background: var(--social-secondary);
    color: white;
}

.theme-btn.full-width {
    width: 100%;
}

.theme-btn.variable-btn {
    background: white;
    color: var(--social-primary);
    border: 1px solid var(--social-primary);
    width: 100%;
    margin-bottom: 8px;
}

.theme-btn.variable-btn:hover {
    background: var(--social-primary);
    color: white;
}

.social-login-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.social-login-buttons .form-group {
    flex: 1;
    margin-bottom: 0;
}

.radius-me {
    border-radius: 8px;
}

.hover-theme {
    background: none;
    border: none;
    color: var(--social-primary);
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}

.hover-theme:hover {
    color: var(--social-secondary);
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.formMessage {
    margin-bottom: 16px;
}

.modal-open {
    overflow: hidden;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 4999;
}

/* Loading Animation Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
}

.loading-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-paws {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.loading-paw {
    font-size: 2.5rem;
    color: #FF6B35;
    animation: pawBounce 1.5s infinite ease-in-out;
}

.loading-paw:nth-child(1) { animation-delay: 0s; }
.loading-paw:nth-child(2) { animation-delay: 0.2s; }
.loading-paw:nth-child(3) { animation-delay: 0.4s; }
.loading-paw:nth-child(4) { animation-delay: 0.6s; }

@keyframes pawBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-15px) scale(1.1);
        opacity: 1;
    }
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
    animation: textPulse 2s infinite ease-in-out;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF6B35, #FF8359);
    border-radius: 2px;
    animation: progressMove 2s infinite ease-in-out;
}

@keyframes progressMove {
    0% {
        width: 0%;
        margin-left: 0%;
    }
    50% {
        width: 100%;
        margin-left: 0%;
    }
    100% {
        width: 0%;
        margin-left: 100%;
    }
}

/* Loading overlay fade in/out animations */
.loading-overlay.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.loading-overlay.fade-out {
    animation: fadeOut 0.3s ease-in-out;
}

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

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

/* Mobile responsive loading */
@media (max-width: 768px) {
    .loading-overlay {
        align-items: center;
        justify-content: center;
    }
    
    .loading-paws {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .loading-paw {
        font-size: 2rem;
    }
    
    .loading-text {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .loading-progress {
        width: 180px;
        height: 3px;
    }
}

@media (max-width: 480px) {
    .loading-overlay {
        align-items: center;
        justify-content: center;
    }
    
    .loading-paws {
        gap: 10px;
        margin-bottom: 18px;
    }
    
    .loading-paw {
        font-size: 1.8rem;
    }
    
    .loading-text {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .loading-progress {
        width: 160px;
        height: 3px;
    }
}
