/* Modern Design System for EcoPlus Industry */
:root {
    --primary: #15803d; /* Forest Green / Safety & Eco */
    --primary-light: #22c55e;
    --primary-dark: #166534;
    --accent: #f59e0b; /* Safety Amber / Gold */
    --dark: #0f172a;
    --dark-surface: #1e293b;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #15803d, #14532d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* TOP BAR - GOLDEN SHIMMER & FLOWING BEAM */
.top-bar {
    position: relative;
    background-color: #0b1329;
    color: #94a3b8;
    font-size: 0.8125rem;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

/* 탑바 전체에 사선으로 부드럽게 훑고 지나가는 은은한 골드빛 쉬머 */
.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 65%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(250, 204, 21, 0.02) 20%,
        rgba(251, 191, 36, 0.14) 50%,
        rgba(254, 240, 138, 0.22) 55%,
        rgba(251, 191, 36, 0.14) 60%,
        rgba(250, 204, 21, 0.02) 80%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: topBarShimmer 3.8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* 탑바 하단 경계선에 촤르르 흐르는 선명한 골드 네온 레이저 빔 */
.top-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 45%;
    height: 2.5px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(245, 158, 11, 0) 10%,
        rgba(251, 191, 36, 0.5) 30%,
        #facc15 50%,
        #ffffff 65%,
        #fef08a 75%,
        #f59e0b 90%,
        transparent 100%
    );
    box-shadow: 0 0 12px 1.5px rgba(250, 204, 21, 0.95), 0 0 5px #fef08a;
    animation: goldLineFlow 3.8s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes topBarShimmer {
    0% {
        left: -120%;
    }
    45%, 100% {
        left: 200%;
    }
}

@keyframes goldLineFlow {
    0% {
        left: -50%;
    }
    45%, 100% {
        left: 150%;
    }
}

.top-bar-inner {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span.sep {
    margin: 0 10px;
    opacity: 0.3;
}

.top-contacts a {
    color: #cbd5e1;
    margin-left: 16px;
    transition: color 0.2s ease;
}

.top-contacts a:hover {
    color: #fef08a;
}

.top-contacts a strong {
    color: #4ade80;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.mark-eco {
    color: #15803d;
}

.mark-p {
    color: #0284c7;
    font-size: 1.7rem;
}

.mark-plus {
    color: #f59e0b;
    font-size: 1.3rem;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.2px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: #334155;
    position: relative;
    padding: 6px 0;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.25s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-toggle span {
    width: 24px;
    height: 2.5px;
    background-color: var(--dark);
    border-radius: 2px;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #091322 0%, #0d2238 50%, #083325 100%);
    color: var(--white);
    padding: 90px 0 110px;
    overflow: hidden;
}

/* Hero Video Background */
.hero-video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9) contrast(1.05);
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9, 19, 34, 0.45) 0%, rgba(13, 34, 56, 0.32) 50%, rgba(8, 51, 37, 0.38) 100%);
    pointer-events: none;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.15), transparent 40%),
                radial-gradient(circle at 10% 80%, rgba(2, 132, 199, 0.12), transparent 45%);
    pointer-events: none;
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    color: #86efac;
    margin-bottom: 24px;
    backdrop-filter: blur(6px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

.highlight-text {
    background: linear-gradient(90deg, #4ade80, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: #e2e8f0;
    max-width: 680px;
    line-height: 1.7;
    margin-bottom: 36px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 24px 32px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #4ade80;
}

.stat-number .unit {
    font-size: 1.2rem;
    color: var(--white);
    margin-left: 2px;
}

.stat-label {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 4px;
}

.stat-sep {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.15);
}

/* SECTION COMMONS */
.section {
    padding: 90px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--dark);
    color: var(--white);
}

.section-header {
    margin-bottom: 50px;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.gold-text {
    color: var(--accent) !important;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--dark);
    margin-bottom: 12px;
}

.text-white {
    color: var(--white) !important;
}

.title-bar {
    width: 48px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin-bottom: 16px;
}

