    /* body */
    body {
      font-family: "Segoe UI", sans-serif;
      margin: 0;
      background: #f8f8f8;
      color: #333;
    }

    /* 상단 헤더 [S] */
    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #ff7aa2;
      color: #fff;
      padding: 0.8rem 1rem;
      font-weight: bold;
    }

    .header-left {
      font-size: 1.2rem;
    }

    .header-right button {
      background: none;
      border: none;
      color: #fff;
      font-size: 1.4rem;
      margin-left: 0.8rem;
      cursor: pointer;
    }
    /* 상단 헤더 [E] */

    /* 로그인 [S] */
    .login-card-wrapper {
    display: flex;
    justify-content: center;
    /* align-items: center; */
    height: 100vh;
    }

    .login-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    }

    .login-card h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    text-align: center;
    }

    .login-card input,
    .login-card button {
    width: 100%;
    box-sizing: border-box; /* padding 포함해서 크기 계산 */
    }

    .login-card input {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 1rem;
    }

    .login-card button {
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: #4a90e2;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    }

    .login-card button:hover {
    background: #357abd;
    }

    .login-card .links {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #666;
    display: flex;
    justify-content: space-between;
    }

    .login-card .links a {
    text-decoration: none;
    color: #4a90e2;
    }

    .login-card .links a:hover {
    text-decoration: underline;
    }
    /* 로그인 [E] */

    /* 팝업 [S] */
    .alert-modal {
    display: none; /* 기본적으로 숨김 */
    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: 1000;
    }

    /* 팝업 본체 */
    .alert-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    width: 80%;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease;
    }

    /* 메시지 */
    .alert-content p {
    margin-bottom: 1rem;
    color: #333;
    font-weight: bold;
    }

    /* 버튼 */
    .alert-content button {
    background: #ff7aa2;
    border: none;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    }

    .alert-content button:hover {
    background: #ff4f82;
    }

    /* 애니메이션 */
    @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
    }
    /* 팝업 [E] */

    /* 데모 안내 팝업 [S] */
    .demo-alert-modal {
      display: flex;
      align-items: center;
      justify-content: center;
      position: fixed;
      z-index: 3000;
      left: 0; top: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.18);
    }

    .demo-alert-modal .alert-content {
      background: #fff;
      border-radius: 14px;
      padding: 22px 20px 16px 20px;
      box-shadow: 0 2px 16px rgba(0,0,0,0.10);
      min-width: 260px;
      max-width: 90vw;
      text-align: center;
    }

    .demo-alert-modal .alert-content p {
      font-size: 0.97rem;
      color: #555;
      margin-bottom: 18px;
      line-height: 1.7;
      white-space: pre-line; /* 줄바꿈 적용 */
      word-break: keep-all;
    }
    /* 데모 안내 팝업 [E] */

    /* 메인 - 목록 영역 [S] */
    .list {
      padding: 1rem;
      max-height: calc(100vh - 60px);
      overflow-y: auto;
    }

    .list-item {
      position: relative; /* 드롭다운 기준 */
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      padding: 1rem;
      display: flex;
      align-items: center;
      margin-bottom: 1rem;
    }

    .list .thumbnail {
      width: 60px;
      height: 60px;
      border-radius: 8px;
      margin-right: 1rem;
      flex-shrink: 0;
      background-color: #f0f0f0;
      background-size: 80% 80%;
      background-position: center;
      background-repeat: no-repeat;
      display: inline-block;
    }

    .form-item .thumbnail {
      width: 120px;
      height: 120px;
      border: 2px dashed #ccc;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      margin-top: 10px;
      background-size: 80% 80%;
      background-position: center;
      background-repeat: no-repeat;
    }

    .info {
      flex: 1;
    }

    .title {
      font-weight: bold;
      margin-bottom: 0.3rem;
    }

    .progress {
      position: relative; /* progress-text 위치 기준 */
      background: #eee;
      height: 8px;
      border-radius: 4px;
      overflow: visible; /* 텍스트가 밖으로 나가도 보이도록 */
      margin-top: 4px;
    }

    .progress-bar {
      height: 100%;
      width: 36%;
      background: #ff7aa2;
    }

    .progress-text {
      position: absolute;
      top: -18px; /* progress bar 위쪽 */
      right: 0;
      font-size: 12px;
      color: #888;
      font-weight: 500;
    }

    .menu-btn {
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: #888;
      margin-left: 0.5rem;
    }
    
    /* 드롭다운 메뉴 */
    .dropdown {
      position: absolute;
      top: 100%;   /* 기본은 버튼 아래 */
      right: 10px;
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      display: none;
      flex-direction: column;
      min-width: 120px;
      z-index: 10;
    }

    .dropdown button {
      background: none;
      border: none;
      text-align: left;
      padding: 0.7rem 1rem;
      cursor: pointer;
      font-size: 0.9rem;
      color: #333;
    }

    .dropdown button:hover {
      background: #f5f5f5;
    }

    .list-item.show .dropdown {
      display: flex;
    }
    
    /* ✅ hover 이벤트 추가 */
    .list-item:hover {
      background: #f0f8ff; /* 살짝 하이라이트 */
      box-shadow: 0 4px 8px rgba(0,0,0,0.15);
      transform: translateY(-2px);
    }

    .list-header {
      padding: 1rem 0 0 1rem;
    display: flex;
    align-items: center;
    }

    /* 토글 버튼 */
    .toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    margin-right: 8px;
    }

    .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    }

    .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 12px;
    transition: 0.3s;
    }

    .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    }

    input:checked + .slider {
    background-color: #ff7aa2;
    }

    input:checked + .slider:before {
    transform: translateX(18px);
    }

    .toggle-label {
    font-size: 14px;
    color: #333;
    }
    /* 메인 - 목록 영역 [E] */

    /* 네비게이션 영역 [S] */
    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 60px;
      background: #fff;
      display: flex;
      justify-content: space-around;
      align-items: center;
      box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
      border-top: 1px solid #ddd;
      z-index: 100;
    }

    .bottom-nav .nav-item {
      background: none;
      border: none;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #888;
      font-size: 14px;
      cursor: pointer;
      flex: 1;
      height: 100%;
      transition: color 0.2s;
    }

    .bottom-nav .nav-item span {
      display: block;
    }

    .bottom-nav .nav-item.active {
      color: #ff7aa2; /* 선택 강조 색 */
    }

    .bottom-nav .nav-item:hover {
      color: #ff7aa2;
    }
    /* 네비게이션 영역 [E] */

    /* 설정 [S] */
    .page {
    padding: 16px;
    margin-bottom: 60px; /* 하단 네비게이션 때문에 */
    }

    .settings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    }

    .setting-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #fff;
      border-radius: 8px;
      padding: 12px 16px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      font-size: 14px;
    }

    .setting-item label {
      font-weight: 500;
      color: #333;
    }

    .setting-item select {
      padding: 6px 10px;
      border-radius: 6px;
      border: 1px solid #ccc;
      background: #fdfdfd;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .setting-item select:hover {
      border-color: #ff7aa2;
    }

    .setting-item select:focus {
      outline: none;
      border-color: #ff7aa2;
      box-shadow: 0 0 5px rgba(255,122,162,0.4);
    }
    /* 설정 [E] */
    
    .btn { cursor: pointer; border: 1px solid #667085; background: transparent; color: black; padding: 8px 12px; border-radius: 10px; }
    .btn:hover { border-color: color-mix(in oklab, #ff7aa2, white 25%); }
    
    /* 스탬프-목록없음 화면 [S] */
    .empty-message {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #bbb;
      font-size: 18px;
      height: 200px;
      gap: 8px;
      width: 100%;
    }

    .empty-icon {
      font-size: 32px;
      margin-bottom: 4px;
    }
    /* 스탬프-목록없음 화면 [E] */

    /* 알림창 [S]*/
    .badge-notice {
      position: absolute;
      top: 2px;
      right: 2px;
      min-width: 18px;
      height: 18px;
      background: #ff3b3b;
      color: #fff;
      font-size: 0.7rem;
      font-weight: bold;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 1px 4px rgba(0,0,0,0.12);
      z-index: 2;
    }
    .header-right {
      position: relative;
    }
    #notice-btn {
      position: relative;
    }
    
    /* 좋아요 버튼 */
    .like-btn {
      background: none;
      border: none;
      font-size: 1.5rem;
      color: #bbb;
      cursor: pointer;
      transition: color 0.2s;
      margin-left: 8px;
    }
    .like-btn.liked {
      color: #ff7aa2;
    }
    .close-btn {
      background: none;
      border: none;
      font-size: 1.5rem;
      color: #bbb;
      cursor: pointer;
      transition: color 0.2s;
      margin-left: 8px;
    }
    .accept-btn {
      background: #bbb;
      border: none;
      border-radius: 999px;
      color: #fff;
      font-size: 1.2rem;
      font-weight: bold;
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background 0.2s;
      margin-left: 8px;
    }
    .accept-btn:hover {
      background: #ff6090;
    }
    /* 알림창 [E]*/
    /* 친구창 [S] */
    .search-bar {
      display: flex;
      align-items: center;
      padding: 8px 12px;
      border-radius: 18px;
      background: #fff;
      box-shadow: 0 1px 4px rgba(0,0,0,0.04);
      margin: 12px 8px 16px 8px;
      gap: 6px;
    }

    .search-bar input[type="text"] {
      border: none;
      outline: none;
      background: transparent;
      font-size: 1rem;
      flex: 1;
      padding: 6px 0;
    }

    .search-btn {
      background: none;
      border: none;
      cursor: pointer;
      padding: 4px;
      display: flex;
      align-items: center;
    }

    .search-icon {
      font-size: 1.2rem;
      color: #888;
    }

    .clear-btn {
      background: none;
      border: none;
      font-size: 1.2rem;
      color: #bbb;
      cursor: pointer;
      margin-right: 4px;
      transition: color 0.2s;
    }
    .clear-btn:hover {
      color: #ff7aa2;
    }

    .friend-count {
      margin: 0 16px 0px 16px;
      font-size: 1rem;
      color: #444;
      font-weight: 500;
    }
    .friend-count-num {
      color: #ff7aa2;
      font-weight: bold;
    }
    .section-title {
      font-size: 1.15rem;
      font-weight: bold;
      margin: 18px 0 8px 12px;
      color: #333;
    }
    .section-divider {
      border: none;
      border-top: 1.5px solid #eee;
      margin: 18px 0 18px 0;
    }
    .friend-list-header{
      display: flex; 
      justify-content: space-between; 
      align-items: center; 
      margin-bottom: 8px;    
    }
    .badge {
      display: inline-block;
      padding: 3px 10px;
      border-radius: 12px;
      font-size: 0.92rem;
      font-weight: 500;
      margin-left: 8px;
      vertical-align: middle;
      line-height: 1.5;
    }
    .badge-pending {
      background: #ffe3ef;
      color: #ff7aa2;
      border: 1px solid #ffb6d5;
    }
    .badge-received {
      background: #d0f3ff;
      color: #2d6a7e;
      border: 1px solid #b1ecff;
    }
    .badge-friend {
      background: #dfffcf;
      color: #5c7151;
      border: 1px solid #dfffcf;
    }
    .friend-list-filter {
      display: flex;
      gap: 6px;
      margin: 12px 0 10px 0;
      justify-content: flex-end;
    }
    .friend-filter-btn {
      padding: 6px 14px;
      border: none;
      border-radius: 16px;
      background: #f5f5f5;
      color: #888;
      font-size: 0.97rem;
      cursor: pointer;
      transition: background 0.2s, color 0.2s;
    }
    .friend-filter-btn.active {
      background: #ff7aa2;
      color: #fff;
      font-weight: bold;
    }
    
    /* 친구창 [E] */