.title-bar.center {
    margin-left: auto;
    margin-right: auto;
}

.title-bar.gold {
    background: var(--accent);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.about-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 38px 30px;
    text-align: left;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.about-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669);
    opacity: 0.8;
    transition: height 0.2s ease;
}

.about-card:nth-child(2)::before {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.about-card:nth-child(3)::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
    border-color: #cbd5e1;
}

.about-card:hover::before {
    height: 6px;
}

.about-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.about-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
}

.about-card:nth-child(2) .about-icon-box {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.about-card:nth-child(3) .about-icon-box {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
}

.about-card-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #e2e8f0;
    line-height: 1;
}

.about-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.about-card p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 20px;
}

.about-card-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.about-tag-pill {
    font-size: 0.74rem;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
}

.btn-edit-about {
    display: none !important;
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    background: #2563eb;
    color: white;
    border: none;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

body.is-admin .btn-edit-about {
    display: inline-block !important;
}

.btn-edit-about:hover {
    background: #1d4ed8;
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.15);
    border-color: #93c5fd;
}

.service-img-wrap {
    height: 190px;
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-img-wrap img {
    transform: scale(1.08);
}

.service-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 16px;
    pointer-events: none;
}

.service-tag {
    align-self: flex-start;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #38bdf8;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.8px;
}

.service-tag.hot {
    background: rgba(220, 38, 38, 0.85);
    color: #ffffff;
    border-color: rgba(248, 113, 113, 0.5);
}

.btn-edit-service {
    display: none !important;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 15;
    background: rgba(37, 99, 235, 0.95);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

body.is-admin .btn-edit-service {
    display: inline-block !important;
}

.btn-edit-service:hover {
    background: #1d4ed8;
    transform: scale(1.06);
}

.service-body {
    padding: 24px 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-body h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-list {
    margin-bottom: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-list li {
    font-size: 0.88rem;
    color: #475569;
    padding: 4px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.45;
}

.service-list li::before {
    content: "✓";
    color: #10b981;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.service-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    margin-top: auto;
}

.service-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

.highlight-card {
    border: 2px solid #38bdf8;
    background: linear-gradient(to bottom, #ffffff 0%, #f0f9ff 100%);
}

.service-note {
    font-size: 0.86rem;
    color: #0284c7;
    background: #e0f2fe;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* PORTFOLIO */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-item {
    transition: var(--transition);
}

.portfolio-box {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 240px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.portfolio-box.box-1 { background: linear-gradient(135deg, #065f46, #022c22); }
.portfolio-box.box-2 { background: linear-gradient(135deg, #0369a1, #082f49); }
.portfolio-box.box-3 { background: linear-gradient(135deg, #9a3412, #431407); }
.portfolio-box.box-4 { background: linear-gradient(135deg, #6d28d9, #2e1065); }
.portfolio-box.box-5 { background: linear-gradient(135deg, #15803d, #14532d); }
.portfolio-box.box-6 { background: linear-gradient(135deg, #334155, #0f172a); }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: var(--white);
    transition: var(--transition);
}

.portfolio-box:hover .portfolio-overlay {
    background: rgba(15, 23, 42, 0.55);
}

.pf-cat {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4ade80;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.portfolio-overlay h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.portfolio-overlay p {
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* ADVANTAGES */
.adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.adv-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    transition: var(--transition);
}

.adv-item:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--accent);
    transform: translateY(-4px);
}

.adv-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 12px;
}

.adv-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.adv-item p {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* QUOTE SECTION */
.quote-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.quote-info-col {
    background: linear-gradient(135deg, #091322 0%, #0d2238 100%);
    color: var(--white);
    padding: 48px;
    display: flex;
    flex-direction: column;
}

.quote-info-col .section-title {
    color: var(--white);
}

.quote-intro {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 36px;
    line-height: 1.6;
}

.direct-contact-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: auto;
}

.dcc-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dcc-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.dcc-item strong {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
}

.dcc-item a, .dcc-item span {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
}

.dcc-item a:hover {
    color: #4ade80;
}

.quote-form-col {
    padding: 48px;
    background: var(--white);
}

.form-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

.form-group .req {
    color: #ef4444;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: #f8fafc;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.form-agree {
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* LOCATION */
.location-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    overflow: hidden;
}

.location-info {
    padding: 40px;
}

.location-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.loc-sub {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 24px;
}

.loc-list {
    margin-bottom: 28px;
}

.loc-list li {
    font-size: 0.925rem;
    padding: 6px 0;
    color: #475569;
}

.loc-list strong {
    color: var(--dark);
    display: inline-block;
    width: 90px;
}

.loc-btns {
    display: flex;
    gap: 12px;
}

.loc-btns .btn-outline {
    background: transparent;
    color: var(--dark);
    border-color: var(--border);
}

.loc-btns .btn-outline:hover {
    background: #f1f5f9;
}

.map-placeholder {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding: 30px;
    text-align: center;
}

.map-pin {
    font-size: 3rem;
    margin-bottom: 12px;
}

.map-placeholder h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.map-placeholder p {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* FOOTER */
.site-footer {
    background: #091322;
    color: #94a3b8;
    padding: 60px 0 30px;
    font-size: 0.875rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 14px;
}

.footer-slogan {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.footer-meta {
    line-height: 1.8;
    color: #64748b;
    font-size: 0.8125rem;
}

.footer-meta span {
    margin-right: 12px;
}

.footer-col-nav h4, .footer-col-contact h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col-nav ul li {
    margin-bottom: 8px;
}

.footer-col-nav a:hover {
    color: #4ade80;
}

.footer-phone {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #4ade80;
    margin-bottom: 4px;
}

.footer-mobile {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}

.footer-links a {
    margin-left: 16px;
}

/* FLOATING QUICK BAR */
.floating-quick {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.quick-btn:hover {
    transform: scale(1.08);
}

.quick-btn .icon {
    font-size: 1.2rem;
    line-height: 1;
}

.quick-btn .label {
    font-size: 0.65rem;
    font-weight: 700;
    margin-top: 2px;
}

.phone-btn {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.quote-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.top-btn {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    display: none;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 36px 32px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.modal-icon {
    font-size: 3rem;
    margin-bottom: 14px;
}

.modal-box h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.modal-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .hero-title { font-size: 2.4rem; }
    .about-grid, .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .adv-grid { grid-template-columns: repeat(2, 1fr); }
    .quote-wrapper, .location-card { grid-template-columns: 1fr; }
    .quote-info-col { padding: 36px; }
    .quote-form-col { padding: 36px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* 모바일 상단에도 다크 네이비 + 골드 빔 탑바 완벽 노출 */
    .top-bar { 
        display: block !important;
        padding: 7px 0;
        font-size: 0.76rem;
    }
    .top-bar-inner {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0 12px;
    }
    .top-bar .top-info {
        display: none; /* 긴 주소/이메일은 모바일에서 숨김 */
    }
    .top-bar .top-contacts {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 16px;
        width: 100%;
    }
    .top-bar .top-contacts a {
        margin-left: 0;
        font-size: 0.76rem;
        display: inline-flex;
        align-items: center;
        color: #e2e8f0;
        letter-spacing: -0.2px;
        text-decoration: none;
    }
    .top-bar .top-contacts a strong {
        color: #4ade80;
        font-weight: 700;
        margin-left: 2px;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 24px;
        box-shadow: var(--shadow-lg);
        display: none;
    }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; }
    .mobile-toggle { display: flex; }
    .header-actions .btn { display: none; }
    .hero-title { font-size: 1.9rem; }
    .hero-buttons { flex-direction: column; }
    .hero-stats-card { flex-direction: column; gap: 16px; }
    .stat-sep { display: none; }
    .about-grid, .services-grid, .portfolio-grid, .adv-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
}

/* ==========================================================================
   NO-ADMIN DIRECT PHOTO UPLOADER STYLES
   ========================================================================== */
.portfolio-controls-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 36px;
    background: #f8fafc;
    padding: 14px 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.portfolio-controls-wrap .portfolio-filter {
    margin-bottom: 0;
}

.btn-upload-trigger {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 50px;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.3s ease;
}

.btn-upload-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.btn-upload-trigger small {
    font-size: 0.75rem;
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Upload Modal Box */
.upload-modal-box {
    max-width: 620px;
    width: 92%;
    text-align: left;
    padding: 32px;
    max-height: 90vh;
    overflow-y: auto;
}

.upload-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.upload-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    background: #ecfdf5;
    color: #059669;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.upload-modal-header h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 6px;
}

.upload-modal-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

.upload-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.upload-modal-close:hover {
    background: #f1f5f9;
    color: var(--text-main);
}

/* Dropzone */
.upload-dropzone {
    border: 2px dashed #93c5fd;
    background: #f8fafc;
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.25s ease;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: #2563eb;
    background: #eff6ff;
}

.dropzone-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.dropzone-content h4 {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 6px;
}

.dropzone-content p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

.dropzone-preview {
    position: relative;
}

.dropzone-preview img {
    max-height: 220px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-change-photo {
    display: inline-block;
    margin-top: 12px;
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.upload-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 14px;
}

.upload-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.btn-upload-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* User Uploaded Card Styling */
.user-uploaded-item .portfolio-box {
    position: relative;
    border: 2px solid #60a5fa;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.15);
}

.user-upload-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(16, 185, 129, 0.95);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.btn-delete-item {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 5;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.btn-delete-item:hover {
    opacity: 1;
    transform: scale(1.1);
    background: #dc2626;
}

/* Upload Toast Notification */
.upload-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1e293b;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid #10b981;
}

.upload-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .portfolio-controls-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-upload-trigger {
        width: 100%;
        justify-content: center;
    }
    .upload-fields-grid {
        grid-template-columns: 1fr;
    }
}

/* PIN AUTH MODAL STYLES */
.pin-modal-box {
    max-width: 420px;
    width: 90%;
    text-align: center;
    padding: 36px 28px;
    border-radius: 20px;
}

.pin-icon {
    font-size: 3rem;
    margin-bottom: 14px;
}

.pin-modal-box h3 {
    font-size: 1.35rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.pin-modal-box p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 22px;
    line-height: 1.5;
}

.pin-input-wrap {
    margin-bottom: 22px;
}

.pin-input-wrap input {
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 8px;
    font-weight: 700;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
    transition: all 0.2s;
}

.pin-input-wrap input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    outline: none;
}

.pin-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.pin-actions .btn {
    flex: 1;
    padding: 12px;
}

.badge-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.btn-change-pin-trigger {
    background: none;
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-change-pin-trigger:hover {
    background: #f1f5f9;
    color: var(--primary);
    border-color: var(--primary);
}

/* =========================================================================
   PORTFOLIO HOVER & CLICKABLE CURSOR
   ========================================================================= */
.portfolio-item {
    cursor: pointer;
}

.portfolio-box {
    position: relative;
    cursor: pointer;
}

.portfolio-box:hover .portfolio-overlay {
    background: rgba(15, 23, 42, 0.7);
}

.portfolio-box .portfolio-overlay::before {
    content: "🔍 클릭하여 상세 보기 및 견적 문의";
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #f8fafc;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.portfolio-box:hover .portfolio-overlay::before {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   SECURITY: DELETE BUTTON ONLY VISIBLE IN ADMIN MODE!
   (일반 방문자에게는 쓰레기통 버튼이 100% 숨겨짐)
   ========================================================================= */
.btn-delete-item {
    display: none !important; /* 기본적으로 완벽 은닉 */
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: all 0.2s;
}

.btn-delete-item:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* 오직 관리자 PIN 인증이 완료된 상태(body.is-admin)에서만 쓰레기통 활성화 */
body.is-admin .btn-delete-item {
    display: flex !important;
}

/* =========================================================================
   PORTFOLIO DETAIL LIGHTBOX MODAL
   ========================================================================= */
.detail-modal-box {
    width: 90%;
    max-width: 860px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.detail-modal-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    max-height: 85vh;
}

.detail-modal-img-wrap {
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 380px;
}

.detail-modal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 520px;
    display: block;
}

.detail-modal-info {
    padding: 32px 28px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.detail-badge {
    align-self: flex-start;
    background: #dbeafe;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.detail-modal-info h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 10px;
}

.detail-desc-text {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    white-space: pre-line;
}

.detail-spec-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-row {
    display: flex;
    font-size: 0.88rem;
    gap: 8px;
}

.spec-label {
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}

.spec-val {
    color: #1e293b;
    font-weight: 500;
}

.detail-modal-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-modal-actions .btn {
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .detail-modal-grid {
        grid-template-columns: 1fr;
        max-height: 80vh;
        overflow-y: auto;
    }
    .detail-modal-img-wrap {
        min-height: 240px;
        max-height: 300px;
    }
    .detail-modal-info {
        padding: 20px 18px;
    }
    .detail-modal-info h3 {
        font-size: 1.25rem;
    }
}

/* =========================================================================
   ADMIN VISIBILITY CONTROLS
   (일반 방문자에게는 업로드 버튼과 로그아웃 버튼이 100% 숨겨짐)
   ========================================================================= */
#open-upload-modal,
#admin-logout-btn {
    display: none !important;
}

body.is-admin #open-upload-modal {
    display: inline-flex !important;
}

body.is-admin #admin-logout-btn {
    display: inline-block !important;
}

.btn-admin-logout {
    background: none;
    border: 1px solid #f87171;
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-admin-logout:hover {
    background: #fef2f2;
}

/* ADMIN TOP BAR (관리자 로그인 시 상단 고정 툴바) */
.admin-top-bar {
    display: none;
    background: #091322;
    color: #f8fafc;
    border-bottom: 2px solid #10b981;
    padding: 10px 0;
    font-size: 0.88rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

body.is-admin .admin-top-bar {
    display: block !important;
}

.admin-top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-bar-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-pulse {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.admin-bar-guide {
    color: #94a3b8;
    font-size: 0.82rem;
}

.admin-bar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-admin-action {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-admin-action:hover {
    background: #1d4ed8;
}

.btn-admin-logout-mini {
    background: #334155;
    color: #f1f5f9;
    border: 1px solid #475569;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-admin-logout-mini:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* Header Admin Link */
.header-admin-link {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.header-admin-link:hover {
    color: #2563eb;
    border-color: #2563eb;
    background: #eff6ff;
}

/* Prominent edit buttons on cards */
.btn-edit-about,
.btn-edit-service {
    display: none !important;
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 25;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transition: all 0.2s ease;
}

.btn-edit-about:hover,
.btn-edit-service:hover {
    transform: translateY(-2px);
    background: #1e40af;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
}

body.is-admin .btn-edit-about,
body.is-admin .btn-edit-service {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
}

/* Legal Modal & Agreement Styles */
.form-agree {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.agree-view-btn {
    background: none;
    border: none;
    color: #0284c7;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: underline;
}

.agree-view-btn:hover {
    color: #0369a1;
    background: #f0f9ff;
}

.legal-modal-box {
    max-width: 720px;
    width: 92%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    background: #ffffff;
    text-align: left;
}

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

.legal-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #0f172a;
    font-weight: 700;
}

.legal-modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 0.92rem;
    line-height: 1.75;
    color: #334155;
    max-height: 60vh;
}

.legal-modal-body h4 {
    margin: 20px 0 8px;
    font-size: 1.02rem;
    color: #1e293b;
    font-weight: 700;
}

.legal-modal-body h4:first-of-type {
    margin-top: 10px;
}

.legal-modal-body p {
    margin-bottom: 12px;
}

.legal-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.legal-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.legal-modal-footer .btn-outline {
    color: #0284c7;
    border-color: #cbd5e1;
    background: #ffffff;
    font-weight: 600;
}

.legal-modal-footer .btn-outline:hover {
    background: #f0f9ff;
    border-color: #0284c7;
    color: #0369a1;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
    margin-right: 12px;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}





